Skip to content

Commit 856cfbf

Browse files
authored
Merge pull request #263872 from DanCrank/main
Add documentation for ipmitool and racadm commands
2 parents d4f198a + 395db7e commit 856cfbf

File tree

1 file changed

+172
-36
lines changed

1 file changed

+172
-36
lines changed

articles/operator-nexus/howto-baremetal-run-read.md

Lines changed: 172 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -24,36 +24,176 @@ The command execution produces an output file containing the results that can be
2424

2525
## Executing a run-read command
2626

27-
The run-read command executes a read-only command on the specified BMM.
27+
The run-read command lets you run a command on the BMM that does not change anything. Some commands have more
28+
than one word, or need an argument to work. These commands are made like this to separate them from the ones
29+
that can change things. For example, run-read-command can use `kubectl get` but not `kubectl apply`. When you
30+
use these commands, you have to put all the words in the “command” field. For example,
31+
`{"command":"kubectl get","arguments":["nodes"]}` is right; `{"command":"kubectl","arguments":["get","nodes"]}`
32+
is wrong.
2833

29-
The current list of supported commands are:
34+
Also note that some commands begin with `nc-toolbox nc-toolbox-runread` and must be entered as shown.
35+
`nc-toolbox-runread` is a special container image that includes more tools that aren't installed on the
36+
baremetal host, such as `ipmitool` and `racadm`.
37+
38+
The list below shows the commands you can use. Commands in `*italics*` cannot have `arguments`; the rest can.
3039

