pacemaker  2.0.4-2deceaa
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pcmki_fence.h
Go to the documentation of this file.
1 /*
2  * Copyright 2019 the Pacemaker project contributors
3  *
4  * The version control history for this file may have further details.
5  *
6  * This source code is licensed under the GNU Lesser General Public License
7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8  */
9 #ifndef PCMKI_STONITH_H
10 # define PCMKI_STONITH_H
11 
12 # include <crm/common/output.h>
13 # include <crm/stonith-ng.h>
14 
34 int pcmk__fence_action(stonith_t *st, const char *target, const char *action,
35  const char *name, unsigned int timeout, unsigned int tolerance,
36  int delay);
37 
60  unsigned int timeout, bool quiet, int verbose,
61  bool broadcast, bool cleanup);
62 
79 int pcmk__fence_installed(pcmk__output_t *out, stonith_t *st, unsigned int timeout);
80 
97 int pcmk__fence_last(pcmk__output_t *out, const char *target, bool as_nodeid);
98 
117  const char *device_id, unsigned int timeout);
118 
136 int pcmk__fence_metadata(pcmk__output_t *out, stonith_t *st, char *agent,
137  unsigned int timeout);
138 
158  unsigned int timeout);
159 
178 int pcmk__fence_register_level(stonith_t *st, char *target, int fence_level,
179  stonith_key_value_t *devices);
180 
198 int pcmk__fence_unregister_level(stonith_t *st, char *target, int fence_level);
199 
219 int pcmk__fence_validate(pcmk__output_t *out, stonith_t *st, const char *agent,
220  const char *id, stonith_key_value_t *params,
221  unsigned int timeout);
222 
223 #endif
Formatted output for pacemaker tools.
int pcmk__fence_last(pcmk__output_t *out, const char *target, bool as_nodeid)
When was a device last fenced?
Definition: pcmk_fence.c:288
int pcmk__fence_registered(pcmk__output_t *out, stonith_t *st, char *target, unsigned int timeout)
List registered fence devices.
Definition: pcmk_fence.c:399
int pcmk__fence_action(stonith_t *st, const char *target, const char *action, const char *name, unsigned int timeout, unsigned int tolerance, int delay)
Perform a STONITH action.
Definition: pcmk_fence.c:135
const char * action
Definition: pcmk_fence.c:29
int pcmk__fence_unregister_level(stonith_t *st, char *target, int fence_level)
Unregister a fencing level for a specific node, node regex, or attribute.
Definition: pcmk_fence.c:457
stonith_t * st
Definition: pcmk_fence.c:27
unsigned int tolerance
Definition: pcmk_fence.c:32
int pcmk__fence_metadata(pcmk__output_t *out, stonith_t *st, char *agent, unsigned int timeout)
Get metadata for a resource.
Definition: pcmk_fence.c:365
int pcmk__fence_list_targets(pcmk__output_t *out, stonith_t *st, const char *device_id, unsigned int timeout)
List nodes that can be fenced.
Definition: pcmk_fence.c:322
int pcmk__fence_register_level(stonith_t *st, char *target, int fence_level, stonith_key_value_t *devices)
Register a fencing level for a specific node, node regex, or attribute.
Definition: pcmk_fence.c:443
const char * target
Definition: pcmk_fence.c:28
int pcmk__fence_history(pcmk__output_t *out, stonith_t *st, char *target, unsigned int timeout, bool quiet, int verbose, bool broadcast, bool cleanup)
List the fencing operations that have occurred for a specific node.
Definition: pcmk_fence.c:172
int delay
Definition: pcmk_fence.c:33
int pcmk__fence_installed(pcmk__output_t *out, stonith_t *st, unsigned int timeout)
List all installed STONITH agents.
Definition: pcmk_fence.c:250
Fencing aka. STONITH.
This structure contains everything that makes up a single output formatter.
Definition: output.h:153
int pcmk__fence_validate(pcmk__output_t *out, stonith_t *st, const char *agent, const char *id, stonith_key_value_t *params, unsigned int timeout)
Validate a STONITH device configuration.
Definition: pcmk_fence.c:469
char * name
Definition: pcmk_fence.c:30
unsigned int timeout
Definition: pcmk_fence.c:31