Skip to content

Commit 4720444

Browse files
author
Eduardo Rivera
committed
added snippet pertaining mst commands
1 parent 6cfd12f commit 4720444

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

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

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,7 @@ The list below shows the commands you can use. Commands in `*italics*` cannot ha
197197

198198
The command syntax is:
199199

200-
```azurecli
201-
az networkcloud baremetalmachine run-read-command --name "<machine-name>"
200+
@@ -62,21 +137,9 @@ az networkcloud baremetalmachine run-read-command --name "<machine-name>"
202201
--limit-time-seconds <timeout> \
203202
--commands '[{"command":"<command1>"},{"command":"<command2>","arguments":["<arg1>","<arg2>"]}]' \
204203
--resource-group "<resourceGroupName>" \
@@ -241,31 +240,3 @@ Sample output is shown. It prints the top 4,000 characters of the result to the
241240

242241
```output
243242
====Action Command Output====
244-
+ hostname
245-
rack1compute01
246-
+ ping 198.51.102.1 -c 3
247-
PING 198.51.102.1 (198.51.102.1) 56(84) bytes of data.
248-
249-
--- 198.51.102.1 ping statistics ---
250-
3 packets transmitted, 0 received, 100% packet loss, time 2049ms
251-
252-
================================
253-
Script execution result can be found in storage account:
254-
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
255-
```
256-
257-
## How to view the output of an `az networkcloud baremetalmachine run-read-command` in the Cluster Manager Storage account
258-
259-
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.
260-
261-
1. Open the Cluster Manager Managed Resource Group for the Cluster where the server is housed and then select the **Storage account**.
262-
263-
1. In the Storage account details, select **Storage browser** from the navigation menu on the left side.
264-
265-
1. In the Storage browser details, select on **Blob containers**.
266-
267-
1. Select the baremetal-run-command-output blob container.
268-
269-
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.
270-
271-
1. You can manage & download the output file from the **Overview** pop-out.

0 commit comments

Comments
 (0)