31-
- `traceroute`
32-
- `ping`
3340
- `arp`
34-
- `tcpdump`
3541
- `brctl show`
3642
- `dmidecode`
43+
- *`fdisk -l`*
3744
- `host`
38-
- `ip link show`
45+
- *`hostname`*
46+
- *`ifconfig -a`*
47+
- *`ifconfig -s`*
3948
- `ip address show`
49+
- `ip link show`
4050
- `ip maddress show`
4151
- `ip route show`
4252
- `journalctl`
43-
- `kubectl logs`
44-
- `kubectl describe`
45-
- `kubectl get`
4653
- `kubectl api-resources`
4754
- `kubectl api-versions`
55+
- `kubectl describe`
56+
- `kubectl get`
57+
- `kubectl logs`
58+
- *`mount`*
59+
- `ping`
60+
- *`ss`*
61+
- `tcpdump`
62+
- `traceroute`
4863
- `uname`
64+
- *`ulimit -a`*
4965
- `uptime`
50-
- `fdisk -l`
51-
- `hostname`
52-
- `ifconfig -a`
53-
- `ifconfig -s`
54-
- `mount`
55-
- `ss`
56-
- `ulimit -a`
66+
- `nc-toolbox nc-toolbox-runread ipmitool channel authcap`
67+
- `nc-toolbox nc-toolbox-runread ipmitool channel info`
68+
- `nc-toolbox nc-toolbox-runread ipmitool chassis status`
69+
- `nc-toolbox nc-toolbox-runread ipmitool chassis power status`
70+
- `nc-toolbox nc-toolbox-runread ipmitool chassis restart cause`
71+
- `nc-toolbox nc-toolbox-runread ipmitool chassis poh`
72+
- `nc-toolbox nc-toolbox-runread ipmitool dcmi power get_limit`
73+
- `nc-toolbox nc-toolbox-runread ipmitool dcmi sensors`
74+
- `nc-toolbox nc-toolbox-runread ipmitool dcmi asset_tag`
75+
- `nc-toolbox nc-toolbox-runread ipmitool dcmi get_mc_id_string`
76+
- `nc-toolbox nc-toolbox-runread ipmitool dcmi thermalpolicy get`
77+
- `nc-toolbox nc-toolbox-runread ipmitool dcmi get_temp_reading`
78+
- `nc-toolbox nc-toolbox-runread ipmitool dcmi get_conf_param`
79+
- `nc-toolbox nc-toolbox-runread ipmitool delloem lcd info`
80+
- `nc-toolbox nc-toolbox-runread ipmitool delloem lcd status`
81+
- `nc-toolbox nc-toolbox-runread ipmitool delloem mac list`
82+
- `nc-toolbox nc-toolbox-runread ipmitool delloem mac get`
83+
- `nc-toolbox nc-toolbox-runread ipmitool delloem lan get`
84+
- `nc-toolbox nc-toolbox-runread ipmitool delloem powermonitor powerconsumption`
85+
- `nc-toolbox nc-toolbox-runread ipmitool delloem powermonitor powerconsumptionhistory`
86+
- `nc-toolbox nc-toolbox-runread ipmitool delloem powermonitor getpowerbudget`
87+
- `nc-toolbox nc-toolbox-runread ipmitool delloem vflash info card`
88+
- `nc-toolbox nc-toolbox-runread ipmitool echo`
89+
- `nc-toolbox nc-toolbox-runread ipmitool ekanalyzer print`
90+
- `nc-toolbox nc-toolbox-runread ipmitool ekanalyzer summary`
91+
- `nc-toolbox nc-toolbox-runread ipmitool fru print`
92+
- `nc-toolbox nc-toolbox-runread ipmitool fwum info`
93+
- `nc-toolbox nc-toolbox-runread ipmitool fwum status`
94+
- `nc-toolbox nc-toolbox-runread ipmitool fwum tracelog`
95+
- `nc-toolbox nc-toolbox-runread ipmitool gendev list`
96+
- `nc-toolbox nc-toolbox-runread ipmitool hpm rollbackstatus`
97+
- `nc-toolbox nc-toolbox-runread ipmitool hpm selftestresult`
98+
- `nc-toolbox nc-toolbox-runread ipmitool ime help`
99+
- `nc-toolbox nc-toolbox-runread ipmitool ime info`
100+
- `nc-toolbox nc-toolbox-runread ipmitool isol info`
101+
- `nc-toolbox nc-toolbox-runread ipmitool lan print`
102+
- `nc-toolbox nc-toolbox-runread ipmitool lan alert print`
103+
- `nc-toolbox nc-toolbox-runread ipmitool lan stats get`
104+
- `nc-toolbox nc-toolbox-runread ipmitool mc bootparam get`
105+
- `nc-toolbox nc-toolbox-runread ipmitool mc chassis poh`
106+
- `nc-toolbox nc-toolbox-runread ipmitool mc chassis policy list`
107+
- `nc-toolbox nc-toolbox-runread ipmitool mc chassis power status`
108+
- `nc-toolbox nc-toolbox-runread ipmitool mc chassis status`
109+
- `nc-toolbox nc-toolbox-runread ipmitool mc getenables`
110+
- `nc-toolbox nc-toolbox-runread ipmitool mc getsysinfo`
111+
- `nc-toolbox nc-toolbox-runread ipmitool mc guid`
112+
- `nc-toolbox nc-toolbox-runread ipmitool mc info`
113+
- `nc-toolbox nc-toolbox-runread ipmitool mc restart cause`
114+
- `nc-toolbox nc-toolbox-runread ipmitool mc watchdog get`
115+
- `nc-toolbox nc-toolbox-runread ipmitool bmc bootparam get`
116+
- `nc-toolbox nc-toolbox-runread ipmitool bmc chassis poh`
117+
- `nc-toolbox nc-toolbox-runread ipmitool bmc chassis policy list`
118+
- `nc-toolbox nc-toolbox-runread ipmitool bmc chassis power status`
119+
- `nc-toolbox nc-toolbox-runread ipmitool bmc chassis status`
120+
- `nc-toolbox nc-toolbox-runread ipmitool bmc getenables`
121+
- `nc-toolbox nc-toolbox-runread ipmitool bmc getsysinfo`
122+
- `nc-toolbox nc-toolbox-runread ipmitool bmc guid`
123+
- `nc-toolbox nc-toolbox-runread ipmitool bmc info`
124+
- `nc-toolbox nc-toolbox-runread ipmitool bmc restart cause`
125+
- `nc-toolbox nc-toolbox-runread ipmitool bmc watchdog get`
126+
- `nc-toolbox nc-toolbox-runread ipmitool nm alert get`
127+
- `nc-toolbox nc-toolbox-runread ipmitool nm capability`
128+
- `nc-toolbox nc-toolbox-runread ipmitool nm discover`
129+
- `nc-toolbox nc-toolbox-runread ipmitool nm policy get policy_id`
130+
- `nc-toolbox nc-toolbox-runread ipmitool nm policy limiting`
131+
- `nc-toolbox nc-toolbox-runread ipmitool nm statistics`
132+
- `nc-toolbox nc-toolbox-runread ipmitool nm suspend get`
133+
- `nc-toolbox nc-toolbox-runread ipmitool nm threshold get`
134+
- `nc-toolbox nc-toolbox-runread ipmitool pef`
135+
- `nc-toolbox nc-toolbox-runread ipmitool picmg addrinfo`
136+
- `nc-toolbox nc-toolbox-runread ipmitool picmg policy get`
137+
- `nc-toolbox nc-toolbox-runread ipmitool power status`
138+
- `nc-toolbox nc-toolbox-runread ipmitool sdr elist`
139+
- `nc-toolbox nc-toolbox-runread ipmitool sdr get`
140+
- `nc-toolbox nc-toolbox-runread ipmitool sdr info`
141+
- `nc-toolbox nc-toolbox-runread ipmitool sdr list`
142+
- `nc-toolbox nc-toolbox-runread ipmitool sdr type`
143+
- `nc-toolbox nc-toolbox-runread ipmitool sel elist`
144+
- `nc-toolbox nc-toolbox-runread ipmitool sel get`
145+
- `nc-toolbox nc-toolbox-runread ipmitool sel info`
146+
- `nc-toolbox nc-toolbox-runread ipmitool sel list`
147+
- `nc-toolbox nc-toolbox-runread ipmitool sel time get`
148+
- `nc-toolbox nc-toolbox-runread ipmitool sensor get`
149+
- `nc-toolbox nc-toolbox-runread ipmitool sensor list`
150+
- `nc-toolbox nc-toolbox-runread ipmitool session info`
151+
- `nc-toolbox nc-toolbox-runread ipmitool sol info`
152+
- `nc-toolbox nc-toolbox-runread ipmitool sol payload status`
153+
- `nc-toolbox nc-toolbox-runread ipmitool user list`
154+
- `nc-toolbox nc-toolbox-runread ipmitool user summary`
155+
- *`nc-toolbox nc-toolbox-runread racadm arp`*
156+
- *`nc-toolbox nc-toolbox-runread racadm coredump`*
157+
- `nc-toolbox nc-toolbox-runread racadm diagnostics`
158+
- `nc-toolbox nc-toolbox-runread racadm eventfilters get`
159+
- `nc-toolbox nc-toolbox-runread racadm fcstatistics`
160+
- `nc-toolbox nc-toolbox-runread racadm get`
161+
- `nc-toolbox nc-toolbox-runread racadm getconfig`
162+
- `nc-toolbox nc-toolbox-runread racadm gethostnetworkinterfaces`
163+
- *`nc-toolbox nc-toolbox-runread racadm getled`*
164+
- `nc-toolbox nc-toolbox-runread racadm getniccfg`
165+
- `nc-toolbox nc-toolbox-runread racadm getraclog`
166+
- `nc-toolbox nc-toolbox-runread racadm getractime`
167+
- `nc-toolbox nc-toolbox-runread racadm getsel`
168+
- `nc-toolbox nc-toolbox-runread racadm getsensorinfo`
169+
- `nc-toolbox nc-toolbox-runread racadm getssninfo`
170+
- `nc-toolbox nc-toolbox-runread racadm getsvctag`
171+
- `nc-toolbox nc-toolbox-runread racadm getsysinfo`
172+
- `nc-toolbox nc-toolbox-runread racadm gettracelog`
173+
- `nc-toolbox nc-toolbox-runread racadm getversion`
174+
- `nc-toolbox nc-toolbox-runread racadm hwinventory`
175+
- *`nc-toolbox nc-toolbox-runread racadm ifconfig`*
176+
- *`nc-toolbox nc-toolbox-runread racadm inlettemphistory get`*
177+
- `nc-toolbox nc-toolbox-runread racadm jobqueue view`
178+
- `nc-toolbox nc-toolbox-runread racadm lclog view`
179+
- `nc-toolbox nc-toolbox-runread racadm lclog viewconfigresult`
180+
- `nc-toolbox nc-toolbox-runread racadm license view`
181+
- *`nc-toolbox nc-toolbox-runread racadm netstat`*
182+
- `nc-toolbox nc-toolbox-runread racadm nicstatistics`
183+
- `nc-toolbox nc-toolbox-runread racadm ping`
184+
- `nc-toolbox nc-toolbox-runread racadm ping6`
185+
- *`nc-toolbox nc-toolbox-runread racadm racdump`*
186+
- `nc-toolbox nc-toolbox-runread racadm sslcertview`
187+
- *`nc-toolbox nc-toolbox-runread racadm swinventory`*
188+
- *`nc-toolbox nc-toolbox-runread racadm systemconfig getbackupscheduler`*
189+
- `nc-toolbox nc-toolbox-runread racadm systemperfstatistics` (PeakReset argument NOT allowed)
190+
- *`nc-toolbox nc-toolbox-runread racadm techsupreport getupdatetime`*
191+
- `nc-toolbox nc-toolbox-runread racadm traceroute`
192+
- `nc-toolbox nc-toolbox-runread racadm traceroute6`
193+
- `nc-toolbox nc-toolbox-runread racadm usercertview`
194+
- *`nc-toolbox nc-toolbox-runread racadm vflashsd status`*
195+
- *`nc-toolbox nc-toolbox-runread racadm vflashpartition list`*
196+
- *`nc-toolbox nc-toolbox-runread racadm vflashpartition status -a`*
57197

