1PACEMAKER(8)            System Administration Utilities           PACEMAKER(8)
2
3
4

NAME

6       Pacemaker - Part of the Pacemaker cluster resource manager
7

SYNOPSIS

9       crm_attribute -n <attribute> <command> [options]
10

DESCRIPTION

12       crm_attribute - query and update Pacemaker cluster options and node at‐
13       tributes
14

OPTIONS

16   Help Options:
17       -h, --help
18              Show help options
19
20       --help-all
21              Show all help options
22
23       --help-selections
24              Show selecting options
25
26       --help-command
27              Show command options
28
29       --help-additional
30              Show additional options
31
32   Selecting attributes:
33       -i, --id=XML_ID
34              (Advanced) Operate on instance of specified attribute with  this
35              XML ID
36
37       -n, --name=NAME
38              Operate on attribute or option with this name
39
40       -P, --pattern=PATTERN
41              Operate  on all attributes matching this pattern (with -v/-D and
42              -l reboot)
43
44       -p, --promotion=RESOURCE
45              Operate on node attribute used as promotion score for  specified
46              resource, or resource given in OCF_RESOURCE_INSTANCE environment
47              variable if none is specified; this also defaults  -l/--lifetime
48              to reboot (normally invoked from an OCF resource agent)
49
50       -s, --set-name=NAME
51              (Advanced)  Operate  on  instance of specified attribute that is
52              within set with this XML ID
53
54   Commands:
55       -D, --delete
56              Delete the attribute/option
57
58       -G, --query
59              Query the current value of the attribute/option
60
61       -v, --update=VALUE
62              Update the value of the attribute/option
63
64   Additional options:
65       -d, --default=VALUE
66              (Advanced) Default value to display if none is found in configu‐
67              ration
68
69       -l, --lifetime=LIFETIME
70              Lifetime of the node attribute.  Valid values: reboot, forever
71
72       -N, --node=NODE
73              Set  a  node  attribute for named node (instead of a cluster op‐
74              tion).  See also: -l
75
76       -t, --type=SECTION
77              Which part of the configuration to update/delete/query  the  op‐
78              tion  in.   Valid values: crm_config, rsc_defaults, op_defaults,
79              tickets
80
81       -z, --utilization
82              Set an utilization attribute for the node.
83
84   Application Options:
85       -$, --version
86              Display software version and exit
87
88       -V, --verbose
89              Increase debug output (may be specified multiple times)
90
91       -q, --quiet
92              Print only the value on stdout
93

EXAMPLES

95       Add new node attribute called 'location' with the value of 'office' for
96       host 'myhost':
97
98              crm_attribute --node myhost --name location --update office
99
100       Query the value of the 'location' node attribute for host 'myhost':
101
102              crm_attribute --node myhost --name location --query
103
104       Change the value of the 'location' node attribute for host 'myhost':
105
106              crm_attribute --node myhost --name location --update backoffice
107
108       Delete the 'location' node attribute for host 'myhost':
109
110              crm_attribute --node myhost --name location --delete
111
112       Query the value of the 'cluster-delay' cluster option:
113
114              crm_attribute --type crm_config --name cluster-delay --query
115
116       Query  value  of  the 'cluster-delay' cluster option and print only the
117       value:
118
119              crm_attribute --type  crm_config  --name  cluster-delay  --query
120              --quiet
121

AUTHOR

123       Written by Andrew Beekhof
124
125
126
127Pacemaker 2.1.0-0.2.rc1.fc34       May 2021                       PACEMAKER(8)
Impressum