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

NAME

6       Pacemaker - Part of the Pacemaker cluster resource manager
7

SYNOPSIS

9       cibadmin <command> [options]
10

DESCRIPTION

12       query and edit the Pacemaker configuration
13

OPTIONS

15   Help Options:
16       -?, --help
17              Show help options
18
19       --help-all
20              Show all help options
21
22       --help-commands
23              Show command help
24
25       --help-data
26              Show data help
27
28       --help-additional
29              Show additional options
30
31   Commands:
32       -u, --upgrade
33              Upgrade the configuration to the latest syntax
34
35       -Q, --query
36              Query the contents of the CIB
37
38       -E, --erase
39              Erase the contents of the whole CIB
40
41       -B, --bump
42              Increase the CIB's epoch value by 1
43
44       -C, --create
45              Create an object in the CIB (will fail if object already exists)
46
47       -M, --modify
48              Find  object somewhere in CIB's XML tree and update it (fails if
49              object does not exist unless -c is also specified)
50
51       -P, --patch
52              Supply an update in the form of an XML diff (see crm_diff(8))
53
54       -R, --replace
55              Recursively replace an object in the CIB
56
57       -D, --delete
58              Delete first object matching supplied criteria (for example, <op
59              id="rsc1_op1"  name="monitor"/>).   The XML element name and all
60              attributes must match in order for the element to be deleted.
61
62       -d, --delete-all
63              When used with --xpath, remove all matching objects in the  con‐
64              figuration instead of just the first one
65
66       -a, --empty=[schema]
67              Output an empty CIB. Accepts an optional schema name argument to
68              use as the validate-with value.  If no schema is given, the lat‐
69              est will be used.
70
71       -5, --md5-sum
72              Calculate the on-disk CIB digest
73
74       -6, --md5-sum-versioned
75              Calculate an on-the-wire versioned CIB digest
76
77   Data:
78       -X, --xml-text=value
79              Retrieve XML from the supplied string
80
81       -x, --xml-file=value
82              Retrieve XML from the named file
83
84       -p, --xml-pipe
85              Retrieve XML from stdin
86
87   Additional Options:
88       -f, --force
89              Force the action to be performed
90
91       -t, --timeout=value
92              Time (in seconds) to wait before declaring the operation failed
93
94       -U, --user=value
95              Run  the  command with permissions of the named user (valid only
96              for the root and hacluster accounts)
97
98       -s, --sync-call
99              Wait for call to complete before returning
100
101       -l, --local
102              Command takes effect locally (should be used only for queries)
103
104       -o, --scope=value
105              Limit scope of operation to specific section of CIB  Valid  val‐
106              ues:  configuration,  nodes, resources, constraints, crm_config,
107              rsc_defaults,
108
109       op_defaults, acls, fencing-topology, tags, alerts, status
110              If both --scope/-o and --xpath/-a are specified, the last one to
111              appear takes effect
112
113       -A, --xpath=value
114              A  valid  XPath  to use instead of --scope/-o If both --scope/-o
115              and --xpath/-a are specified, the last one to appear  takes  ef‐
116              fect
117
118       -e, --node-path
119              When performing XPath queries, return paths of any matches found
120              (for              example,               "/cib/configuration/re‐
121              sources/clone[@id='dummy-clone']/primitive[@id='dummy']")
122
123       -S, --show-access=[value]
124              Whether to use syntax highlighting for ACLs (with -Q/--query and
125              -U/--user)  Allowed  values:  'color'  (default  for  terminal),
126              'text' (plain text, default for non-terminal),
127
128       'namespace', or 'auto' (use default value)
129              Default value: 'auto'
130
131       -c, --allow-create
132              (Advanced)  Allow target of --modify/-M to be created if it does
133              not exist
134
135       -n, --no-children
136              (Advanced) When querying an object, do not include its  children
137              in the result
138
139       -N, --node=value
140              (Advanced) Send command to the specified host
141
142   Application Options:
143       -$, --version
144              Display software version and exit
145
146       -V, --verbose
147              Increase debug output (may be specified multiple times)
148

EXAMPLES

150       Query the configuration from the local node:
151
152              # cibadmin --query --local
153
154       Query just the cluster options configuration:
155
156              # cibadmin --query --scope crm_config
157
158       Query all 'target-role' settings:
159
160              # cibadmin --query --xpath "//nvpair[@name='target-role']"
161
162       Remove all 'is-managed' settings:
163
164              # cibadmin --delete-all --xpath "//nvpair[@name='is-managed']"
165
166       Remove the resource named 'old':
167
168              # cibadmin --delete --xml-text '<primitive id="old"/>'
169
170       Remove all resources from the configuration:
171
172              # cibadmin --replace --scope resources --xml-text '<resources/>'
173
174       Replace complete configuration with contents of $HOME/pacemaker.xml:
175
176              # cibadmin --replace --xml-file $HOME/pacemaker.xml
177
178       Replace   constraints   section   of  configuration  with  contents  of
179       $HOME/constraints.xml:
180
181              # cibadmin --replace --scope constraints  --xml-file  $HOME/con‐
182              straints.xml
183
184       Increase configuration version to prevent old configurations from being
185       loaded accidentally:
186
187              #   cibadmin   --modify   --xml-text   '<cib    admin_epoch="ad‐
188              min_epoch++"/>'
189
190       Edit the configuration with your favorite $EDITOR:
191
192              # cibadmin --query > $HOME/local.xml
193
194              # $EDITOR $HOME/local.xml
195
196              # cibadmin --replace --xml-file $HOME/local.xml
197
198       Assuming  terminal,  render configuration in color (green for writable,
199       blue for readable, red for denied) to visualize  permissions  for  user
200       tony:
201
202              # cibadmin --show-access=color --query --user tony | less -r
203
204   SEE ALSO:
205              crm(8), pcs(8), crm_shadow(8), crm_diff(8)
206

AUTHOR

208       Written by Andrew Beekhof and the Pacemaker project contributors
209
210
211
212Pacemaker 2.1.7-0.3.rc2.fc38     November 2023                    PACEMAKER(8)
Impressum