Skip to content

Commit eea10cc

Browse files
authored
Updates from comments
1 parent 2acecf3 commit eea10cc

File tree

1 file changed

+76
-43
lines changed

1 file changed

+76
-43
lines changed

articles/operator-nexus/howto-baremetal-run-data-extract.md

Lines changed: 76 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,22 @@ The run data extract command executes one or more predefined scripts to extract
2727

2828
The current list of supported commands are
2929

30-
- SupportAssist/TSR collection for Dell troubleshooting\
30+
- [SupportAssist/TSR collection for Dell troubleshooting](#hardware-support-data-collection)\
3131
Command Name: `hardware-support-data-collection`\
3232
Arguments: Type of logs requested
3333
- `SysInfo` - System Information
3434
- `TTYLog` - Storage TTYLog data
3535
- `Debug` - debug logs
3636

37-
- Collect Microsoft Defender for Endpoints (MDE) agent information\
37+
- [Collect Microsoft Defender for Endpoints (MDE) agent information](#collect-mde-agent-information)\
3838
Command Name: `mde-agent-information`\
3939
Arguments: None
4040

41-
- Collect MDE diagnostic support logs\
41+
- [Collect MDE diagnostic support logs](#collect-mde-support-diagnostics)\
4242
Command Name: `mde-support-diagnostics`\
4343
Arguments: None
4444

45-
- Collect Dell Hardware Rollup Status\
45+
- [Collect Dell Hardware Rollup Status](#hardware-rollup-status)\
4646
Command Name: `hardware-rollup-status`\
4747
Arguments: None
4848

@@ -60,51 +60,21 @@ Specify multiple commands using json format in `--commands` option. Each `comman
6060

6161
These commands can be long running so the recommendation is to set `--limit-time-seconds` to at least 600 seconds (10 minutes). The `Debug` option or running multiple extracts might take longer than 10 minutes.
6262

63-
This example executes the `hardware-support-data-collection` command and get `SysInfo` and `TTYLog` logs from the Dell Server.
63+
In the response, the operation performs asynchronously and returns an HTTP status code of 202. See the [Viewing the output](#viewing-the-output) section for details on how to track command completion and view the output file.
6464

65-
```azurecli
66-
az networkcloud baremetalmachine run-data-extract --name "bareMetalMachineName" \
67-
--resource-group "resourceGroupName" \
68-
--subscription "subscription" \
69-
--commands '[{"arguments":["SysInfo", "TTYLog"],"command":"hardware-support-data-collection"}]' \
70-
--limit-time-seconds 600
71-
```
72-
73-
This example executes the `mde-agent-information` command without arguments.
74-
75-
```azurecli
76-
az networkcloud baremetalmachine run-data-extract --name "bareMetalMachineName" \
77-
--resource-group "resourceGroupName" \
78-
--subscription "subscription" \
79-
--commands '[{"command":"mde-agent-information"}]' \
80-
--limit-time-seconds 600
81-
```
65+
### Hardware Support Data Collection
8266

83-
This example executes the `mde-support-diagnostics` command without arguments.
67+
This example executes the `hardware-support-data-collection` command and get `SysInfo` and `TTYLog` logs from the Dell Server. The script executes a `racadm supportassist collect` command on the designated baremetal machine. The resulting tar.gz file contains the zipped extract command file outputs in `hardware-support-data-<timestamp>.zip`.
8468

8569
```azurecli
8670
az networkcloud baremetalmachine run-data-extract --name "bareMetalMachineName" \
8771
--resource-group "resourceGroupName" \
8872
--subscription "subscription" \
89-
--commands '[{"command":"mde-support-diagnostics"}]' \
90-
--limit-time-seconds 600
91-
```
92-
93-
This example executes the `hardware-rollup-status` command without arguments.
94-
95-
```azurecli
96-
az networkcloud baremetalmachine run-data-extract --name "bareMetalMachineName" \
97-
--resource-group "resourceGroupName" \
98-
--subscription "subscription" \
99-
--commands '[{"command":"hardware-rollup-status"}]' \
73+
--commands '[{"arguments":["SysInfo", "TTYLog"],"command":"hardware-support-data-collection"}]' \
10074
--limit-time-seconds 600
10175
```
10276

103-
In the response, the operation performs asynchronously and returns an HTTP status code of 202. See the **Viewing the output** section for details on how to track command completion and view the output file.
104-
105-
## Viewing the output
106-
107-
Sample output looks something like this. Note the provided link to the tar.gz zipped file from the command execution. The tar.gz file name identifies the file in the Storage Account of the Cluster Manager resource group. You can also use the link to directly access the output zip file. The tar.gz file also contains the zipped extract command file outputs in `hardware-support-data-<timestamp>.zip`. Download the output file from the storage blob to a local directory by specifying the directory path in the optional argument `--output-directory`.
77+
__`hardware-support-data-collection` Output__
10878

10979
```azurecli
11080
====Action Command Output====
@@ -126,15 +96,48 @@ Percent Complete=[100]
12696
Deleting Job JID_814372800396
12797
Collection successfully exported to /hostfs/tmp/runcommand/hardware-support-data-2023-04-13T21:00:01.zip
12898
129-
13099
================================
131100
Script execution result can be found in storage account:
132101
https://cm2p9bctvhxnst.blob.core.windows.net/bmm-run-command-output/dd84df50-7b02-4d10-a2be-46782cbf4eef-action-bmmdataextcmd.tar.gz?se=2023-04-14T01%3A00%3A15Zandsig=ZJcsNoBzvOkUNL0IQ3XGtbJSaZxYqmtd%2BM6rmxDFqXE%3Dandsp=randspr=httpsandsr=bandst=2023-04-13T21%3A00%3A15Zandsv=2019-12-12
133102
```
134103

104+
### Collect MDE Agent Information
105+
135106
Data is collected with the `mde-agent-information` command and formatted as JSON
136107
to `/hostfs/tmp/runcommand/mde-agent-information.json`. The JSON file is found
137-
in the data extract zip file located in the storage account.
108+
in the data extract zip file located in the storage account. The script executes a
109+
sequence of `mdatp` commands on the designated baremetal machine.
110+
111+
__Example JSON object collected__
112+
113+
```
114+
{
115+
"diagnosticInformation": {
116+
"realTimeProtectionStats": $real_time_protection_stats,
117+
"eventProviderStats": $event_provider_stats
118+
},
119+
"mdeDefinitions": $mde_definitions,
120+
"generalHealth": $general_health,
121+
"mdeConfiguration": $mde_config,
122+
"scanList": $scan_list,
123+
"threatInformation": {
124+
"list": $threat_info_list,
125+
"quarantineList": $threat_info_quarantine_list
126+
}
127+
}
128+
```
129+
130+
This example executes the `mde-agent-information` command without arguments.
131+
132+
```azurecli
133+
az networkcloud baremetalmachine run-data-extract --name "bareMetalMachineName" \
134+
--resource-group "resourceGroupName" \
135+
--subscription "subscription" \
136+
--commands '[{"command":"mde-agent-information"}]' \
137+
--limit-time-seconds 600
138+
```
139+
140+
__`mde-agent-information` Output__
138141

139142
```azurecli
140143
====Action Command Output====
@@ -143,14 +146,27 @@ MDE agent is running, proceeding with data extract
143146
Getting MDE agent information for bareMetalMachine
144147
Writing to /hostfs/tmp/runcommand
145148
146-
147149
================================
148150
Script execution result can be found in storage account:
149151
https://cmzhnh6bdsfsdwpbst.blob.core.windows.net/bmm-run-command-output/f5962f18-2228-450b-8cf7-cb8344fdss63b0-action-bmmdataextcmd.tar.gz?se=2023-07-26T19%3A07%3A22Z&sig=X9K3VoNWRFP78OKqFjvYoxubp65BbNTq%2BGnlHclI9Og%3D&sp=r&spr=https&sr=b&st=2023-07-26T15%3A07%3A22Z&sv=2019-12-12
150152
```
151153

154+
### Collect MDE Support Diagnostics
155+
152156
Data collected from the `mde-support-diagnostics` command uses the MDE Client Analyzer tool to bundle information from `mdatp` commands and relevant log files. The storage account `tgz` file will contain a `zip` file named `mde-support-diagnostics-<hostname>.zip`. The `zip` should be sent along with any support requests to ensure the supporting teams can use the logs for troubleshooting and root cause analysis, if needed.
153157

158+
This example executes the `mde-support-diagnostics` command without arguments.
159+
160+
```azurecli
161+
az networkcloud baremetalmachine run-data-extract --name "bareMetalMachineName" \
162+
--resource-group "resourceGroupName" \
163+
--subscription "subscription" \
164+
--commands '[{"command":"mde-support-diagnostics"}]' \
165+
--limit-time-seconds 600
166+
```
167+
168+
__`mde-support-diagnostics` Output__
169+
154170
```azurecli
155171
====Action Command Output====
156172
Executing mde-support-diagnostics command
@@ -190,17 +206,34 @@ Archive: mde-support-diagnostics-rack1compute02.zip
190206
[...snip...]
191207
```
192208

209+
### Hardware Rollup Status
210+
193211
Data is collected with the `hardware-rollup-status` command and formatted as JSON to `/hostfs/tmp/runcommand/rollupStatus.json`. The JSON file is found
194212
in the data extract zip file located in the storage account.
195213

214+
This example executes the `hardware-rollup-status` command without arguments.
215+
216+
```azurecli
217+
az networkcloud baremetalmachine run-data-extract --name "bareMetalMachineName" \
218+
--resource-group "resourceGroupName" \
219+
--subscription "subscription" \
220+
--commands '[{"command":"hardware-rollup-status"}]' \
221+
--limit-time-seconds 600
222+
```
223+
224+
`hardware-rollup-status` Output
225+
196226
```azurecli
197227
====Action Command Output====
198228
Executing hardware-rollup-status command
199229
Getting rollup status logs for b37dev03a1c002
200230
Writing to /hostfs/tmp/runcommand
201231
202-
203232
================================
204233
Script execution result can be found in storage account:
205234
https://cmkfjft8twwpst.blob.core.windows.net/bmm-run-command-output/20b217b5-ea38-4394-9db1-21a0d392eff0-action-bmmdataextcmd.tar.gz?se=2023-09-19T18%3A47%3A17Z&sig=ZJcsNoBzvOkUNL0IQ3XGtbJSaZxYqmtd%3D&sp=r&spr=https&sr=b&st=2023-09-19T14%3A47%3A17Z&sv=2019-12-12
206235
```
236+
237+
## Viewing the Output
238+
239+
Note the provided link to the tar.gz zipped file from the command execution. The tar.gz file name identifies the file in the Storage Account of the Cluster Manager resource group. You can also use the link to directly access the output zip file. The tar.gz file also contains the zipped extract command file outputs. Download the output file from the storage blob to a local directory by specifying the directory path in the optional argument `--output-directory`.

0 commit comments

Comments
 (0)