pacemaker  2.1.4-dc6eb4362
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 *st, cib_t *cib, xmlNode *current_cib, enum pcmk__fence_history fence_history, uint32_t show, uint32_t show_opts, char *only_node, char *only_rsc, 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, char *only_node, char *only_rsc, char *neg_location_prefix, bool simple_output)
 
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 st,
cib_t cib,
xmlNode *  current_cib,
enum pcmk__fence_history  fence_history,
uint32_t  show,
uint32_t  show_opts,
char *  only_node,
char *  only_rsc,
char *  neg_location_prefix,
bool  simple_output 
)

Definition at line 139 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 296 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,
char *  only_node,
char *  only_rsc,
char *  neg_location_prefix,
bool  simple_output 
)

Definition at line 239 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 206 of file pcmk_status.c.