From d0b2f91ca529a9f9adddf259f0a43da971c2a236 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Thu, 26 Sep 2024 13:36:37 +0200 Subject: [PATCH] [devops] Add a bit more info when showing the enviroment. Also show: * The network configuration * The load on the system / cpu usage (top) --- tools/devops/automation/scripts/show_env.ps1 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tools/devops/automation/scripts/show_env.ps1 b/tools/devops/automation/scripts/show_env.ps1 index 2a265dd21563..7852d1ad7c7a 100644 --- a/tools/devops/automation/scripts/show_env.ps1 +++ b/tools/devops/automation/scripts/show_env.ps1 @@ -15,6 +15,20 @@ gci env: | format-table -autosize | Out-String -Width 8192 gci env: | format-table -autosize -wrap if ($IsMacOS) { + Write-Host "" + Write-Host "## System profile" + Write-Host "" system_profiler SPSoftwareDataType SPHardwareDataType SPDeveloperToolsDataType + + Write-Host "" + Write-Host "## Network configuration" + Write-Host "" + ifconfig | grep 'inet ' + + + Write-Host "" + Write-Host "## Top processes" + Write-Host "" + top -l 1 -o TIME }