58198
The command syntax is:
59199

@@ -62,21 +202,9 @@ az networkcloud baremetalmachine run-read-command --name "<machine-name>"
62202
--limit-time-seconds <timeout> \
63203
--commands '[{"command":"<command1>"},{"command":"<command2>","arguments":["<arg1>","<arg2>"]}]' \
64204
--resource-group "<resourceGroupName>" \
65-
--subscription "<subscription>"
205+
--subscription "<subscription>"
66206
```
67207

68-
These commands don't require `arguments`:
69-
70-
- `fdisk -l`
71-
- `hostname`
72-
- `ifconfig -a`
73-
- `ifconfig -s`
74-
- `mount`
75-
- `ss`
76-
- `ulimit -a`
77-
78-
All other inputs are required.
79-
80208
Multiple commands can be provided in json format to `--commands` option.
81209

82210
For a command with multiple arguments, provide as a list to `arguments` parameter. See [Azure CLI Shorthand](https://github.com/Azure/azure-cli/blob/dev/doc/shorthand_syntax.md) for instructions on constructing the `--commands` structure.
@@ -87,21 +215,29 @@ This command runs synchronously. If you wish to skip waiting for the command to
87215

88216
When an optional argument `--output-directory` is provided, the output result is downloaded and extracted to the local directory.
89217

90-
### This example executes the `hostname` command and a `ping` command.
218+
### This example executes the `hostname` command and a `ping` command
91219

92220
```azurecli
93-
az networkcloud baremetalmachine run-read-command --name "bareMetalMachineName" \
221+
az networkcloud baremetalmachine run-read-command --name "<bareMetalMachineName>" \
94222
--limit-time-seconds 60 \
95-
--commands '[{"command":"hostname"],"arguments":["198.51.102.1","-c","3"]},{"command":"ping"}]' \
96-
--resource-group "resourceGroupName" \
97-
--subscription "<subscription>"
223+
--commands '[{"command":"hostname"},{"command":"ping","arguments":["198.51.102.1","-c","3"]}]' \
224+
--resource-group "<resourceGroupName>" \
225+
--subscription "<subscription>"
98226
```
99227

100-
In the response, an HTTP status code of 202 is returned as the operation is performed asynchronously.
228+
### This example executes the `racadm getsysinfo -c` command
229+
230+
```azurecli
231+
az networkcloud baremetalmachine run-read-command --name "<bareMetalMachineName>" \
232+
--limit-time-seconds 60 \
233+
--commands '[{"command":"nc-toolbox nc-toolbox-runread racadm getsysinfo","arguments":["-c"]}]' \
234+
--resource-group "<resourceGroupName>" \
235+
--subscription "<subscription>"
236+
```
101237

102238
## Checking command status and viewing output
103239

104-
Sample output looks something as below. It prints the top 4K characters of the result to the screen for convenience and provides a short-lived link to the storage blob containing the command execution result. You can use the link to download the zipped output file (tar.gz).
240+
Sample output is shown. It prints the top 4,000 characters of the result to the screen for convenience and provides a short-lived link to the storage blob containing the command execution result. You can use the link to download the zipped output file (tar.gz).
105241

106242
```output
107243
====Action Command Output====

0 commit comments

Comments
 (0)