1PACEMAKER(8) System Administration Utilities PACEMAKER(8)
2
3
4
6 Pacemaker - Part of the Pacemaker cluster resource manager
7
9 crm_attribute <command> -n <attribute> [options]
10
12 crm_attribute - Manage node's attributes and cluster options.
13
14 Allows node attributes and cluster options to be queried, modified and
15 deleted.
16
18 -?, --help
19 This text
20
21 -$, --version
22 Version information
23
24 -V, --verbose
25 Increase debug output
26
27 -q, --quiet
28 Print only the value on stdout
29
30 -n, --name=value
31 Name of the attribute/option to operate on
32
33 -P, --pattern=value
34 Pattern matching names of attributes (only with -v/-D and -l
35 reboot)
36
37 Commands:
38 -G, --query
39 Query the current value of the attribute/option
40
41 -v, --update=value
42 Update the value of the attribute/option
43
44 -D, --delete
45 Delete the attribute/option
46
47 Additional Options:
48 -N, --node=value
49 Set an attribute for the named node (instead of a cluster
50 option). See also: -l
51
52 -t, --type=value
53 Which part of the configuration to update/delete/query the
54 option in Valid values: crm_config, rsc_defaults, op_defaults,
55 tickets
56
57 -l, --lifetime=value
58 Lifetime of the node attribute Valid values: reboot, forever
59
60 -z, --utilization
61 Set an utilization attribute for the node.
62
63 -s, --set-name=value
64 (Advanced) The attribute set in which to place the value
65
66 -i, --id=value
67 (Advanced) The ID used to identify the attribute
68
69 -d, --default=value
70 (Advanced) The default value to display if none is found in the
71 configuration
72
74 Add a new node attribute called 'location' with the value of 'office'
75 for host 'myhost':
76
77 # crm_attribute --node myhost --name location --update office
78
79 Query the value of the 'location' node attribute for host 'myhost':
80
81 # crm_attribute --node myhost --name location --query
82
83 Change the value of the 'location' node attribute for host 'myhost':
84
85 # crm_attribute --node myhost --name location --update backofâ
86 fice
87
88 Delete the 'location' node attribute for host 'myhost':
89
90 # crm_attribute --node myhost --name location --delete
91
92 Query the value of the cluster-delay cluster option:
93
94 # crm_attribute --type crm_config --name cluster-delay --query
95
96 Query the value of the cluster-delay cluster option. Only print the
97 value:
98
99 # crm_attribute --type crm_config --name cluster-delay --query
100 --quiet
101
103 Written by Andrew Beekhof
104
106 Report bugs to users@clusterlabs.org
107
108
109
110Pacemaker 2.0.2-1.fc31.1 July 2019 PACEMAKER(8)