1PACEMAKER(8) System Administration Utilities PACEMAKER(8)
2
3
4
6 Pacemaker - Part of the Pacemaker cluster resource manager
7
9 crm_attribute -n <attribute> <command> [options]
10
12 crm_attribute - query and update Pacemaker cluster options and node at‐
13 tributes
14
16 Help Options:
17 -h, --help
18 Show help options
19
20 --help-all
21 Show all help options
22
23 --help-output
24 Show output help
25
26 --help-selections
27 Show selecting options
28
29 --help-command
30 Show command options
31
32 --help-additional
33 Show additional options
34
35 Output Options:
36 --output-as=FORMAT
37 Specify output format as one of: text (default), xml
38
39 --output-to=DEST
40 Specify file name for output (or "-" for stdout)
41
42 --text-fancy
43 Use more highly formatted output (requires --output-as=text)
44
45 Selecting attributes:
46 -i, --id=XML_ID
47 (Advanced) Operate on instance of specified attribute with this
48 XML ID
49
50 -n, --name=NAME
51 Operate on attribute or option with this name
52
53 -P, --pattern=PATTERN
54 Operate on all attributes matching this pattern (with -v/-D and
55 -l reboot)
56
57 -p, --promotion=RESOURCE
58 Operate on node attribute used as promotion score for specified
59 resource, or resource given in OCF_RESOURCE_INSTANCE environment
60 variable if none is specified; this also defaults -l/--lifetime
61 to reboot (normally invoked from an OCF resource agent)
62
63 -s, --set-name=NAME
64 (Advanced) Operate on instance of specified attribute that is
65 within set with this XML ID
66
67 Commands:
68 -D, --delete
69 Delete the attribute/option
70
71 -G, --query
72 Query the current value of the attribute/option
73
74 -v, --update=VALUE
75 Update the value of the attribute/option
76
77 Additional options:
78 -d, --default=VALUE
79 (Advanced) Default value to display if none is found in configu‐
80 ration
81
82 -l, --lifetime=LIFETIME
83 Lifetime of the node attribute. Valid values: reboot, forever
84
85 -N, --node=NODE
86 Set a node attribute for named node (instead of a cluster op‐
87 tion). See also: -l
88
89 -t, --type=SECTION
90 Which part of the configuration to update/delete/query the op‐
91 tion in. Valid values: crm_config, rsc_defaults, op_defaults,
92 tickets
93
94 -z, --utilization
95 Set an utilization attribute for the node.
96
97 Application Options:
98 -$, --version
99 Display software version and exit
100
101 -V, --verbose
102 Increase debug output (may be specified multiple times)
103
104 -q, --quiet
105 Print only the value on stdout
106
108 Add new node attribute called 'location' with the value of 'office' for
109 host 'myhost':
110
111 crm_attribute --node myhost --name location --update office
112
113 Query the value of the 'location' node attribute for host 'myhost':
114
115 crm_attribute --node myhost --name location --query
116
117 Change the value of the 'location' node attribute for host 'myhost':
118
119 crm_attribute --node myhost --name location --update backoffice
120
121 Delete the 'location' node attribute for host 'myhost':
122
123 crm_attribute --node myhost --name location --delete
124
125 Query the value of the 'cluster-delay' cluster option:
126
127 crm_attribute --type crm_config --name cluster-delay --query
128
129 Query value of the 'cluster-delay' cluster option and print only the
130 value:
131
132 crm_attribute --type crm_config --name cluster-delay --query
133 --quiet
134
136 Written by Andrew Beekhof and the Pacemaker project contributors
137
138
139
140Pacemaker 2.1.4-4.fc36 June 2022 PACEMAKER(8)