Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

crm_attribute(8) [suse man page]

CRM_ATTRIBUTE(8)						  [FIXME: manual]						  CRM_ATTRIBUTE(8)

NAME
crm_attribute - manipulate attributes in the CIB SYNOPSIS
crm_attribute [options] DESCRIPTION
The crm_attribute command queries and manipulates node attributes and cluster configuration options that are used in the CIB. OPTIONS
--help, -? Print a help message. --verbose, -V Turn on debug information. Note Increase the level of verbosity by providing additional instances. --quiet, -Q When doing an attribute query using -G, print just the value to stdout. Use this option with -G. --get-value, -G Retrieve rather than set the preference. --delete-attr, -D Delete rather than set the attribute. --attr-value string, -v string Value to set. This is ignored when used with -G. --node-uuid node_uuid, -u node_uuid Specify the UUID of the node to change. --node-uname node_uname, -U node_uname Specify the uname of the node to change. --set-name string, -s string Specify the set of attributes in which to read or write the attribute. --attr-name string, -n string Specify the attribute to set or query. --type string, -t type Determine to which section of the CIB the attribute should be set or to which section of the CIB the attribute that is queried belongs Possible values are nodes, status, or crm_config. Additional Options: +-----------+--------------------+ |Type | Additional Options | +-----------+--------------------+ |nodes | -(U|u) -n [-s] | +-----------+--------------------+ |status | -(U|u) -n [-s] | +-----------+--------------------+ |crm_config | -n [-s] | +-----------+--------------------+ EXAMPLES
Query the value of the location attribute in the nodes section for the host myhost in the CIB: crm_attribute -G -t nodes -U myhost -n location Query the value of the cluster-delay attribute in the crm_config section in the CIB: crm_attribute -G -t crm_config -n cluster-delay Query the value of the cluster-delay attribute in the crm_config section in the CIB. Print just the value: crm_attribute -G -Q -t crm_config -n cluster-delay Delete the location attribute for the host myhost from the nodes section of the CIB: crm_attribute -D -t nodes -U myhost -n location Add a new attribute called location with the value of office to the set subsection of the nodes section in the CIB (settings applied to the host myhost): crm_attribute -t nodes -U myhost -s set -n location -v office Change the value of the location attribute in the nodes section for the myhost host: crm_attribute -t nodes -U myhost -n location -v backoffice FILES
/var/lib/heartbeat/crm/cib.xml--the CIB (minus status section) on disk. Editing this file directly is strongly discouraged. SEE ALSO
??? AUTHOR
crm_attribute was written by Andrew Beekhof. [FIXME: source] 07/05/2010 CRM_ATTRIBUTE(8)

Check Out this Related Man Page

CRMADMIN(8)							  [FIXME: manual]						       CRMADMIN(8)

NAME
crmadmin - control the Cluster Resource Manager SYNOPSIS
crmadmin [-V|-q] [-i|-d|-K|-S|-E] node crmadmin [-V|-q] -N -B crmadmin [-V|-q] -D crmadmin -v crmadmin -? DESCRIPTION
crmadmin was originally designed to control most of the actions of the CRM daemon. However, the largest part of its functionality has been made obsolete by other tools, such as crm_attribute and crm_resource. Its remaining functionality is mostly related to testing and the status of the crmd process. Warning Some crmadmin options are geared towards testing and cause trouble if used incorrectly. In particular, do not use the --kill or --election options unless you know exactly what you are doing. OPTIONS
--help, -? Print the help text. --version, -v Print version details for HA, CRM, and CIB feature set. --verbose, -V Turn on command debug information. Note Increase the level of verbosity by providing additional instances. --quiet, -q Do not provide any debug information at all and reduce the output to a minimum. --bash-export, -B Create bash export entries of the form export uname=uuid. This applies only to the crmadmin -N node command. Note The -B functionality is rarely useful and may be removed in future versions. COMMANDS
--debug_inc node, -i node Increment the CRM daemon's debug level on the specified node. This can also be achieved by sending the USR1 signal to the crmd process. --debug_dec node, -d node Decrement the CRM daemon's debug level on the specified node. This can also be achieved by sending the USR2 signal to the crmd process. --kill node, -K node Shut down the CRM daemon on the specified node. Warning Use this with extreme caution. This action should normally only be issued by Heartbeat and may have unintended side effects. --status node, -S node Query the status of the CRM daemon on the specified node. The output includes a general heath indicator and the internal FSM state of the crmd process. This can be helpful when determining what the cluster is doing. --election node, -E node Initiate an election from the specified node. Warning Use this with extreme caution. This action is normally initiated internally and may have unintended side effects. --dc_lookup, -D Query the uname of the current DC. The location of the DC is only of significance to the crmd internally and is rarely useful to administrators except when deciding on which node to examine the logs. --nodes, -N Query the uname of all member nodes. The results of this query may include nodes in offline mode. Note The -i, -d, -K, and -E options are rarely used and may be removed in future versions. SEE ALSO
???, ??? AUTHOR
crmadmin was written by Andrew Beekhof. [FIXME: source] 07/05/2010 CRMADMIN(8)
Man Page