out 66 include/crm/common/output_internal.h typedef int (*pcmk__message_fn_t)(pcmk__output_t *out, va_list args); out 232 include/crm/common/output_internal.h bool (*init) (pcmk__output_t *out); out 243 include/crm/common/output_internal.h void (*free_priv) (pcmk__output_t *out); out 279 include/crm/common/output_internal.h void (*finish) (pcmk__output_t *out, crm_exit_t exit_status, bool print, out 297 include/crm/common/output_internal.h void (*reset) (pcmk__output_t *out); out 310 include/crm/common/output_internal.h void (*register_message) (pcmk__output_t *out, const char *message_id, out 328 include/crm/common/output_internal.h int (*message) (pcmk__output_t *out, const char *message_id, ...); out 339 include/crm/common/output_internal.h void (*subprocess_output) (pcmk__output_t *out, int exit_status, out 350 include/crm/common/output_internal.h void (*version) (pcmk__output_t *out, bool extended); out 364 include/crm/common/output_internal.h void (*info) (pcmk__output_t *out, const char *format, ...) G_GNUC_PRINTF(2, 3); out 378 include/crm/common/output_internal.h void (*err) (pcmk__output_t *out, const char *format, ...) G_GNUC_PRINTF(2, 3); out 388 include/crm/common/output_internal.h void (*output_xml) (pcmk__output_t *out, const char *name, const char *buf); out 409 include/crm/common/output_internal.h void (*begin_list) (pcmk__output_t *out, const char *singular_noun, out 422 include/crm/common/output_internal.h void (*list_item) (pcmk__output_t *out, const char *name, const char *format, ...) out 437 include/crm/common/output_internal.h void (*increment_list) (pcmk__output_t *out); out 449 include/crm/common/output_internal.h void (*end_list) (pcmk__output_t *out); out 462 include/crm/common/output_internal.h bool (*is_quiet) (pcmk__output_t *out); out 478 include/crm/common/output_internal.h pcmk__call_message(pcmk__output_t *out, const char *message_id, ...); out 492 include/crm/common/output_internal.h void pcmk__output_free(pcmk__output_t *out); out 508 include/crm/common/output_internal.h int pcmk__output_new(pcmk__output_t **out, const char *fmt_name, out 565 include/crm/common/output_internal.h pcmk__register_message(pcmk__output_t *out, const char *message_id, out 580 include/crm/common/output_internal.h pcmk__register_messages(pcmk__output_t *out, pcmk__message_entry_t *table); out 595 include/crm/common/output_internal.h pcmk__indented_printf(pcmk__output_t *out, const char *format, ...) G_GNUC_PRINTF(2, 3); out 610 include/crm/common/output_internal.h pcmk__indented_vprintf(pcmk__output_t *out, const char *format, va_list args) G_GNUC_PRINTF(2, 0); out 623 include/crm/common/output_internal.h pcmk__output_xml_create_parent(pcmk__output_t *out, const char *name); out 634 include/crm/common/output_internal.h pcmk__output_xml_add_node(pcmk__output_t *out, xmlNodePtr node); out 645 include/crm/common/output_internal.h pcmk__output_create_xml_node(pcmk__output_t *out, const char *name); out 657 include/crm/common/output_internal.h pcmk__output_create_xml_text_node(pcmk__output_t *out, const char *name, const char *content); out 674 include/crm/common/output_internal.h pcmk__output_xml_push_parent(pcmk__output_t *out, xmlNodePtr node); out 691 include/crm/common/output_internal.h pcmk__output_xml_pop_parent(pcmk__output_t *out); out 708 include/crm/common/output_internal.h pcmk__output_xml_peek_parent(pcmk__output_t *out); out 724 include/crm/common/output_internal.h pcmk__output_create_html_node(pcmk__output_t *out, const char *element_name, const char *id, out 84 include/crm/fencing/internal.h void stonith__register_messages(pcmk__output_t *out); out 196 include/crm/fencing/internal.h int stonith__failed_history(pcmk__output_t *out, va_list args); out 197 include/crm/fencing/internal.h int stonith__history(pcmk__output_t *out, va_list args); out 198 include/crm/fencing/internal.h int stonith__full_history(pcmk__output_t *out, va_list args); out 199 include/crm/fencing/internal.h int stonith__full_history_xml(pcmk__output_t *out, va_list args); out 200 include/crm/fencing/internal.h int stonith__last_fenced_html(pcmk__output_t *out, va_list args); out 201 include/crm/fencing/internal.h int stonith__last_fenced_text(pcmk__output_t *out, va_list args); out 202 include/crm/fencing/internal.h int stonith__last_fenced_xml(pcmk__output_t *out, va_list args); out 203 include/crm/fencing/internal.h int stonith__pending_actions(pcmk__output_t *out, va_list args); out 204 include/crm/fencing/internal.h int stonith__event_html(pcmk__output_t *out, va_list args); out 205 include/crm/fencing/internal.h int stonith__event_text(pcmk__output_t *out, va_list args); out 206 include/crm/fencing/internal.h int stonith__event_xml(pcmk__output_t *out, va_list args); out 207 include/crm/fencing/internal.h int stonith__validate_agent_html(pcmk__output_t *out, va_list args); out 208 include/crm/fencing/internal.h int stonith__validate_agent_text(pcmk__output_t *out, va_list args); out 209 include/crm/fencing/internal.h int stonith__validate_agent_xml(pcmk__output_t *out, va_list args); out 246 include/crm/pengine/internal.h int pe__name_and_nvpairs_xml(pcmk__output_t *out, bool is_list, const char *tag_name out 256 include/crm/pengine/internal.h int pe__ban_html(pcmk__output_t *out, va_list args); out 257 include/crm/pengine/internal.h int pe__ban_text(pcmk__output_t *out, va_list args); out 258 include/crm/pengine/internal.h int pe__ban_xml(pcmk__output_t *out, va_list args); out 259 include/crm/pengine/internal.h int pe__clone_xml(pcmk__output_t *out, va_list args); out 260 include/crm/pengine/internal.h int pe__clone_html(pcmk__output_t *out, va_list args); out 261 include/crm/pengine/internal.h int pe__clone_text(pcmk__output_t *out, va_list args); out 262 include/crm/pengine/internal.h int pe__cluster_counts_html(pcmk__output_t *out, va_list args); out 263 include/crm/pengine/internal.h int pe__cluster_counts_text(pcmk__output_t *out, va_list args); out 264 include/crm/pengine/internal.h int pe__cluster_counts_xml(pcmk__output_t *out, va_list args); out 265 include/crm/pengine/internal.h int pe__cluster_dc_html(pcmk__output_t *out, va_list args); out 266 include/crm/pengine/internal.h int pe__cluster_dc_text(pcmk__output_t *out, va_list args); out 267 include/crm/pengine/internal.h int pe__cluster_dc_xml(pcmk__output_t *out, va_list args); out 268 include/crm/pengine/internal.h int pe__cluster_maint_mode_html(pcmk__output_t *out, va_list args); out 269 include/crm/pengine/internal.h int pe__cluster_maint_mode_text(pcmk__output_t *out, va_list args); out 270 include/crm/pengine/internal.h int pe__cluster_options_html(pcmk__output_t *out, va_list args); out 271 include/crm/pengine/internal.h int pe__cluster_options_log(pcmk__output_t *out, va_list args); out 272 include/crm/pengine/internal.h int pe__cluster_options_text(pcmk__output_t *out, va_list args); out 273 include/crm/pengine/internal.h int pe__cluster_options_xml(pcmk__output_t *out, va_list args); out 274 include/crm/pengine/internal.h int pe__cluster_stack_html(pcmk__output_t *out, va_list args); out 275 include/crm/pengine/internal.h int pe__cluster_stack_text(pcmk__output_t *out, va_list args); out 276 include/crm/pengine/internal.h int pe__cluster_stack_xml(pcmk__output_t *out, va_list args); out 277 include/crm/pengine/internal.h int pe__cluster_summary(pcmk__output_t *out, va_list args); out 278 include/crm/pengine/internal.h int pe__cluster_summary_html(pcmk__output_t *out, va_list args); out 279 include/crm/pengine/internal.h int pe__cluster_times_html(pcmk__output_t *out, va_list args); out 280 include/crm/pengine/internal.h int pe__cluster_times_xml(pcmk__output_t *out, va_list args); out 281 include/crm/pengine/internal.h int pe__cluster_times_text(pcmk__output_t *out, va_list args); out 282 include/crm/pengine/internal.h int pe__failed_action_text(pcmk__output_t *out, va_list args); out 283 include/crm/pengine/internal.h int pe__failed_action_xml(pcmk__output_t *out, va_list args); out 284 include/crm/pengine/internal.h int pe__group_xml(pcmk__output_t *out, va_list args); out 285 include/crm/pengine/internal.h int pe__group_html(pcmk__output_t *out, va_list args); out 286 include/crm/pengine/internal.h int pe__group_text(pcmk__output_t *out, va_list args); out 287 include/crm/pengine/internal.h int pe__bundle_xml(pcmk__output_t *out, va_list args); out 288 include/crm/pengine/internal.h int pe__bundle_html(pcmk__output_t *out, va_list args); out 289 include/crm/pengine/internal.h int pe__bundle_text(pcmk__output_t *out, va_list args); out 290 include/crm/pengine/internal.h int pe__node_html(pcmk__output_t *out, va_list args); out 291 include/crm/pengine/internal.h int pe__node_text(pcmk__output_t *out, va_list args); out 292 include/crm/pengine/internal.h int pe__node_xml(pcmk__output_t *out, va_list args); out 293 include/crm/pengine/internal.h int pe__node_attribute_html(pcmk__output_t *out, va_list args); out 294 include/crm/pengine/internal.h int pe__node_attribute_text(pcmk__output_t *out, va_list args); out 295 include/crm/pengine/internal.h int pe__node_attribute_xml(pcmk__output_t *out, va_list args); out 296 include/crm/pengine/internal.h int pe__node_list_html(pcmk__output_t *out, va_list args); out 297 include/crm/pengine/internal.h int pe__node_list_text(pcmk__output_t *out, va_list args); out 298 include/crm/pengine/internal.h int pe__node_list_xml(pcmk__output_t *out, va_list args); out 299 include/crm/pengine/internal.h int pe__op_history_text(pcmk__output_t *out, va_list args); out 300 include/crm/pengine/internal.h int pe__op_history_xml(pcmk__output_t *out, va_list args); out 301 include/crm/pengine/internal.h int pe__resource_history_text(pcmk__output_t *out, va_list args); out 302 include/crm/pengine/internal.h int pe__resource_history_xml(pcmk__output_t *out, va_list args); out 303 include/crm/pengine/internal.h int pe__resource_xml(pcmk__output_t *out, va_list args); out 304 include/crm/pengine/internal.h int pe__resource_html(pcmk__output_t *out, va_list args); out 305 include/crm/pengine/internal.h int pe__resource_text(pcmk__output_t *out, va_list args); out 306 include/crm/pengine/internal.h int pe__resource_list(pcmk__output_t *out, va_list args); out 307 include/crm/pengine/internal.h int pe__ticket_html(pcmk__output_t *out, va_list args); out 308 include/crm/pengine/internal.h int pe__ticket_text(pcmk__output_t *out, va_list args); out 309 include/crm/pengine/internal.h int pe__ticket_xml(pcmk__output_t *out, va_list args); out 384 include/crm/pengine/internal.h extern void pe__output_node(pe_node_t * node, gboolean details, pcmk__output_t *out); out 549 include/crm/pengine/internal.h int pe__rscs_brief_output(pcmk__output_t *out, GListPtr rsc_list, long options, gboolean print_all); out 555 include/crm/pengine/internal.h int pe__common_output_text(pcmk__output_t *out, pe_resource_t * rsc, const char *name, pe_node_t *node, long options); out 556 include/crm/pengine/internal.h int pe__common_output_html(pcmk__output_t *out, pe_resource_t * rsc, const char *name, pe_node_t *node, long options); out 583 include/crm/pengine/internal.h void pe__register_messages(pcmk__output_t *out); out 58 include/pcmki/pcmki_fence.h int pcmk__fence_history(pcmk__output_t *out, stonith_t *st, char *target, out 78 include/pcmki/pcmki_fence.h int pcmk__fence_installed(pcmk__output_t *out, stonith_t *st, unsigned int timeout); out 96 include/pcmki/pcmki_fence.h int pcmk__fence_last(pcmk__output_t *out, const char *target, bool as_nodeid); out 115 include/pcmki/pcmki_fence.h int pcmk__fence_list_targets(pcmk__output_t *out, stonith_t *st, out 135 include/pcmki/pcmki_fence.h int pcmk__fence_metadata(pcmk__output_t *out, stonith_t *st, char *agent, out 156 include/pcmki/pcmki_fence.h int pcmk__fence_registered(pcmk__output_t *out, stonith_t *st, char *target, out 218 include/pcmki/pcmki_fence.h int pcmk__fence_validate(pcmk__output_t *out, stonith_t *st, const char *agent, out 21 include/pcmki/pcmki_output.h int pcmk__out_prologue(pcmk__output_t **out, xmlNodePtr *xml); out 22 include/pcmki/pcmki_output.h void pcmk__out_epilogue(pcmk__output_t *out, xmlNodePtr *xml, int retval); out 200 lib/common/options.c goto out; out 205 lib/common/options.c goto out; out 263 lib/common/options.c out: out 22 lib/common/output.c pcmk__output_free(pcmk__output_t *out) { out 23 lib/common/output.c out->free_priv(out); out 25 lib/common/output.c if (out->messages != NULL) { out 26 lib/common/output.c g_hash_table_destroy(out->messages); out 29 lib/common/output.c g_free(out->request); out 30 lib/common/output.c free(out); out 34 lib/common/output.c pcmk__output_new(pcmk__output_t **out, const char *fmt_name, const char *filename, out 55 lib/common/output.c *out = create(argv); out 56 lib/common/output.c if (*out == NULL) { out 61 lib/common/output.c (*out)->dest = stdout; out 63 lib/common/output.c (*out)->dest = fopen(filename, "w"); out 64 lib/common/output.c if ((*out)->dest == NULL) { out 69 lib/common/output.c (*out)->quiet = false; out 71 lib/common/output.c (*out)->messages = g_hash_table_new_full(crm_str_hash, g_str_equal, free, NULL); out 73 lib/common/output.c if ((*out)->init(*out) == false) { out 74 lib/common/output.c pcmk__output_free(*out); out 121 lib/common/output.c pcmk__call_message(pcmk__output_t *out, const char *message_id, ...) { out 126 lib/common/output.c fn = g_hash_table_lookup(out->messages, message_id); out 132 lib/common/output.c rc = fn(out, args); out 139 lib/common/output.c pcmk__register_message(pcmk__output_t *out, const char *message_id, out 141 lib/common/output.c g_hash_table_replace(out->messages, strdup(message_id), fn); out 145 lib/common/output.c pcmk__register_messages(pcmk__output_t *out, pcmk__message_entry_t *table) { out 149 lib/common/output.c if (pcmk__strcase_any_of(entry->fmt_name, "default", out->fmt_name, NULL)) { out 150 lib/common/output.c pcmk__register_message(out, entry->message_id, entry->fn); out 65 lib/common/output_html.c html_free_priv(pcmk__output_t *out) { out 66 lib/common/output_html.c private_data_t *priv = out->priv; out 76 lib/common/output_html.c out->priv = NULL; out 80 lib/common/output_html.c html_init(pcmk__output_t *out) { out 84 lib/common/output_html.c if (out->priv != NULL) { out 87 lib/common/output_html.c out->priv = calloc(1, sizeof(private_data_t)); out 88 lib/common/output_html.c if (out->priv == NULL) { out 92 lib/common/output_html.c priv = out->priv; out 104 lib/common/output_html.c pcmk__output_xml_create_parent(out, "body"); out 112 lib/common/output_html.c pcmk__output_t *out = (pcmk__output_t *) user_data; out 113 lib/common/output_html.c out->list_item(out, NULL, "%s", str); out 117 lib/common/output_html.c finish_reset_common(pcmk__output_t *out, crm_exit_t exit_status, bool print) { out 118 lib/common/output_html.c private_data_t *priv = out->priv; out 123 lib/common/output_html.c fprintf(out->dest, "Content-Type: text/html\n\n"); out 134 lib/common/output_html.c } else if (out->request != NULL) { out 135 lib/common/output_html.c pcmk_create_xml_text_node(head_node, "title", out->request); out 163 lib/common/output_html.c out->begin_list(out, "Errors", NULL, NULL); out 164 lib/common/output_html.c g_slist_foreach(priv->errors, add_error_node, (gpointer) out); out 165 lib/common/output_html.c out->end_list(out); out 169 lib/common/output_html.c htmlDocDump(out->dest, priv->root->doc); out 174 lib/common/output_html.c html_finish(pcmk__output_t *out, crm_exit_t exit_status, bool print, void **copy_dest) { out 175 lib/common/output_html.c private_data_t *priv = out->priv; out 184 lib/common/output_html.c finish_reset_common(out, exit_status, print); out 194 lib/common/output_html.c html_reset(pcmk__output_t *out) { out 195 lib/common/output_html.c CRM_ASSERT(out != NULL); out 197 lib/common/output_html.c out->dest = freopen(NULL, "w", out->dest); out 198 lib/common/output_html.c CRM_ASSERT(out->dest != NULL); out 200 lib/common/output_html.c if (out->priv != NULL) { out 201 lib/common/output_html.c finish_reset_common(out, CRM_EX_OK, true); out 204 lib/common/output_html.c html_free_priv(out); out 205 lib/common/output_html.c html_init(out); out 209 lib/common/output_html.c html_subprocess_output(pcmk__output_t *out, int exit_status, out 212 lib/common/output_html.c private_data_t *priv = out->priv; out 217 lib/common/output_html.c pcmk__output_create_xml_text_node(out, "h2", "Command Output"); out 218 lib/common/output_html.c pcmk__output_create_html_node(out, "div", NULL, NULL, rc_buf); out 221 lib/common/output_html.c pcmk__output_create_html_node(out, "div", NULL, NULL, "Stdout"); out 222 lib/common/output_html.c pcmk__output_create_html_node(out, "div", NULL, "output", proc_stdout); out 225 lib/common/output_html.c pcmk__output_create_html_node(out, "div", NULL, NULL, "Stderr"); out 226 lib/common/output_html.c pcmk__output_create_html_node(out, "div", NULL, "output", proc_stderr); out 233 lib/common/output_html.c html_version(pcmk__output_t *out, bool extended) { out 234 lib/common/output_html.c private_data_t *priv = out->priv; out 237 lib/common/output_html.c pcmk__output_create_xml_text_node(out, "h2", "Version Information"); out 238 lib/common/output_html.c pcmk__output_create_html_node(out, "div", NULL, NULL, "Program: Pacemaker"); out 239 lib/common/output_html.c pcmk__output_create_html_node(out, "div", NULL, NULL, crm_strdup_printf("Version: %s", PACEMAKER_VERSION)); out 240 lib/common/output_html.c pcmk__output_create_html_node(out, "div", NULL, NULL, "Author: Andrew Beekhof"); out 241 lib/common/output_html.c pcmk__output_create_html_node(out, "div", NULL, NULL, crm_strdup_printf("Build: %s", BUILD_VERSION)); out 242 lib/common/output_html.c pcmk__output_create_html_node(out, "div", NULL, NULL, crm_strdup_printf("Features: %s", CRM_FEATURES)); out 247 lib/common/output_html.c html_err(pcmk__output_t *out, const char *format, ...) { out 248 lib/common/output_html.c private_data_t *priv = out->priv; out 264 lib/common/output_html.c html_info(pcmk__output_t *out, const char *format, ...) { out 269 lib/common/output_html.c html_output_xml(pcmk__output_t *out, const char *name, const char *buf) { out 271 lib/common/output_html.c private_data_t *priv = out->priv; out 275 lib/common/output_html.c node = pcmk__output_create_html_node(out, "pre", NULL, NULL, buf); out 281 lib/common/output_html.c html_begin_list(pcmk__output_t *out, const char *singular_noun, out 284 lib/common/output_html.c private_data_t *priv = out->priv; out 295 lib/common/output_html.c pcmk__output_xml_create_parent(out, "li"); out 309 lib/common/output_html.c pcmk__output_create_xml_text_node(out, "h3", buf); out 311 lib/common/output_html.c pcmk__output_create_xml_text_node(out, "h2", buf); out 317 lib/common/output_html.c node = pcmk__output_xml_create_parent(out, "ul"); out 323 lib/common/output_html.c html_list_item(pcmk__output_t *out, const char *name, const char *format, ...) { out 324 lib/common/output_html.c private_data_t *priv = out->priv; out 337 lib/common/output_html.c item_node = pcmk__output_create_xml_text_node(out, "li", buf); out 346 lib/common/output_html.c html_increment_list(pcmk__output_t *out) { out 351 lib/common/output_html.c html_end_list(pcmk__output_t *out) { out 352 lib/common/output_html.c private_data_t *priv = out->priv; out 358 lib/common/output_html.c pcmk__output_xml_pop_parent(out); out 362 lib/common/output_html.c pcmk__output_xml_pop_parent(out); out 367 lib/common/output_html.c html_is_quiet(pcmk__output_t *out) { out 407 lib/common/output_html.c pcmk__output_create_html_node(pcmk__output_t *out, const char *element_name, const char *id, out 409 lib/common/output_html.c htmlNodePtr node = pcmk__output_create_xml_text_node(out, element_name, text); out 33 lib/common/output_log.c log_subprocess_output(pcmk__output_t *out, int exit_status, out 39 lib/common/output_log.c log_free_priv(pcmk__output_t *out) { out 40 lib/common/output_log.c private_data_t *priv = out->priv; out 48 lib/common/output_log.c out->priv = NULL; out 52 lib/common/output_log.c log_init(pcmk__output_t *out) { out 55 lib/common/output_log.c if (out->priv != NULL) { out 59 lib/common/output_log.c out->priv = calloc(1, sizeof(private_data_t)); out 60 lib/common/output_log.c if (out->priv == NULL) { out 63 lib/common/output_log.c ((private_data_t *)out->priv)->prefixes = g_queue_new(); out 68 lib/common/output_log.c log_finish(pcmk__output_t *out, crm_exit_t exit_status, bool print, void **copy_dest) { out 73 lib/common/output_log.c log_reset(pcmk__output_t *out) { out 74 lib/common/output_log.c CRM_ASSERT(out != NULL); out 76 lib/common/output_log.c out->dest = freopen(NULL, "w", out->dest); out 77 lib/common/output_log.c CRM_ASSERT(out->dest != NULL); out 79 lib/common/output_log.c log_free_priv(out); out 80 lib/common/output_log.c log_init(out); out 84 lib/common/output_log.c log_version(pcmk__output_t *out, bool extended) { out 96 lib/common/output_log.c log_err(pcmk__output_t *out, const char *format, ...) { out 115 lib/common/output_log.c log_output_xml(pcmk__output_t *out, const char *name, const char *buf) { out 117 lib/common/output_log.c private_data_t *priv = out->priv; out 128 lib/common/output_log.c log_begin_list(pcmk__output_t *out, const char *singular_noun, const char *plural_noun, out 133 lib/common/output_log.c private_data_t *priv = out->priv; out 153 lib/common/output_log.c log_list_item(pcmk__output_t *out, const char *name, const char *format, ...) { out 156 lib/common/output_log.c private_data_t *priv = out->priv; out 195 lib/common/output_log.c log_end_list(pcmk__output_t *out) { out 196 lib/common/output_log.c private_data_t *priv = out->priv; out 209 lib/common/output_log.c log_info(pcmk__output_t *out, const char *format, ...) { out 225 lib/common/output_log.c log_is_quiet(pcmk__output_t *out) { out 21 lib/common/output_none.c none_free_priv(pcmk__output_t *out) { out 26 lib/common/output_none.c none_init(pcmk__output_t *out) { out 31 lib/common/output_none.c none_finish(pcmk__output_t *out, crm_exit_t exit_status, bool print, void **copy_dest) { out 36 lib/common/output_none.c none_reset(pcmk__output_t *out) { out 37 lib/common/output_none.c CRM_ASSERT(out != NULL); out 38 lib/common/output_none.c none_free_priv(out); out 39 lib/common/output_none.c none_init(out); out 43 lib/common/output_none.c none_subprocess_output(pcmk__output_t *out, int exit_status, out 49 lib/common/output_none.c none_version(pcmk__output_t *out, bool extended) { out 55 lib/common/output_none.c none_err(pcmk__output_t *out, const char *format, ...) { out 61 lib/common/output_none.c none_info(pcmk__output_t *out, const char *format, ...) { out 66 lib/common/output_none.c none_output_xml(pcmk__output_t *out, const char *name, const char *buf) { out 72 lib/common/output_none.c none_begin_list(pcmk__output_t *out, const char *singular_noun, const char *plural_noun, out 79 lib/common/output_none.c none_list_item(pcmk__output_t *out, const char *id, const char *format, ...) { out 84 lib/common/output_none.c none_increment_list(pcmk__output_t *out) { out 89 lib/common/output_none.c none_end_list(pcmk__output_t *out) { out 94 lib/common/output_none.c none_is_quiet(pcmk__output_t *out) { out 95 lib/common/output_none.c return out->quiet; out 38 lib/common/output_text.c text_free_priv(pcmk__output_t *out) { out 39 lib/common/output_text.c private_data_t *priv = out->priv; out 47 lib/common/output_text.c out->priv = NULL; out 51 lib/common/output_text.c text_init(pcmk__output_t *out) { out 55 lib/common/output_text.c if (out->priv != NULL) { out 58 lib/common/output_text.c out->priv = calloc(1, sizeof(private_data_t)); out 59 lib/common/output_text.c if (out->priv == NULL) { out 63 lib/common/output_text.c priv = out->priv; out 71 lib/common/output_text.c text_finish(pcmk__output_t *out, crm_exit_t exit_status, bool print, void **copy_dest) { out 76 lib/common/output_text.c text_reset(pcmk__output_t *out) { out 77 lib/common/output_text.c CRM_ASSERT(out != NULL); out 79 lib/common/output_text.c out->dest = freopen(NULL, "w", out->dest); out 80 lib/common/output_text.c CRM_ASSERT(out->dest != NULL); out 82 lib/common/output_text.c text_free_priv(out); out 83 lib/common/output_text.c text_init(out); out 87 lib/common/output_text.c text_subprocess_output(pcmk__output_t *out, int exit_status, out 90 lib/common/output_text.c fprintf(out->dest, "%s\n", proc_stdout); out 94 lib/common/output_text.c fprintf(out->dest, "%s\n", proc_stderr); out 99 lib/common/output_text.c text_version(pcmk__output_t *out, bool extended) { out 101 lib/common/output_text.c fprintf(out->dest, "Pacemaker %s (Build: %s): %s\n", PACEMAKER_VERSION, BUILD_VERSION, CRM_FEATURES); out 103 lib/common/output_text.c fprintf(out->dest, "Pacemaker %s\n", PACEMAKER_VERSION); out 104 lib/common/output_text.c fprintf(out->dest, "Written by Andrew Beekhof\n"); out 110 lib/common/output_text.c text_err(pcmk__output_t *out, const char *format, ...) { out 129 lib/common/output_text.c text_info(pcmk__output_t *out, const char *format, ...) { out 138 lib/common/output_text.c len = vfprintf(out->dest, format, ap); out 143 lib/common/output_text.c fprintf(out->dest, "\n"); out 147 lib/common/output_text.c text_output_xml(pcmk__output_t *out, const char *name, const char *buf) { out 148 lib/common/output_text.c private_data_t *priv = out->priv; out 151 lib/common/output_text.c pcmk__indented_printf(out, "%s", buf); out 156 lib/common/output_text.c text_begin_list(pcmk__output_t *out, const char *singular_noun, const char *plural_noun, out 158 lib/common/output_text.c private_data_t *priv = out->priv; out 167 lib/common/output_text.c pcmk__indented_vprintf(out, format, ap); out 168 lib/common/output_text.c fprintf(out->dest, ":\n"); out 183 lib/common/output_text.c text_list_item(pcmk__output_t *out, const char *id, const char *format, ...) { out 184 lib/common/output_text.c private_data_t *priv = out->priv; out 197 lib/common/output_text.c pcmk__indented_printf(out, "%s: ", id); out 198 lib/common/output_text.c vfprintf(out->dest, format, ap); out 200 lib/common/output_text.c pcmk__indented_vprintf(out, format, ap); out 203 lib/common/output_text.c pcmk__indented_vprintf(out, format, ap); out 206 lib/common/output_text.c fputc('\n', out->dest); out 209 lib/common/output_text.c out->increment_list(out); out 213 lib/common/output_text.c text_increment_list(pcmk__output_t *out) { out 214 lib/common/output_text.c private_data_t *priv = out->priv; out 224 lib/common/output_text.c text_end_list(pcmk__output_t *out) { out 225 lib/common/output_text.c private_data_t *priv = out->priv; out 233 lib/common/output_text.c pcmk__indented_printf(out, "%d %s found\n", node->len, node->singular_noun); out 235 lib/common/output_text.c pcmk__indented_printf(out, "%d %s found\n", node->len, node->plural_noun); out 243 lib/common/output_text.c text_is_quiet(pcmk__output_t *out) { out 244 lib/common/output_text.c return out->quiet; out 284 lib/common/output_text.c pcmk__indented_vprintf(pcmk__output_t *out, const char *format, va_list args) { out 289 lib/common/output_text.c private_data_t *priv = out->priv; out 296 lib/common/output_text.c fprintf(out->dest, " "); out 300 lib/common/output_text.c fprintf(out->dest, "* "); out 304 lib/common/output_text.c len = vfprintf(out->dest, format, args); out 310 lib/common/output_text.c pcmk__indented_printf(pcmk__output_t *out, const char *format, ...) { out 314 lib/common/output_text.c pcmk__indented_vprintf(out, format, ap); out 78 lib/common/output_xml.c xml_free_priv(pcmk__output_t *out) { out 79 lib/common/output_xml.c private_data_t *priv = out->priv; out 89 lib/common/output_xml.c out->priv = NULL; out 93 lib/common/output_xml.c xml_init(pcmk__output_t *out) { out 97 lib/common/output_xml.c if (out->priv != NULL) { out 100 lib/common/output_xml.c out->priv = calloc(1, sizeof(private_data_t)); out 101 lib/common/output_xml.c if (out->priv == NULL) { out 105 lib/common/output_xml.c priv = out->priv; out 115 lib/common/output_xml.c if (out->request != NULL) { out 116 lib/common/output_xml.c xmlSetProp(priv->root, (pcmkXmlStr) "request", (pcmkXmlStr) out->request); out 141 lib/common/output_xml.c finish_reset_common(pcmk__output_t *out, crm_exit_t exit_status, bool print) { out 143 lib/common/output_xml.c private_data_t *priv = out->priv; out 173 lib/common/output_xml.c fprintf(out->dest, "%s", buf); out 179 lib/common/output_xml.c xml_finish(pcmk__output_t *out, crm_exit_t exit_status, bool print, void **copy_dest) { out 180 lib/common/output_xml.c private_data_t *priv = out->priv; out 189 lib/common/output_xml.c finish_reset_common(out, exit_status, print); out 197 lib/common/output_xml.c xml_reset(pcmk__output_t *out) { out 198 lib/common/output_xml.c CRM_ASSERT(out != NULL); out 200 lib/common/output_xml.c out->dest = freopen(NULL, "w", out->dest); out 201 lib/common/output_xml.c CRM_ASSERT(out->dest != NULL); out 203 lib/common/output_xml.c if (out->priv != NULL) { out 204 lib/common/output_xml.c finish_reset_common(out, CRM_EX_OK, true); out 207 lib/common/output_xml.c xml_free_priv(out); out 208 lib/common/output_xml.c xml_init(out); out 212 lib/common/output_xml.c xml_subprocess_output(pcmk__output_t *out, int exit_status, out 219 lib/common/output_xml.c node = pcmk__output_xml_create_parent(out, "command"); out 232 lib/common/output_xml.c pcmk__output_xml_add_node(out, node); out 237 lib/common/output_xml.c xml_version(pcmk__output_t *out, bool extended) { out 239 lib/common/output_xml.c private_data_t *priv = out->priv; out 242 lib/common/output_xml.c node = pcmk__output_create_xml_node(out, "version"); out 252 lib/common/output_xml.c xml_err(pcmk__output_t *out, const char *format, ...) { out 253 lib/common/output_xml.c private_data_t *priv = out->priv; out 269 lib/common/output_xml.c xml_info(pcmk__output_t *out, const char *format, ...) { out 274 lib/common/output_xml.c xml_output_xml(pcmk__output_t *out, const char *name, const char *buf) { out 277 lib/common/output_xml.c private_data_t *priv = out->priv; out 281 lib/common/output_xml.c parent = pcmk__output_create_xml_node(out, name); out 288 lib/common/output_xml.c xml_begin_list(pcmk__output_t *out, const char *singular_noun, const char *plural_noun, out 314 lib/common/output_xml.c pcmk__output_xml_create_parent(out, name); out 318 lib/common/output_xml.c list_node = pcmk__output_xml_create_parent(out, "list"); out 327 lib/common/output_xml.c xml_list_item(pcmk__output_t *out, const char *name, const char *format, ...) { out 328 lib/common/output_xml.c private_data_t *priv = out->priv; out 341 lib/common/output_xml.c item_node = pcmk__output_create_xml_text_node(out, "item", buf); out 351 lib/common/output_xml.c xml_increment_list(pcmk__output_t *out) { out 356 lib/common/output_xml.c xml_end_list(pcmk__output_t *out) { out 357 lib/common/output_xml.c private_data_t *priv = out->priv; out 375 lib/common/output_xml.c xml_is_quiet(pcmk__output_t *out) { out 415 lib/common/output_xml.c pcmk__output_xml_create_parent(pcmk__output_t *out, const char *name) { out 416 lib/common/output_xml.c xmlNodePtr node = pcmk__output_create_xml_node(out, name); out 417 lib/common/output_xml.c pcmk__output_xml_push_parent(out, node); out 422 lib/common/output_xml.c pcmk__output_xml_add_node(pcmk__output_t *out, xmlNodePtr node) { out 423 lib/common/output_xml.c private_data_t *priv = out->priv; out 432 lib/common/output_xml.c pcmk__output_create_xml_node(pcmk__output_t *out, const char *name) { out 433 lib/common/output_xml.c private_data_t *priv = out->priv; out 441 lib/common/output_xml.c pcmk__output_create_xml_text_node(pcmk__output_t *out, const char *name, const char *content) { out 442 lib/common/output_xml.c xmlNodePtr node = pcmk__output_create_xml_node(out, name); out 448 lib/common/output_xml.c pcmk__output_xml_push_parent(pcmk__output_t *out, xmlNodePtr parent) { out 449 lib/common/output_xml.c private_data_t *priv = out->priv; out 458 lib/common/output_xml.c pcmk__output_xml_pop_parent(pcmk__output_t *out) { out 459 lib/common/output_xml.c private_data_t *priv = out->priv; out 468 lib/common/output_xml.c pcmk__output_xml_peek_parent(pcmk__output_t *out) { out 469 lib/common/output_xml.c private_data_t *priv = out->priv; out 905 lib/common/schemas.c xmlNode *out = NULL; out 944 lib/common/schemas.c out = string2xml((const char *) emergency_result); out 947 lib/common/schemas.c out = xmlDocGetRootElement(res); out 957 lib/common/schemas.c return out; out 34 lib/fencing/st_output.c stonith__failed_history(pcmk__output_t *out, va_list args) { out 51 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Failed Fencing Actions"); out 52 lib/fencing/st_output.c out->message(out, "stonith-event", hp, full_history, stonith__later_succeeded(hp, history)); out 53 lib/fencing/st_output.c out->increment_list(out); out 56 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 62 lib/fencing/st_output.c stonith__history(pcmk__output_t *out, va_list args) { out 76 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Fencing History"); out 77 lib/fencing/st_output.c out->message(out, "stonith-event", hp, full_history, stonith__later_succeeded(hp, history)); out 78 lib/fencing/st_output.c out->increment_list(out); out 82 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 88 lib/fencing/st_output.c stonith__full_history(pcmk__output_t *out, va_list args) { out 102 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Fencing History"); out 103 lib/fencing/st_output.c out->message(out, "stonith-event", hp, full_history, stonith__later_succeeded(hp, history)); out 104 lib/fencing/st_output.c out->increment_list(out); out 107 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 113 lib/fencing/st_output.c stonith__full_history_xml(pcmk__output_t *out, va_list args) { out 128 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Fencing History"); out 129 lib/fencing/st_output.c out->message(out, "stonith-event", hp, full_history, stonith__later_succeeded(hp, history)); out 130 lib/fencing/st_output.c out->increment_list(out); out 133 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 135 lib/fencing/st_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "fence_history"); out 149 lib/fencing/st_output.c stonith__last_fenced_html(pcmk__output_t *out, va_list args) { out 155 lib/fencing/st_output.c pcmk__output_create_html_node(out, "div", NULL, NULL, buf); out 165 lib/fencing/st_output.c stonith__last_fenced_text(pcmk__output_t *out, va_list args) { out 170 lib/fencing/st_output.c pcmk__indented_printf(out, "Node %s last fenced at: %s", target, ctime(&when)); out 172 lib/fencing/st_output.c pcmk__indented_printf(out, "Node %s has never been fenced\n", target); out 180 lib/fencing/st_output.c stonith__last_fenced_xml(pcmk__output_t *out, va_list args) { out 185 lib/fencing/st_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "last-fenced"); out 200 lib/fencing/st_output.c stonith__pending_actions(pcmk__output_t *out, va_list args) { out 218 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Pending Fencing Actions"); out 219 lib/fencing/st_output.c out->message(out, "stonith-event", hp, full_history, stonith__later_succeeded(hp, history)); out 220 lib/fencing/st_output.c out->increment_list(out); out 223 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 229 lib/fencing/st_output.c stonith__event_html(pcmk__output_t *out, va_list args) { out 238 lib/fencing/st_output.c out->list_item(out, "successful-stonith-event", out 252 lib/fencing/st_output.c out->list_item(out, "failed-stonith-event", out 265 lib/fencing/st_output.c out->list_item(out, "pending-stonith-event", out 277 lib/fencing/st_output.c stonith__event_text(pcmk__output_t *out, va_list args) { out 286 lib/fencing/st_output.c pcmk__indented_printf(out, "%s of %s failed: delegate=%s, client=%s, origin=%s, %s='%s' %s\n", out 295 lib/fencing/st_output.c pcmk__indented_printf(out, "%s of %s successful: delegate=%s, client=%s, origin=%s, %s='%s'\n", out 303 lib/fencing/st_output.c pcmk__indented_printf(out, "%s of %s pending: client=%s, origin=%s\n", out 315 lib/fencing/st_output.c stonith__event_xml(pcmk__output_t *out, va_list args) { out 316 lib/fencing/st_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "fence_event"); out 361 lib/fencing/st_output.c stonith__validate_agent_html(pcmk__output_t *out, va_list args) { out 371 lib/fencing/st_output.c pcmk__output_create_html_node(out, "div", NULL, NULL, buf); out 376 lib/fencing/st_output.c pcmk__output_create_html_node(out, "div", NULL, NULL, buf); out 380 lib/fencing/st_output.c out->subprocess_output(out, rc, output, error_output); out 386 lib/fencing/st_output.c stonith__validate_agent_text(pcmk__output_t *out, va_list args) { out 394 lib/fencing/st_output.c pcmk__indented_printf(out, "Validation of %s on %s %s\n", agent, device, out 397 lib/fencing/st_output.c pcmk__indented_printf(out, "Validation of %s %s\n", agent, out 414 lib/fencing/st_output.c stonith__validate_agent_xml(pcmk__output_t *out, va_list args) { out 415 lib/fencing/st_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "validate"); out 429 lib/fencing/st_output.c pcmk__output_xml_push_parent(out, node); out 430 lib/fencing/st_output.c out->subprocess_output(out, rc, output, error_output); out 431 lib/fencing/st_output.c pcmk__output_xml_pop_parent(out); out 459 lib/fencing/st_output.c stonith__register_messages(pcmk__output_t *out) { out 460 lib/fencing/st_output.c pcmk__register_messages(out, fmt_functions); out 173 lib/pacemaker/pcmk_fence.c pcmk__fence_history(pcmk__output_t *out, stonith_t *st, char *target, out 180 lib/pacemaker/pcmk_fence.c if (!out->is_quiet(out)) { out 182 lib/pacemaker/pcmk_fence.c out->info(out, "cleaning up fencing-history%s%s", out 186 lib/pacemaker/pcmk_fence.c out->info(out, "gather fencing-history from all nodes"); out 207 lib/pacemaker/pcmk_fence.c out->begin_list(out, "event", "events", "Fencing history"); out 215 lib/pacemaker/pcmk_fence.c if (out->is_quiet(out) || !verbose) { out 219 lib/pacemaker/pcmk_fence.c out->message(out, "stonith-event", hp, 1, stonith__later_succeeded(hp, history)); out 220 lib/pacemaker/pcmk_fence.c out->increment_list(out); out 224 lib/pacemaker/pcmk_fence.c if (out->is_quiet(out)) { out 225 lib/pacemaker/pcmk_fence.c out->info(out, "%lld", (long long) latest->completed); out 227 lib/pacemaker/pcmk_fence.c out->message(out, "stonith-event", latest, 0, FALSE); out 228 lib/pacemaker/pcmk_fence.c out->increment_list(out); out 232 lib/pacemaker/pcmk_fence.c out->end_list(out); out 242 lib/pacemaker/pcmk_fence.c pcmk__output_t *out = NULL; out 245 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); out 250 lib/pacemaker/pcmk_fence.c out->quiet = quiet; out 252 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_history(out, st, target, timeout, verbose, broadcast, cleanup); out 253 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); out 259 lib/pacemaker/pcmk_fence.c pcmk__fence_installed(pcmk__output_t *out, stonith_t *st, unsigned int timeout) { out 269 lib/pacemaker/pcmk_fence.c out->begin_list(out, "fence device", "fence devices", "Installed fence devices"); out 271 lib/pacemaker/pcmk_fence.c out->list_item(out, "device", "%s", dIter->value); out 273 lib/pacemaker/pcmk_fence.c out->end_list(out); out 282 lib/pacemaker/pcmk_fence.c pcmk__output_t *out = NULL; out 285 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); out 290 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_installed(out, st, timeout); out 291 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); out 297 lib/pacemaker/pcmk_fence.c pcmk__fence_last(pcmk__output_t *out, const char *target, bool as_nodeid) { out 310 lib/pacemaker/pcmk_fence.c return out->message(out, "last-fenced", target, when); out 316 lib/pacemaker/pcmk_fence.c pcmk__output_t *out = NULL; out 319 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); out 324 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_last(out, target, as_nodeid); out 325 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); out 331 lib/pacemaker/pcmk_fence.c pcmk__fence_list_targets(pcmk__output_t *out, stonith_t *st, out 344 lib/pacemaker/pcmk_fence.c out->begin_list(out, "fence target", "fence targets", "Fence Targets"); out 346 lib/pacemaker/pcmk_fence.c out->list_item(out, NULL, "%s", (const char *) targets->data); out 349 lib/pacemaker/pcmk_fence.c out->end_list(out); out 359 lib/pacemaker/pcmk_fence.c pcmk__output_t *out = NULL; out 362 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); out 367 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_list_targets(out, st, device_id, timeout); out 368 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); out 374 lib/pacemaker/pcmk_fence.c pcmk__fence_metadata(pcmk__output_t *out, stonith_t *st, char *agent, out 384 lib/pacemaker/pcmk_fence.c out->output_xml(out, "metadata", buffer); out 393 lib/pacemaker/pcmk_fence.c pcmk__output_t *out = NULL; out 396 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); out 401 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_metadata(out, st, agent, timeout); out 402 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); out 408 lib/pacemaker/pcmk_fence.c pcmk__fence_registered(pcmk__output_t *out, stonith_t *st, char *target, out 419 lib/pacemaker/pcmk_fence.c out->begin_list(out, "fence device", "fence devices", "Registered fence devices"); out 421 lib/pacemaker/pcmk_fence.c out->list_item(out, "device", "%s", dIter->value); out 423 lib/pacemaker/pcmk_fence.c out->end_list(out); out 437 lib/pacemaker/pcmk_fence.c pcmk__output_t *out = NULL; out 440 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); out 445 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_registered(out, st, target, timeout); out 446 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); out 478 lib/pacemaker/pcmk_fence.c pcmk__fence_validate(pcmk__output_t *out, stonith_t *st, const char *agent, out 487 lib/pacemaker/pcmk_fence.c out->message(out, "validate", agent, id, output, error_output, rc); out 496 lib/pacemaker/pcmk_fence.c pcmk__output_t *out = NULL; out 499 lib/pacemaker/pcmk_fence.c rc = pcmk__out_prologue(&out, xml); out 504 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_validate(out, st, agent, id, params, timeout); out 505 lib/pacemaker/pcmk_fence.c pcmk__out_epilogue(out, xml, rc); out 24 lib/pacemaker/pcmk_output.c pcmk__out_prologue(pcmk__output_t **out, xmlNodePtr *xml) { out 32 lib/pacemaker/pcmk_output.c rc = pcmk__output_new(out, "xml", NULL, NULL); out 37 lib/pacemaker/pcmk_output.c stonith__register_messages(*out); out 42 lib/pacemaker/pcmk_output.c pcmk__out_epilogue(pcmk__output_t *out, xmlNodePtr *xml, int retval) { out 44 lib/pacemaker/pcmk_output.c out->finish(out, 0, FALSE, (void **) xml); out 47 lib/pacemaker/pcmk_output.c pcmk__output_free(out); out 304 lib/pacemaker/pcmk_sched_clone.c goto out; out 309 lib/pacemaker/pcmk_sched_clone.c goto out; out 315 lib/pacemaker/pcmk_sched_clone.c goto out; out 356 lib/pacemaker/pcmk_sched_clone.c out: out 32 lib/pacemaker/pcmk_sched_messages.c pcmk__output_t *out = NULL; out 48 lib/pacemaker/pcmk_sched_messages.c rc = pcmk__output_new(&out, "log", NULL, (char**)argv); out 49 lib/pacemaker/pcmk_sched_messages.c if ((rc != pcmk_rc_ok) || (out == NULL)) { out 54 lib/pacemaker/pcmk_sched_messages.c pe__register_messages(out); out 62 lib/pacemaker/pcmk_sched_messages.c out->message(out, crm_map_element_name(rsc->xml), 0, rsc, all, all); out 66 lib/pacemaker/pcmk_sched_messages.c pcmk__output_free(out); out 1505 lib/pengine/bundle.c pe__bundle_xml(pcmk__output_t *out, va_list args) out 1554 lib/pengine/bundle.c rc = pe__name_and_nvpairs_xml(out, true, "bundle", 6, out 1564 lib/pengine/bundle.c rc = pe__name_and_nvpairs_xml(out, true, "replica", 1, "id", id); out 1569 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->ip->xml), options, out 1574 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->child->xml), options, out 1579 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->container->xml), options, out 1584 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->remote->xml), options, out 1588 lib/pengine/bundle.c pcmk__output_xml_pop_parent(out); // replica out 1592 lib/pengine/bundle.c pcmk__output_xml_pop_parent(out); // bundle out 1599 lib/pengine/bundle.c pe__bundle_replica_output_html(pcmk__output_t *out, pe__bundle_replica_t *replica, out 1623 lib/pengine/bundle.c pe__common_output_html(out, rsc, buffer, node, options); out 1628 lib/pengine/bundle.c pe__bundle_html(pcmk__output_t *out, va_list args) out 1681 lib/pengine/bundle.c pcmk__output_create_xml_node(out, "br"); out 1684 lib/pengine/bundle.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Container bundle%s: %s [%s]%s%s", out 1690 lib/pengine/bundle.c pcmk__output_xml_create_parent(out, "li"); out 1694 lib/pengine/bundle.c xmlNodeSetContent(pcmk__output_xml_peek_parent(out), (pcmkXmlStr) buffer); out 1696 lib/pengine/bundle.c pcmk__output_create_xml_node(out, "br"); out 1697 lib/pengine/bundle.c out->begin_list(out, NULL, NULL, NULL); out 1700 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->ip->xml), out 1705 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->child->xml), out 1710 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->container->xml), out 1715 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->remote->xml), out 1719 lib/pengine/bundle.c out->end_list(out); out 1723 lib/pengine/bundle.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Container bundle%s: %s [%s]%s%s", out 1729 lib/pengine/bundle.c pe__bundle_replica_output_html(out, replica, pe__current_node(replica->container), out 1733 lib/pengine/bundle.c pcmk__output_xml_pop_parent(out); out 1736 lib/pengine/bundle.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 1741 lib/pengine/bundle.c pe__bundle_replica_output_text(pcmk__output_t *out, pe__bundle_replica_t *replica, out 1765 lib/pengine/bundle.c pe__common_output_text(out, rsc, buffer, node, options); out 1770 lib/pengine/bundle.c pe__bundle_text(pcmk__output_t *out, va_list args) out 1820 lib/pengine/bundle.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Container bundle%s: %s [%s]%s%s", out 1827 lib/pengine/bundle.c out->list_item(out, NULL, "Replica[%d]", replica->offset); out 1830 lib/pengine/bundle.c out->begin_list(out, NULL, NULL, NULL); out 1833 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->ip->xml), out 1838 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->child->xml), out 1843 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->container->xml), out 1848 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->remote->xml), out 1852 lib/pengine/bundle.c out->end_list(out); out 1856 lib/pengine/bundle.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Container bundle%s: %s [%s]%s%s", out 1862 lib/pengine/bundle.c pe__bundle_replica_output_text(out, replica, pe__current_node(replica->container), out 1867 lib/pengine/bundle.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 582 lib/pengine/clone.c pe__clone_xml(pcmk__output_t *out, va_list args) out 615 lib/pengine/clone.c rc = pe__name_and_nvpairs_xml(out, true, "clone", 8, out 627 lib/pengine/clone.c out->message(out, crm_map_element_name(child_rsc->xml), options, out 632 lib/pengine/clone.c pcmk__output_xml_pop_parent(out); out 640 lib/pengine/clone.c pe__clone_html(pcmk__output_t *out, va_list args) out 670 lib/pengine/clone.c out->begin_list(out, NULL, NULL, "Clone Set: %s [%s]%s%s%s%s", out 758 lib/pengine/clone.c out->message(out, crm_map_element_name(child_rsc->xml), options, out 766 lib/pengine/clone.c out->end_list(out); out 784 lib/pengine/clone.c out->list_item(out, NULL, " Masters: [ %s ]", list_text); out 809 lib/pengine/clone.c out->list_item(out, NULL, " Slaves (target-role): [ %s ]", list_text); out 811 lib/pengine/clone.c out->list_item(out, NULL, " Slaves: [ %s ]", list_text); out 815 lib/pengine/clone.c out->list_item(out, NULL, " Started: [ %s ]", list_text); out 864 lib/pengine/clone.c out->list_item(out, NULL, " %s: [ %s ]", state, stopped_list); out 870 lib/pengine/clone.c out->end_list(out); out 877 lib/pengine/clone.c pe__clone_text(pcmk__output_t *out, va_list args) out 907 lib/pengine/clone.c out->begin_list(out, NULL, NULL, "Clone Set: %s [%s]%s%s%s%s", out 995 lib/pengine/clone.c out->message(out, crm_map_element_name(child_rsc->xml), options, out 1003 lib/pengine/clone.c out->end_list(out); out 1021 lib/pengine/clone.c out->list_item(out, "Masters", "[ %s ]", list_text); out 1046 lib/pengine/clone.c out->list_item(out, "Slaves (target-role)", "[ %s ]", list_text); out 1048 lib/pengine/clone.c out->list_item(out, "Slaves", "[ %s ]", list_text); out 1051 lib/pengine/clone.c out->list_item(out, "Started", "[ %s ]", list_text); out 1099 lib/pengine/clone.c out->list_item(out, state, "[ %s ]", stopped_list); out 1104 lib/pengine/clone.c out->end_list(out); out 185 lib/pengine/group.c pe__group_xml(pcmk__output_t *out, va_list args) out 214 lib/pengine/group.c rc = pe__name_and_nvpairs_xml(out, true, "group", 4 out 223 lib/pengine/group.c out->message(out, crm_map_element_name(child_rsc->xml), options, child_rsc, out 228 lib/pengine/group.c pcmk__output_xml_pop_parent(out); out 236 lib/pengine/group.c pe__group_html(pcmk__output_t *out, va_list args) out 257 lib/pengine/group.c out->begin_list(out, NULL, NULL, "Resource Group: %s%s%s", rsc->id, out 261 lib/pengine/group.c pe__rscs_brief_output(out, rscs, options, TRUE); out 275 lib/pengine/group.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Resource Group: %s%s%s", rsc->id, out 279 lib/pengine/group.c out->message(out, crm_map_element_name(child_rsc->xml), options, out 284 lib/pengine/group.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 291 lib/pengine/group.c pe__group_text(pcmk__output_t *out, va_list args) out 312 lib/pengine/group.c out->begin_list(out, NULL, NULL, "Resource Group: %s%s%s", rsc->id, out 316 lib/pengine/group.c pe__rscs_brief_output(out, rscs, options, TRUE); out 330 lib/pengine/group.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Resource Group: %s%s%s", rsc->id, out 334 lib/pengine/group.c out->message(out, crm_map_element_name(child_rsc->xml), options, out 339 lib/pengine/group.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 717 lib/pengine/native.c pe__common_output_html(pcmk__output_t *out, pe_resource_t * rsc, out 764 lib/pengine/native.c list_node = pcmk__output_create_html_node(out, "li", NULL, NULL, NULL); out 773 lib/pengine/native.c out->begin_list(out, NULL, NULL, "Options"); out 776 lib/pengine/native.c out->list_item(out, NULL, "Option: %s = %s", (char *) key, (char *) value); out 778 lib/pengine/native.c out->end_list(out); out 785 lib/pengine/native.c out->begin_list(out, NULL, NULL, "Allowed Nodes"); out 788 lib/pengine/native.c out->list_item(out, NULL, "%s %d", n->details->uname, n->weight); out 790 lib/pengine/native.c out->end_list(out); out 797 lib/pengine/native.c out->begin_list(out, NULL, NULL, "=== Allowed Nodes"); out 800 lib/pengine/native.c pe__output_node(n, FALSE, out); out 802 lib/pengine/native.c out->end_list(out); out 809 lib/pengine/native.c pe__common_output_text(pcmk__output_t *out, pe_resource_t * rsc, out 832 lib/pengine/native.c out->list_item(out, NULL, "%s", s); out 840 lib/pengine/native.c out->begin_list(out, NULL, NULL, "Options"); out 843 lib/pengine/native.c out->list_item(out, NULL, "Option: %s = %s", (char *) key, (char *) value); out 845 lib/pengine/native.c out->end_list(out); out 852 lib/pengine/native.c out->begin_list(out, NULL, NULL, "Allowed Nodes"); out 855 lib/pengine/native.c out->list_item(out, NULL, "%s %d", n->details->uname, n->weight); out 857 lib/pengine/native.c out->end_list(out); out 864 lib/pengine/native.c out->begin_list(out, NULL, NULL, "=== Allowed Nodes"); out 867 lib/pengine/native.c pe__output_node(n, FALSE, out); out 869 lib/pengine/native.c out->end_list(out); out 1052 lib/pengine/native.c pe__resource_xml(pcmk__output_t *out, va_list args) out 1089 lib/pengine/native.c rc = pe__name_and_nvpairs_xml(out, true, "resource", 16, out 1117 lib/pengine/native.c rc = pe__name_and_nvpairs_xml(out, false, "node", 3, out 1125 lib/pengine/native.c pcmk__output_xml_pop_parent(out); out 1131 lib/pengine/native.c pe__resource_html(pcmk__output_t *out, va_list args) out 1150 lib/pengine/native.c return pe__common_output_html(out, rsc, rsc_printable_id(rsc), node, options); out 1155 lib/pengine/native.c pe__resource_text(pcmk__output_t *out, va_list args) out 1174 lib/pengine/native.c return pe__common_output_text(out, rsc, rsc_printable_id(rsc), node, options); out 1414 lib/pengine/native.c pe__rscs_brief_output(pcmk__output_t *out, GListPtr rsc_list, long options, gboolean print_all) out 1455 lib/pengine/native.c out->list_item(out, NULL, " %d/%d\t(%s):\tActive %s", out 1460 lib/pengine/native.c out->list_item(out, NULL, " %d\t(%s):\tActive %s", out 1469 lib/pengine/native.c out->list_item(out, NULL, " %d/%d\t(%s):\tActive", out 210 lib/pengine/pe_output.c pe__cluster_summary(pcmk__output_t *out, va_list args) { out 223 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); out 224 lib/pengine/pe_output.c out->message(out, "cluster-stack", stack_s); out 237 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); out 238 lib/pengine/pe_output.c out->message(out, "cluster-dc", data_set->dc_node, quorum, dc_version_s, dc_name); out 248 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); out 249 lib/pengine/pe_output.c out->message(out, "cluster-times", last_written, user, client, origin); out 253 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); out 254 lib/pengine/pe_output.c out->message(out, "cluster-counts", g_list_length(data_set->nodes), out 260 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); out 261 lib/pengine/pe_output.c out->message(out, "cluster-options", data_set); out 264 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 266 lib/pengine/pe_output.c if (out->message(out, "maint-mode", data_set->flags) == pcmk_rc_ok) { out 276 lib/pengine/pe_output.c pe__cluster_summary_html(pcmk__output_t *out, va_list args) { out 289 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); out 290 lib/pengine/pe_output.c out->message(out, "cluster-stack", stack_s); out 303 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); out 304 lib/pengine/pe_output.c out->message(out, "cluster-dc", data_set->dc_node, quorum, dc_version_s, dc_name); out 314 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); out 315 lib/pengine/pe_output.c out->message(out, "cluster-times", last_written, user, client, origin); out 319 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Cluster Summary"); out 320 lib/pengine/pe_output.c out->message(out, "cluster-counts", g_list_length(data_set->nodes), out 330 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 332 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "Config Options"); out 333 lib/pengine/pe_output.c out->message(out, "cluster-options", data_set); out 336 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 338 lib/pengine/pe_output.c if (out->message(out, "maint-mode", data_set->flags) == pcmk_rc_ok) { out 398 lib/pengine/pe_output.c pe__name_and_nvpairs_xml(pcmk__output_t *out, bool is_list, const char *tag_name out 406 lib/pengine/pe_output.c xml_node = pcmk__output_xml_peek_parent(out); out 423 lib/pengine/pe_output.c pcmk__output_xml_push_parent(out, xml_node); out 430 lib/pengine/pe_output.c pe__ban_html(pcmk__output_t *out, va_list args) { out 441 lib/pengine/pe_output.c pcmk__output_create_html_node(out, "li", NULL, NULL, buf); out 450 lib/pengine/pe_output.c pe__ban_text(pcmk__output_t *out, va_list args) { out 456 lib/pengine/pe_output.c out->list_item(out, NULL, "%s\tprevents %s from running %son %s", out 467 lib/pengine/pe_output.c pe__ban_xml(pcmk__output_t *out, va_list args) { out 468 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "ban"); out 488 lib/pengine/pe_output.c pe__cluster_counts_html(pcmk__output_t *out, va_list args) { out 489 lib/pengine/pe_output.c xmlNodePtr nodes_node = pcmk__output_create_xml_node(out, "li"); out 490 lib/pengine/pe_output.c xmlNodePtr resources_node = pcmk__output_create_xml_node(out, "li"); out 550 lib/pengine/pe_output.c pe__cluster_counts_text(pcmk__output_t *out, va_list args) { out 556 lib/pengine/pe_output.c out->list_item(out, NULL, "%d node%s configured", out 560 lib/pengine/pe_output.c out->list_item(out, NULL, "%d resource instance%s configured " out 566 lib/pengine/pe_output.c out->list_item(out, NULL, "%d resource instance%s configured " out 570 lib/pengine/pe_output.c out->list_item(out, NULL, "%d resource instance%s configured " out 575 lib/pengine/pe_output.c out->list_item(out, NULL, "%d resource instance%s configured", out 584 lib/pengine/pe_output.c pe__cluster_counts_xml(pcmk__output_t *out, va_list args) { out 585 lib/pengine/pe_output.c xmlNodePtr nodes_node = pcmk__output_create_xml_node(out, "nodes_configured"); out 586 lib/pengine/pe_output.c xmlNodePtr resources_node = pcmk__output_create_xml_node(out, "resources_configured"); out 614 lib/pengine/pe_output.c pe__cluster_dc_html(pcmk__output_t *out, va_list args) { out 615 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "li"); out 648 lib/pengine/pe_output.c pe__cluster_dc_text(pcmk__output_t *out, va_list args) { out 655 lib/pengine/pe_output.c out->list_item(out, "Current DC", "%s (version %s) - partition %s quorum", out 659 lib/pengine/pe_output.c out->list_item(out, "Current DC", "NONE"); out 667 lib/pengine/pe_output.c pe__cluster_dc_xml(pcmk__output_t *out, va_list args) { out 668 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "current_dc"); out 691 lib/pengine/pe_output.c pe__cluster_maint_mode_text(pcmk__output_t *out, va_list args) { out 695 lib/pengine/pe_output.c fprintf(out->dest, "\n *** Resource management is DISABLED ***"); out 696 lib/pengine/pe_output.c fprintf(out->dest, "\n The cluster will not attempt to start, stop or recover services"); out 697 lib/pengine/pe_output.c fprintf(out->dest, "\n"); out 700 lib/pengine/pe_output.c fprintf(out->dest, "\n *** Resource management is DISABLED ***"); out 701 lib/pengine/pe_output.c fprintf(out->dest, "\n The cluster will keep all resources stopped"); out 702 lib/pengine/pe_output.c fprintf(out->dest, "\n"); out 711 lib/pengine/pe_output.c pe__cluster_options_html(pcmk__output_t *out, va_list args) { out 714 lib/pengine/pe_output.c out->list_item(out, NULL, "STONITH of failed nodes %s", out 717 lib/pengine/pe_output.c out->list_item(out, NULL, "Cluster is %s", out 722 lib/pengine/pe_output.c out->list_item(out, NULL, "No quorum policy: Freeze resources"); out 726 lib/pengine/pe_output.c out->list_item(out, NULL, "No quorum policy: Stop ALL resources"); out 730 lib/pengine/pe_output.c out->list_item(out, NULL, "No quorum policy: Demote promotable " out 735 lib/pengine/pe_output.c out->list_item(out, NULL, "No quorum policy: Ignore"); out 739 lib/pengine/pe_output.c out->list_item(out, NULL, "No quorum policy: Suicide"); out 744 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "li"); out 751 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "li"); out 758 lib/pengine/pe_output.c out->list_item(out, NULL, "Resource management: enabled"); out 766 lib/pengine/pe_output.c pe__cluster_options_log(pcmk__output_t *out, va_list args) { out 770 lib/pengine/pe_output.c out->info(out, "Resource management is DISABLED. The cluster will not attempt to start, stop or recover services."); out 773 lib/pengine/pe_output.c out->info(out, "Resource management is DISABLED. The cluster has stopped all resources."); out 782 lib/pengine/pe_output.c pe__cluster_options_text(pcmk__output_t *out, va_list args) { out 785 lib/pengine/pe_output.c out->list_item(out, NULL, "STONITH of failed nodes %s", out 788 lib/pengine/pe_output.c out->list_item(out, NULL, "Cluster is %s", out 793 lib/pengine/pe_output.c out->list_item(out, NULL, "No quorum policy: Freeze resources"); out 797 lib/pengine/pe_output.c out->list_item(out, NULL, "No quorum policy: Stop ALL resources"); out 801 lib/pengine/pe_output.c out->list_item(out, NULL, "No quorum policy: Demote promotable " out 806 lib/pengine/pe_output.c out->list_item(out, NULL, "No quorum policy: Ignore"); out 810 lib/pengine/pe_output.c out->list_item(out, NULL, "No quorum policy: Suicide"); out 819 lib/pengine/pe_output.c pe__cluster_options_xml(pcmk__output_t *out, va_list args) { out 820 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "cluster_options"); out 860 lib/pengine/pe_output.c pe__cluster_stack_html(pcmk__output_t *out, va_list args) { out 861 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "li"); out 872 lib/pengine/pe_output.c pe__cluster_stack_text(pcmk__output_t *out, va_list args) { out 874 lib/pengine/pe_output.c out->list_item(out, "Stack", "%s", stack_s); out 880 lib/pengine/pe_output.c pe__cluster_stack_xml(pcmk__output_t *out, va_list args) { out 881 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "stack"); out 891 lib/pengine/pe_output.c pe__cluster_times_html(pcmk__output_t *out, va_list args) { out 892 lib/pengine/pe_output.c xmlNodePtr updated_node = pcmk__output_create_xml_node(out, "li"); out 893 lib/pengine/pe_output.c xmlNodePtr changed_node = pcmk__output_create_xml_node(out, "li"); out 915 lib/pengine/pe_output.c pe__cluster_times_xml(pcmk__output_t *out, va_list args) { out 916 lib/pengine/pe_output.c xmlNodePtr updated_node = pcmk__output_create_xml_node(out, "last_update"); out 917 lib/pengine/pe_output.c xmlNodePtr changed_node = pcmk__output_create_xml_node(out, "last_change"); out 936 lib/pengine/pe_output.c pe__cluster_times_text(pcmk__output_t *out, va_list args) { out 944 lib/pengine/pe_output.c out->list_item(out, "Last updated", "%s", pcmk__epoch2str(NULL)); out 945 lib/pengine/pe_output.c out->list_item(out, "Last change", " %s", buf); out 953 lib/pengine/pe_output.c pe__failed_action_text(pcmk__output_t *out, va_list args) { out 957 lib/pengine/pe_output.c out->list_item(out, NULL, "%s", s); out 964 lib/pengine/pe_output.c pe__failed_action_xml(pcmk__output_t *out, va_list args) { out 975 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "failure"); out 1025 lib/pengine/pe_output.c pe__node_html(pcmk__output_t *out, va_list args) { out 1040 lib/pengine/pe_output.c xmlNodePtr item_node = pcmk__output_create_xml_node(out, "li"); out 1065 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, NULL); out 1066 lib/pengine/pe_output.c pe__rscs_brief_output(out, rscs, print_opts | pe_print_rsconly, FALSE); out 1067 lib/pengine/pe_output.c out->end_list(out); out 1073 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, NULL); out 1076 lib/pengine/pe_output.c out->message(out, crm_map_element_name(rsc->xml), print_opts | pe_print_rsconly, out 1079 lib/pengine/pe_output.c out->end_list(out); out 1082 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "%s", buf); out 1093 lib/pengine/pe_output.c pe__node_text(pcmk__output_t *out, va_list args) { out 1123 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "%s", buf); out 1124 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "Resources"); out 1126 lib/pengine/pe_output.c pe__rscs_brief_output(out, rscs, print_opts | pe_print_rsconly, FALSE); out 1128 lib/pengine/pe_output.c out->end_list(out); out 1129 lib/pengine/pe_output.c out->end_list(out); out 1135 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "%s", buf); out 1136 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "Resources"); out 1140 lib/pengine/pe_output.c out->message(out, crm_map_element_name(rsc->xml), print_opts | pe_print_rsconly, out 1144 lib/pengine/pe_output.c out->end_list(out); out 1145 lib/pengine/pe_output.c out->end_list(out); out 1148 lib/pengine/pe_output.c out->list_item(out, NULL, "%s", buf); out 1154 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "Node: %s", pe__node_display_name(node, print_clone_detail)); out 1163 lib/pengine/pe_output.c pe__node_xml(pcmk__output_t *out, va_list args) { out 1189 lib/pengine/pe_output.c pe__name_and_nvpairs_xml(out, true, "node", 13, out 1205 lib/pengine/pe_output.c xmlNodePtr xml_node = pcmk__output_xml_peek_parent(out); out 1215 lib/pengine/pe_output.c out->message(out, crm_map_element_name(rsc->xml), print_opts | pe_print_rsconly, out 1222 lib/pengine/pe_output.c out->end_list(out); out 1224 lib/pengine/pe_output.c xmlNodePtr parent = pcmk__output_xml_create_parent(out, "node"); out 1233 lib/pengine/pe_output.c pe__node_attribute_text(pcmk__output_t *out, va_list args) { out 1244 lib/pengine/pe_output.c out->list_item(out, NULL, "%-32s\t: %-10s\t: Connectivity is lost", name, value); out 1246 lib/pengine/pe_output.c out->list_item(out, NULL, "%-32s\t: %-10s\t: Connectivity is degraded (Expected=%d)", name, value, expected_score); out 1248 lib/pengine/pe_output.c out->list_item(out, NULL, "%-32s\t: %-10s", name, value); out 1251 lib/pengine/pe_output.c out->list_item(out, NULL, "%-32s\t: %-10s", name, value); out 1259 lib/pengine/pe_output.c pe__node_attribute_html(pcmk__output_t *out, va_list args) { out 1268 lib/pengine/pe_output.c xmlNodePtr item_node = pcmk__output_create_xml_node(out, "li"); out 1281 lib/pengine/pe_output.c out->list_item(out, NULL, "%s: %s", name, value); out 1289 lib/pengine/pe_output.c pe__node_attribute_xml(pcmk__output_t *out, va_list args) { out 1295 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "attribute"); out 1310 lib/pengine/pe_output.c pe__node_list_html(pcmk__output_t *out, va_list args) { out 1328 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Node List"); out 1330 lib/pengine/pe_output.c out->message(out, "node", node, print_opts, TRUE, NULL, print_clone_detail, out 1334 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 1340 lib/pengine/pe_output.c pe__node_list_text(pcmk__output_t *out, va_list args) { out 1374 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Node List"); out 1446 lib/pengine/pe_output.c out->message(out, "node", node, print_opts, TRUE, node_mode, print_clone_detail, out 1453 lib/pengine/pe_output.c out->list_item(out, "Online", "[ %s ]", online_nodes); out 1457 lib/pengine/pe_output.c out->list_item(out, "OFFLINE", "[ %s ]", offline_nodes); out 1461 lib/pengine/pe_output.c out->list_item(out, "RemoteOnline", "[ %s ]", online_remote_nodes); out 1465 lib/pengine/pe_output.c out->list_item(out, "RemoteOFFLINE", "[ %s ]", offline_remote_nodes); out 1469 lib/pengine/pe_output.c out->list_item(out, "GuestOnline", "[ %s ]", online_guest_nodes); out 1473 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 1479 lib/pengine/pe_output.c pe__node_list_xml(pcmk__output_t *out, va_list args) { out 1488 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "nodes"); out 1496 lib/pengine/pe_output.c out->message(out, "node", node, print_opts, TRUE, NULL, print_clone_detail, out 1499 lib/pengine/pe_output.c out->end_list(out); out 1506 lib/pengine/pe_output.c pe__op_history_text(pcmk__output_t *out, va_list args) { out 1515 lib/pengine/pe_output.c out->list_item(out, NULL, "%s", buf); out 1523 lib/pengine/pe_output.c pe__op_history_xml(pcmk__output_t *out, va_list args) { out 1532 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "operation_history"); out 1588 lib/pengine/pe_output.c pe__resource_history_text(pcmk__output_t *out, va_list args) { out 1599 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "%s", buf); out 1601 lib/pengine/pe_output.c out->list_item(out, NULL, "%s", buf); out 1610 lib/pengine/pe_output.c pe__resource_history_xml(pcmk__output_t *out, va_list args) { out 1618 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_xml_create_parent(out, "resource_history"); out 1646 lib/pengine/pe_output.c pcmk__output_xml_pop_parent(out); out 1655 lib/pengine/pe_output.c pe__resource_list(pcmk__output_t *out, va_list args) out 1677 lib/pengine/pe_output.c PCMK__OUTPUT_SPACER_IF(out, print_spacer); out 1681 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "Inactive Resources"); out 1683 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "Full List of Resources"); out 1685 lib/pengine/pe_output.c out->begin_list(out, NULL, NULL, "Active Resources"); out 1693 lib/pengine/pe_output.c pe__rscs_brief_output(out, rscs, print_opts, inactive_resources); out 1731 lib/pengine/pe_output.c x = out->message(out, crm_map_element_name(rsc->xml), print_opts, rsc, out 1740 lib/pengine/pe_output.c out->list_item(out, NULL, "No inactive resources"); out 1742 lib/pengine/pe_output.c out->list_item(out, NULL, "No resources"); out 1744 lib/pengine/pe_output.c out->list_item(out, NULL, "No active resources"); out 1748 lib/pengine/pe_output.c out->end_list(out); out 1754 lib/pengine/pe_output.c pe__ticket_html(pcmk__output_t *out, va_list args) { out 1759 lib/pengine/pe_output.c out->list_item(out, NULL, "%s:\t%s%s %s", ticket->id, out 1765 lib/pengine/pe_output.c out->list_item(out, NULL, "%s:\t%s%s", ticket->id, out 1775 lib/pengine/pe_output.c pe__ticket_text(pcmk__output_t *out, va_list args) { out 1780 lib/pengine/pe_output.c out->list_item(out, ticket->id, "\t%s%s %s", out 1786 lib/pengine/pe_output.c out->list_item(out, ticket->id, "\t%s%s", out 1796 lib/pengine/pe_output.c pe__ticket_xml(pcmk__output_t *out, va_list args) { out 1801 lib/pengine/pe_output.c node = pcmk__output_create_xml_node(out, "ticket"); out 1891 lib/pengine/pe_output.c pe__register_messages(pcmk__output_t *out) { out 1892 lib/pengine/pe_output.c pcmk__register_messages(out, fmt_functions); out 1896 lib/pengine/pe_output.c pe__output_node(pe_node_t *node, gboolean details, pcmk__output_t *out) out 1924 lib/pengine/pe_output.c out->message(out, crm_map_element_name(rsc->xml), out 79 tools/crm_mon.c static pcmk__output_t *out = NULL; out 697 tools/crm_mon.c out->err(out, "Connection to the cluster-daemons terminated"); out 699 tools/crm_mon.c out->info(out, "Connection to the cluster-daemons terminated"); out 823 tools/crm_mon.c out->err(out, "Could not connect to the CIB: %s", out 853 tools/crm_mon.c out->err(out, "Notification setup failed, could not monitor CIB actions"); out 877 tools/crm_mon.c out->info(out, "%c %c: \t%s", ((condition)? '*': ' '), option, get_option_desc(option)); out 975 tools/crm_mon.c out->info(out, "%s", "Display option change mode\n"); out 976 tools/crm_mon.c print_option_help(out, 'c', pcmk_is_set(show, mon_show_tickets)); out 977 tools/crm_mon.c print_option_help(out, 'f', pcmk_is_set(show, mon_show_failcounts)); out 978 tools/crm_mon.c print_option_help(out, 'n', pcmk_is_set(options.mon_ops, mon_op_group_by_node)); out 979 tools/crm_mon.c print_option_help(out, 'o', pcmk_is_set(show, mon_show_operations)); out 980 tools/crm_mon.c print_option_help(out, 'r', pcmk_is_set(options.mon_ops, mon_op_inactive_resources)); out 981 tools/crm_mon.c print_option_help(out, 't', pcmk_is_set(options.mon_ops, mon_op_print_timing)); out 982 tools/crm_mon.c print_option_help(out, 'A', pcmk_is_set(show, mon_show_attributes)); out 983 tools/crm_mon.c print_option_help(out, 'L', pcmk_is_set(show,mon_show_bans)); out 984 tools/crm_mon.c print_option_help(out, 'D', !pcmk_is_set(show, mon_show_summary)); out 985 tools/crm_mon.c print_option_help(out, 'R', pcmk_is_set(options.mon_ops, mon_op_print_clone_detail)); out 986 tools/crm_mon.c print_option_help(out, 'b', pcmk_is_set(options.mon_ops, mon_op_print_brief)); out 987 tools/crm_mon.c print_option_help(out, 'j', pcmk_is_set(options.mon_ops, mon_op_print_pending)); out 988 tools/crm_mon.c print_option_help(out, 'm', pcmk_is_set(show, mon_show_fencing_all)); out 989 tools/crm_mon.c out->info(out, "%s", "\nToggle fields via field letter, type any other key to return"); out 1312 tools/crm_mon.c rc = pcmk__output_new(&out, "text", args->output_dest, argv); out 1314 tools/crm_mon.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); out 1338 tools/crm_mon.c crm_mon_register_messages(out); out 1339 tools/crm_mon.c pe__register_messages(out); out 1340 tools/crm_mon.c stonith__register_messages(out); out 1343 tools/crm_mon.c out->version(out, false); out 1366 tools/crm_mon.c out->dest != stdout) { out 1393 tools/crm_mon.c if (output_format == mon_output_html && out->dest != stdout) { out 1460 tools/crm_mon.c print_simple_status(pcmk__output_t *out, pe_working_set_t * data_set, out 1497 tools/crm_mon.c out->info(out, "CLUSTER WARN: %s%s%s", out 1517 tools/crm_mon.c out->info(out, "CLUSTER OK: %d node%s online%s%s, " out 1945 tools/crm_mon.c out->err(out, "Upgrade failed: %s", pcmk_strerror(-pcmk_err_schema_validation)); out 1957 tools/crm_mon.c out->err(out, "Critical: Unable to get stonith-history"); out 1969 tools/crm_mon.c out->err(out, "Critical: No stonith-API"); out 1972 tools/crm_mon.c out->err(out, "Reading stonith-history failed"); out 1997 tools/crm_mon.c if (print_html_status(out, mon_data_set, stonith_history, options.mon_ops, out 2008 tools/crm_mon.c print_xml_status(out, mon_data_set, crm_errno2exit(history_rc), out 2015 tools/crm_mon.c print_simple_status(out, mon_data_set, stonith_history, options.mon_ops); out 2028 tools/crm_mon.c print_status(out, mon_data_set, stonith_history, options.mon_ops, show, out 2035 tools/crm_mon.c print_status(out, mon_data_set, stonith_history, options.mon_ops, show, out 2045 tools/crm_mon.c out->reset(out); out 2166 tools/crm_mon.c out->finish(out, exit_code, false, NULL); out 2167 tools/crm_mon.c pcmk__output_free(out); out 2168 tools/crm_mon.c out = NULL; out 2188 tools/crm_mon.c if (out != NULL) { out 2189 tools/crm_mon.c out->err(out, "%s: %s", g_get_prgname(), error->message); out 2190 tools/crm_mon.c out->finish(out, exit_code, true, NULL); out 2191 tools/crm_mon.c pcmk__output_free(out); out 2203 tools/crm_mon.c if (out != NULL) { out 2205 tools/crm_mon.c out->dest = freopen(NULL, "w", out->dest); out 2206 tools/crm_mon.c CRM_ASSERT(out->dest != NULL); out 2209 tools/crm_mon.c out->finish(out, exit_code, true, NULL); out 2211 tools/crm_mon.c pcmk__output_free(out); out 97 tools/crm_mon.h void print_status(pcmk__output_t *out, pe_working_set_t *data_set, out 101 tools/crm_mon.h void print_xml_status(pcmk__output_t *out, pe_working_set_t *data_set, out 105 tools/crm_mon.h int print_html_status(pcmk__output_t *out, pe_working_set_t *data_set, out 115 tools/crm_mon.h void crm_mon_register_messages(pcmk__output_t *out); out 118 tools/crm_mon.h void curses_indented_printf(pcmk__output_t *out, const char *format, ...) G_GNUC_PRINTF(2, 3); out 119 tools/crm_mon.h void curses_indented_vprintf(pcmk__output_t *out, const char *format, va_list args) G_GNUC_PRINTF(2, 0); out 40 tools/crm_mon_curses.c curses_free_priv(pcmk__output_t *out) { out 41 tools/crm_mon_curses.c private_data_t *priv = out->priv; out 49 tools/crm_mon_curses.c out->priv = NULL; out 53 tools/crm_mon_curses.c curses_init(pcmk__output_t *out) { out 57 tools/crm_mon_curses.c if (out->priv != NULL) { out 60 tools/crm_mon_curses.c out->priv = calloc(1, sizeof(private_data_t)); out 61 tools/crm_mon_curses.c if (out->priv == NULL) { out 65 tools/crm_mon_curses.c priv = out->priv; out 78 tools/crm_mon_curses.c curses_finish(pcmk__output_t *out, crm_exit_t exit_status, bool print, void **copy_dest) { out 85 tools/crm_mon_curses.c curses_reset(pcmk__output_t *out) { out 86 tools/crm_mon_curses.c CRM_ASSERT(out != NULL); out 88 tools/crm_mon_curses.c curses_free_priv(out); out 89 tools/crm_mon_curses.c curses_init(out); out 93 tools/crm_mon_curses.c curses_subprocess_output(pcmk__output_t *out, int exit_status, out 111 tools/crm_mon_curses.c curses_ver(pcmk__output_t *out, bool extended) { out 122 tools/crm_mon_curses.c curses_error(pcmk__output_t *out, const char *format, ...) { out 142 tools/crm_mon_curses.c curses_info(pcmk__output_t *out, const char *format, ...) { out 160 tools/crm_mon_curses.c curses_output_xml(pcmk__output_t *out, const char *name, const char *buf) { out 161 tools/crm_mon_curses.c private_data_t *priv = out->priv; out 164 tools/crm_mon_curses.c curses_indented_printf(out, "%s", buf); out 169 tools/crm_mon_curses.c curses_begin_list(pcmk__output_t *out, const char *singular_noun, const char *plural_noun, out 171 tools/crm_mon_curses.c private_data_t *priv = out->priv; out 179 tools/crm_mon_curses.c curses_indented_vprintf(out, format, ap); out 194 tools/crm_mon_curses.c curses_list_item(pcmk__output_t *out, const char *id, const char *format, ...) { out 195 tools/crm_mon_curses.c private_data_t *priv = out->priv; out 203 tools/crm_mon_curses.c curses_indented_printf(out, "%s: ", id); out 206 tools/crm_mon_curses.c curses_indented_vprintf(out, format, ap); out 212 tools/crm_mon_curses.c out->increment_list(out); out 216 tools/crm_mon_curses.c curses_increment_list(pcmk__output_t *out) { out 217 tools/crm_mon_curses.c private_data_t *priv = out->priv; out 227 tools/crm_mon_curses.c curses_end_list(pcmk__output_t *out) { out 228 tools/crm_mon_curses.c private_data_t *priv = out->priv; out 236 tools/crm_mon_curses.c curses_indented_printf(out, "%d %s found\n", node->len, node->singular_noun); out 238 tools/crm_mon_curses.c curses_indented_printf(out, "%d %s found\n", node->len, node->plural_noun); out 246 tools/crm_mon_curses.c curses_is_quiet(pcmk__output_t *out) { out 247 tools/crm_mon_curses.c return out->quiet; out 287 tools/crm_mon_curses.c curses_indented_vprintf(pcmk__output_t *out, const char *format, va_list args) { out 289 tools/crm_mon_curses.c private_data_t *priv = out->priv; out 311 tools/crm_mon_curses.c curses_indented_printf(pcmk__output_t *out, const char *format, ...) { out 315 tools/crm_mon_curses.c curses_indented_vprintf(out, format, ap); out 321 tools/crm_mon_curses.c stonith_event_console(pcmk__output_t *out, va_list args) { out 334 tools/crm_mon_curses.c curses_indented_printf(out, "%s of %s failed: delegate=%s, client=%s, origin=%s, %s='%s'%s\n", out 343 tools/crm_mon_curses.c curses_indented_printf(out, "%s of %s successful: delegate=%s, client=%s, origin=%s, %s='%s'\n", out 351 tools/crm_mon_curses.c curses_indented_printf(out, "%s of %s pending: client=%s, origin=%s\n", out 364 tools/crm_mon_curses.c cluster_maint_mode_console(pcmk__output_t *out, va_list args) { out 417 tools/crm_mon_curses.c crm_mon_register_messages(pcmk__output_t *out) { out 418 tools/crm_mon_curses.c pcmk__register_messages(out, fmt_functions); out 431 tools/crm_mon_curses.c curses_indented_vprintf(pcmk__output_t *out, const char *format, va_list args) { out 437 tools/crm_mon_curses.c curses_indented_printf(pcmk__output_t *out, const char *format, ...) { out 442 tools/crm_mon_curses.c crm_mon_register_messages(pcmk__output_t *out) { out 35 tools/crm_mon_print.c static int print_rsc_history(pcmk__output_t *out, pe_working_set_t *data_set, out 38 tools/crm_mon_print.c static int print_node_history(pcmk__output_t *out, pe_working_set_t *data_set, out 41 tools/crm_mon_print.c static gboolean add_extra_info(pcmk__output_t *out, pe_node_t * node, GListPtr rsc_list, out 44 tools/crm_mon_print.c static int print_node_summary(pcmk__output_t *out, pe_working_set_t * data_set, out 47 tools/crm_mon_print.c static int print_cluster_tickets(pcmk__output_t *out, pe_working_set_t * data_set, out 49 tools/crm_mon_print.c static int print_neg_locations(pcmk__output_t *out, pe_working_set_t *data_set, out 52 tools/crm_mon_print.c static int print_node_attributes(pcmk__output_t *out, pe_working_set_t *data_set, out 55 tools/crm_mon_print.c static int print_failed_actions(pcmk__output_t *out, pe_working_set_t *data_set, out 175 tools/crm_mon_print.c print_rsc_history(pcmk__output_t *out, pe_working_set_t *data_set, pe_node_t *node, out 203 tools/crm_mon_print.c out->message(out, "resource-history", rsc, rsc_id, TRUE, failcount, last_failure, TRUE); out 208 tools/crm_mon_print.c out->message(out, "op-history", xml_op, task, interval_ms_s, out 215 tools/crm_mon_print.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 230 tools/crm_mon_print.c print_node_history(pcmk__output_t *out, pe_working_set_t *data_set, out 281 tools/crm_mon_print.c out->message(out, "node", node, get_resource_display_options(mon_ops), out 289 tools/crm_mon_print.c out->message(out, "resource-history", rsc, rsc_id, FALSE, out 300 tools/crm_mon_print.c out->message(out, "node", node, get_resource_display_options(mon_ops), out 308 tools/crm_mon_print.c print_rsc_history(out, data_set, node, rsc_entry, mon_ops, op_list); out 312 tools/crm_mon_print.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 332 tools/crm_mon_print.c add_extra_info(pcmk__output_t *out, pe_node_t *node, GListPtr rsc_list, out 343 tools/crm_mon_print.c if (add_extra_info(out, node, rsc->children, attrname, expected_score)) { out 382 tools/crm_mon_print.c pcmk__output_t *out; out 396 tools/crm_mon_print.c add_extra = add_extra_info(data->out, data->node, data->node->details->running_rsc, out 400 tools/crm_mon_print.c data->out->message(data->out, "node-attribute", name, value, add_extra, out 414 tools/crm_mon_print.c print_node_summary(pcmk__output_t *out, pe_working_set_t * data_set, out 445 tools/crm_mon_print.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, operations ? "Operations" : "Migration Summary"); out 447 tools/crm_mon_print.c print_node_history(out, data_set, node, node_state, operations, mon_ops, out 451 tools/crm_mon_print.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 463 tools/crm_mon_print.c print_cluster_tickets(pcmk__output_t *out, pe_working_set_t * data_set, out 473 tools/crm_mon_print.c PCMK__OUTPUT_SPACER_IF(out, print_spacer); out 476 tools/crm_mon_print.c out->begin_list(out, NULL, NULL, "Tickets"); out 482 tools/crm_mon_print.c out->message(out, "ticket", ticket); out 486 tools/crm_mon_print.c out->end_list(out); out 500 tools/crm_mon_print.c print_neg_locations(pcmk__output_t *out, pe_working_set_t *data_set, out 523 tools/crm_mon_print.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Negative Location Constraints"); out 524 tools/crm_mon_print.c out->message(out, "ban", node, location, out 530 tools/crm_mon_print.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 543 tools/crm_mon_print.c print_node_attributes(pcmk__output_t *out, pe_working_set_t *data_set, out 561 tools/crm_mon_print.c data.out = out; out 582 tools/crm_mon_print.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Node Attributes"); out 584 tools/crm_mon_print.c out->message(out, "node", data.node, get_resource_display_options(mon_ops), out 592 tools/crm_mon_print.c out->end_list(out); out 596 tools/crm_mon_print.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 608 tools/crm_mon_print.c print_failed_actions(pcmk__output_t *out, pe_working_set_t *data_set, out 640 tools/crm_mon_print.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Failed Resource Actions"); out 641 tools/crm_mon_print.c out->message(out, "failed-action", xml_op); out 644 tools/crm_mon_print.c PCMK__OUTPUT_LIST_FOOTER(out, rc); out 665 tools/crm_mon_print.c print_status(pcmk__output_t *out, pe_working_set_t *data_set, out 675 tools/crm_mon_print.c CHECK_RC(rc, out->message(out, "cluster-summary", data_set, out 687 tools/crm_mon_print.c PCMK__OUTPUT_SPACER_IF(out, rc == pcmk_rc_ok); out 688 tools/crm_mon_print.c CHECK_RC(rc, out->message(out, "node-list", data_set->nodes, unames, out 697 tools/crm_mon_print.c CHECK_RC(rc, out->message(out, "resource-list", data_set, print_opts, out 706 tools/crm_mon_print.c CHECK_RC(rc, print_node_attributes(out, data_set, mon_ops, unames, resources, out 716 tools/crm_mon_print.c CHECK_RC(rc, print_node_summary(out, data_set, out 726 tools/crm_mon_print.c CHECK_RC(rc, print_failed_actions(out, data_set, unames, resources, out 738 tools/crm_mon_print.c CHECK_RC(rc, out->message(out, "failed-fencing-history", stonith_history, unames, out 746 tools/crm_mon_print.c CHECK_RC(rc, print_cluster_tickets(out, data_set, rc == pcmk_rc_ok)); out 751 tools/crm_mon_print.c CHECK_RC(rc, print_neg_locations(out, data_set, mon_ops, prefix, resources, out 762 tools/crm_mon_print.c CHECK_RC(rc, out->message(out, "fencing-history", hp, unames, out 770 tools/crm_mon_print.c CHECK_RC(rc, out->message(out, "pending-fencing-actions", hp, unames, out 792 tools/crm_mon_print.c print_xml_status(pcmk__output_t *out, pe_working_set_t *data_set, out 801 tools/crm_mon_print.c out->message(out, "cluster-summary", data_set, out 814 tools/crm_mon_print.c out->message(out, "node-list", data_set->nodes, unames, out 823 tools/crm_mon_print.c out->message(out, "resource-list", data_set, print_opts, out 831 tools/crm_mon_print.c print_node_attributes(out, data_set, mon_ops, unames, resources, FALSE); out 840 tools/crm_mon_print.c print_node_summary(out, data_set, out 849 tools/crm_mon_print.c print_failed_actions(out, data_set, unames, resources, FALSE); out 856 tools/crm_mon_print.c out->message(out, "full-fencing-history", history_rc, stonith_history, out 863 tools/crm_mon_print.c print_cluster_tickets(out, data_set, FALSE); out 868 tools/crm_mon_print.c print_neg_locations(out, data_set, mon_ops, prefix, resources, FALSE); out 887 tools/crm_mon_print.c print_html_status(pcmk__output_t *out, pe_working_set_t *data_set, out 897 tools/crm_mon_print.c out->message(out, "cluster-summary", data_set, out 910 tools/crm_mon_print.c out->message(out, "node-list", data_set->nodes, unames, out 919 tools/crm_mon_print.c out->message(out, "resource-list", data_set, print_opts, out 928 tools/crm_mon_print.c print_node_attributes(out, data_set, mon_ops, unames, resources, FALSE); out 937 tools/crm_mon_print.c print_node_summary(out, data_set, out 946 tools/crm_mon_print.c print_failed_actions(out, data_set, unames, resources, FALSE); out 957 tools/crm_mon_print.c out->message(out, "failed-fencing-history", stonith_history, unames, out 969 tools/crm_mon_print.c out->message(out, "fencing-history", hp, unames, out 977 tools/crm_mon_print.c out->message(out, "pending-fencing-actions", hp, unames, out 986 tools/crm_mon_print.c print_cluster_tickets(out, data_set, FALSE); out 991 tools/crm_mon_print.c print_neg_locations(out, data_set, mon_ops, prefix, resources, FALSE); out 346 tools/stonith_admin.c pcmk__output_t *out = NULL; out 373 tools/stonith_admin.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); out 381 tools/stonith_admin.c stonith__register_messages(out); out 384 tools/stonith_admin.c out->version(out, false); out 485 tools/stonith_admin.c out->err(out, "%s", help); out 494 tools/stonith_admin.c out->err(out, "Please specify an agent to query using -a,--agent [value]"); out 495 tools/stonith_admin.c out->err(out, "%s", help); out 501 tools/stonith_admin.c out->quiet = args->quiet; out 510 tools/stonith_admin.c out->err(out, "Could not connect to fencer: %s", pcmk_strerror(rc)); out 517 tools/stonith_admin.c rc = pcmk__fence_installed(out, st, options.timeout*1000); out 519 tools/stonith_admin.c out->err(out, "Failed to list installed devices: %s", pcmk_strerror(rc)); out 525 tools/stonith_admin.c rc = pcmk__fence_registered(out, st, target, options.timeout*1000); out 527 tools/stonith_admin.c out->err(out, "Failed to list registered devices: %s", pcmk_strerror(rc)); out 541 tools/stonith_admin.c rc = pcmk__fence_list_targets(out, st, device, options.timeout*1000); out 543 tools/stonith_admin.c out->err(out, "Couldn't list targets: %s", pcmk_strerror(rc)); out 568 tools/stonith_admin.c rc = pcmk__fence_metadata(out, st, options.agent, options.timeout*1000); out 570 tools/stonith_admin.c out->err(out, "Can't get fence agent meta-data: %s", pcmk_strerror(rc)); out 596 tools/stonith_admin.c rc = pcmk__fence_last(out, target, options.as_nodeid); out 600 tools/stonith_admin.c rc = pcmk__fence_history(out, st, target, options.timeout*1000, args->verbosity, out 606 tools/stonith_admin.c rc = pcmk__fence_validate(out, st, options.agent, device, options.params, out 619 tools/stonith_admin.c if (out != NULL) { out 620 tools/stonith_admin.c out->finish(out, exit_code, true, NULL); out 621 tools/stonith_admin.c pcmk__output_free(out);