pacemaker  2.1.5-b7adf64e51
Scalable High-Availability cluster resource manager
Functions
pcmk_status.c File Reference
#include <crm_internal.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <crm/cib/internal.h>
#include <crm/common/output.h>
#include <crm/common/results.h>
#include <crm/fencing/internal.h>
#include <crm/stonith-ng.h>
#include <pacemaker.h>
#include <pacemaker-internal.h>
Include dependency graph for pcmk_status.c:

Go to the source code of this file.

Functions

int pcmk__output_cluster_status (pcmk__output_t *out, stonith_t *stonith, cib_t *cib, xmlNode *current_cib, enum pcmk__fence_history fence_history, uint32_t show, uint32_t show_opts, const char *only_node, const char *only_rsc, const char *neg_location_prefix, bool simple_output)
 
int pcmk_status (xmlNodePtr *xml)
 Output the current status of the cluster, formatted in the same way that crm_mon --output-as=xml would. More...
 
int pcmk__status (pcmk__output_t *out, cib_t *cib, enum pcmk__fence_history fence_history, uint32_t show, uint32_t show_opts, const char *only_node, const char *only_rsc, const char *neg_location_prefix, bool simple_output, guint timeout_ms)
 
int pcmk__output_simple_status (pcmk__output_t *out, pe_working_set_t *data_set)
 

Function Documentation

◆ pcmk__output_cluster_status()

int pcmk__output_cluster_status ( pcmk__output_t out,
stonith_t stonith,
cib_t cib,
xmlNode *  current_cib,
enum pcmk__fence_history  fence_history,
uint32_t  show,
uint32_t  show_opts,
const char *  only_node,
const char *  only_rsc,
const char *  neg_location_prefix,
bool  simple_output 
)

Definition at line 100 of file pcmk_status.c.

◆ pcmk__output_simple_status()

int pcmk__output_simple_status ( pcmk__output_t out,
pe_working_set_t data_set 
)

Definition at line 318 of file pcmk_status.c.

◆ pcmk__status()

int pcmk__status ( pcmk__output_t out,
cib_t cib,
enum pcmk__fence_history  fence_history,
uint32_t  show,
uint32_t  show_opts,
const char *  only_node,
const char *  only_rsc,
const char *  neg_location_prefix,
bool  simple_output,
guint  timeout_ms 
)

Definition at line 238 of file pcmk_status.c.

◆ pcmk_status()

int pcmk_status ( xmlNodePtr *  xml)

Output the current status of the cluster, formatted in the same way that crm_mon --output-as=xml would.

Parameters
[in,out]xmlThe destination for the result, as an XML tree.
Returns
Standard Pacemaker return code

Definition at line 170 of file pcmk_status.c.