@@ -156,7 +156,7 @@ User-assigned identity example:
156156 },
157157```
158158
159- ## Execute a run command
159+ ## Execute a run-data-extract command
160160
161161The run data extract command executes one or more predefined scripts to extract data from a bare metal machine.
162162
@@ -189,6 +189,10 @@ The current list of supported commands are
189189 Command Name: ` cluster-cve-report ` \
190190 Arguments: None
191191
192+ - [ Collect ` systemctl status ` Output] ( #collect-systemctl-status-output ) \
193+ Command Name: ` platform-services-status ` \
194+ Arguments: None
195+
192196The command syntax is:
193197
194198``` azurecli-interactive
@@ -662,6 +666,61 @@ https://cmkfjft8twwpst.blob.core.windows.net/bmm-run-command-output/20b217b5-ea3
662666
663667The CVE data is refreshed per container image every 24 hours or when there's a change to the Kubernetes resource referencing the image.
664668
669+ ### Collect Systemctl Status Output
670+
671+ Service status is collected with the ` platform-services-status ` command. The output is in plain text format and
672+ returns an overview of the status of the services on the host as well as the ` systemctl status ` for each found service.
673+
674+ This example executes the ` platform-services-status ` command without arguments.
675+
676+ ``` azurecli
677+ az networkcloud baremetalmachine run-data-extract --name "bareMetalMachineName" \
678+ --resource-group "clusete_MRG" \
679+ --subscription "subscription" \
680+ --commands '[{"command":"platform-services-status"}]' \
681+ --limit-time-seconds 600
682+ --output-directory "/path/to/local/directory"
683+ ```
684+
685+ ** ` platform-services-status ` Output**
686+
687+ ``` azurecli
688+ ====Action Command Output====
689+ UNIT LOAD ACTIVE SUB DESCRIPTION
690+ aods-infra-vf-config.service not-found inactive dead aods-infra-vf-config.service
691+ aods-pnic-config-infra.service not-found inactive dead aods-pnic-config-infra.service
692+ aods-pnic-config-workload.service not-found inactive dead aods-pnic-config-workload.service
693+ arc-unenroll-file-semaphore.service loaded active exited Arc-unenrollment upon shutdown service
694+ atop-rotate.service loaded inactive dead Restart atop daemon to rotate logs
695+ atop.service loaded active running Atop advanced performance monitor
696+ atopacct.service loaded active running Atop process accounting daemon
697+ audit.service loaded inactive dead Audit service
698+ auditd.service loaded active running Security Auditing Service
699+ azurelinux-sysinfo.service loaded inactive dead Azure Linux Sysinfo Service
700+ blk-availability.service loaded inactive dead Availability of block devices
701+ [..snip..]
702+
703+
704+ -------
705+ ● arc-unenroll-file-semaphore.service - Arc-unenrollment upon shutdown service
706+ Loaded: loaded (/etc/systemd/system/arc-unenroll-file-semaphore.service; enabled; vendor preset: enabled)
707+ Active: active (exited) since Tue 2024-11-12 06:33:40 UTC; 11h ago
708+ Main PID: 11663 (code=exited, status=0/SUCCESS)
709+ CPU: 5ms
710+
711+ Nov 12 06:33:39 rack1compute01 systemd[1]: Starting Arc-unenrollment upon shutdown service...
712+ Nov 12 06:33:40 rack1compute01 systemd[1]: Finished Arc-unenrollment upon shutdown service.
713+
714+
715+ -------
716+ ○ atop-rotate.service - Restart atop daemon to rotate logs
717+ Loaded: loaded (/usr/lib/systemd/system/atop-rotate.service; static)
718+ Active: inactive (dead)
719+ TriggeredBy: ● atop-rotate.timer
720+ [..snip..]
721+
722+ ```
723+
665724## Viewing the output
666725
667726The command provides a link (if using cluster manager storage) or another command (if using user provided storage) to download the full output. 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