@@ -19,9 +19,12 @@ run_sonic_cmd() {
1919# Basic System Information
2020# ---------------------------
2121{
22- echo " === System Information ==="
22+ echo " === System Information and Status ==="
2323 run_sonic_cmd " show version"
2424 run_sonic_cmd " show uptime"
25+ run_sonic_cmd " show system status brief"
26+ run_sonic_cmd " show system status"
27+
2528} >> " $OUTPUT_FILE " 2>&1
2629
2730# ---------------------------
@@ -77,7 +80,7 @@ run_sonic_cmd() {
7780 run_sonic_cmd " show ip bgp summary"
7881 run_sonic_cmd " show bgp l2vpn evpn summary"
7982 run_sonic_cmd " show bgp l2vpn evpn"
80-
83+
8184 echo -e " \n=== EVPN Information ==="
8285 run_sonic_cmd " show evpn vni"
8386 run_sonic_cmd " show evpn mac"
@@ -96,7 +99,7 @@ run_sonic_cmd() {
9699 run_sonic_cmd " show platform psusummary"
97100 run_sonic_cmd " show platform ssdhealth"
98101 run_sonic_cmd " show platform temperature"
99-
102+
100103 echo -e " \n=== Transceiver Information ==="
101104 run_sonic_cmd " show interface transceiver summary"
102105 run_sonic_cmd " show interface transceiver laser status"
@@ -116,24 +119,21 @@ run_sonic_cmd() {
116119} >> " $OUTPUT_FILE " 2>&1
117120
118121# ---------------------------
119- # System Logs and Status
122+ # Agent and System Logs
120123# ---------------------------
121124{
122- echo -e " \n=== System Status ==="
123- run_sonic_cmd " show system status brief"
124-
125125 echo -e " \n=== System Logs ==="
126126 run_sonic_cmd " show logging"
127-
127+
128128 echo -e " \n=== Hedgehog Agent Status ==="
129129 systemctl status hedgehog-agent
130-
130+
131131 echo -e " \n=== Hedgehog Agent Logs ==="
132132 cat /var/log/agent.log
133-
133+
134134 echo -e " \n=== Docker Status ==="
135135 docker ps
136-
136+
137137 echo -e " \n=== Docker Container Logs ==="
138138 CONTAINERS=$( docker ps --format " {{.Names}}" )
139139 for CONTAINER in $CONTAINERS ; do
0 commit comments