Skip to content

Commit 7c6aa63

Browse files
author
Eduardo Rivera
committed
updated back to list format instead of table
1 parent 4720444 commit 7c6aa63

File tree

1 file changed

+40
-2
lines changed

1 file changed

+40
-2
lines changed

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

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ Also note that some commands begin with `nc-toolbox nc-toolbox-runread` and must
3535
`nc-toolbox-runread` is a special container image that includes more tools that aren't installed on the
3636
baremetal host, such as `ipmitool` and `racadm`.
3737

38+
Some of the run-read commands require specific arguments be supplied to enforce read-only capabilities of the commands.
39+
An example of run-read commands that require specific arguments is the allowed Mellanox command `mstconfig`,
40+
which requires the `query` argument be provided to enforce read-only.
41+
3842
The list below shows the commands you can use. Commands in `*italics*` cannot have `arguments`; the rest can.
3943

4044
- `arp`
@@ -194,10 +198,16 @@ The list below shows the commands you can use. Commands in `*italics*` cannot ha
194198
- *`nc-toolbox nc-toolbox-runread racadm vflashsd status`*
195199
- *`nc-toolbox nc-toolbox-runread racadm vflashpartition list`*
196200
- *`nc-toolbox nc-toolbox-runread racadm vflashpartition status -a`*
201+
- `nc-toolbox nc-toolbox-runread mstregdump`
202+
- `nc-toolbox nc-toolbox-runread mstconfig` (requires `query` arg )
203+
- `nc-toolbox nc-toolbox-runread mstflint` (requires `query` arg )
204+
- `nc-toolbox nc-toolbox-runread mstlink` (requires `query` arg )
205+
- `nc-toolbox nc-toolbox-runread mstfwmanager` (requires `query` arg )
206+
- `nc-toolbox nc-toolbox-runread mlx_temp`
197207

198208
The command syntax is:
199-
200-
@@ -62,21 +137,9 @@ az networkcloud baremetalmachine run-read-command --name "<machine-name>"
209+
```azurecli
210+
az networkcloud baremetalmachine run-read-command --name <machine-name>
201211
--limit-time-seconds <timeout> \
202212
--commands '[{"command":"<command1>"},{"command":"<command2>","arguments":["<arg1>","<arg2>"]}]' \
203213
--resource-group "<resourceGroupName>" \
@@ -240,3 +250,31 @@ Sample output is shown. It prints the top 4,000 characters of the result to the
240250

241251
```output
242252
====Action Command Output====
253+
+ hostname
254+
rack1compute01
255+
+ ping 198.51.102.1 -c 3
256+
PING 198.51.102.1 (198.51.102.1) 56(84) bytes of data.
257+
258+
--- 198.51.102.1 ping statistics ---
259+
3 packets transmitted, 0 received, 100% packet loss, time 2049ms
260+
261+
================================
262+
Script execution result can be found in storage account:
263+
https://<storage_account_name>.blob.core.windows.net/bmm-run-command-output/a8e0a5fe-3279-46a8-b995-51f2f98a18dd-action-bmmrunreadcmd.tar.gz?se=2023-04-14T06%3A37%3A00Z&sig=XXX&sp=r&spr=https&sr=b&st=2023-04-14T02%3A37%3A00Z&sv=2019-12-12
264+
```
265+
266+
## How to view the output of an `az networkcloud baremetalmachine run-read-command` in the Cluster Manager Storage account
267+
268+
This guide walks you through accessing the output file that is created in the Cluster Manager Storage account when an `az networkcloud baremetalmachine run-read-command` is executed on a server. The name of the file is identified in the `az rest` status output.
269+
270+
1. Open the Cluster Manager Managed Resource Group for the Cluster where the server is housed and then select the **Storage account**.
271+
272+
1. In the Storage account details, select **Storage browser** from the navigation menu on the left side.
273+
274+
1. In the Storage browser details, select on **Blob containers**.
275+
276+
1. Select the baremetal-run-command-output blob container.
277+
278+
1. Select the output file from the run-read command. The file name can be identified from the `az rest --method get` command. Additionally, the **Last modified** timestamp aligns with when the command was executed.
279+
280+
1. You can manage & download the output file from the **Overview** pop-out.

0 commit comments

Comments
 (0)