Device Status
Device Status
show version
[Command] show version
[Purpose] Show system version
[View] System view
[Notes] This command displays version information including: software, description, kernel, create, and image.
[Use Cases]
sonic# show version
SONiC Software Version: SONiC.V6.1R0100P03-20250729.190136
SONiC OS Version: 12
Distribution: Debian 12.11
Kernel: 6.1.67
Build commit: 9e1c6a61cf
Build date: Tue Jul 29 11:19:17 UTC 2025
Built by: jenkins@c108d77f6c16
Platform: arm64-asterfusion_et2500-r0
Device: ET2500-SWP
ASIC: vpp
ASIC Count: 1
Serial Number: N/A
Model Number: ET2508-PoE-AC
Hardware Revision: N/A
Uptime: 03:42:20 up 16:05, 2 users, load average: 7.08, 7.18, 7.25
Date: Wed 30 Jul 2025 03:42:20 AMshow platform fan
[Command] show platform fan
[Purpose] View fan information
[View] System view
[Use Cases]
sonic# show platform fan
FAN Speed Direction Presence Status Timestamp
----- ------- ----------- ---------- -------- -----------------
FAN1 6840RPM exhaust Present OK 20250604 09:52:39
FAN2 6780RPM exhaust Present OK 20250604 09:52:39Description of the show platform fan command output
Parameter | Description |
|---|---|
Speed | Fan speed |
Direction | Fan wind direction exhaust:Blowing wind outward inhaust:Inward air suction |
Presence | Is the fan in place |
Status | Fan Status |
Timestamp | Get the time of the current state |
show platform psu-status
[Command] show platform psu-status
[Purpose] View power status
[View] System view
[Notes]
Status | Description |
|---|---|
OK | In place and properly powered |
NOT OK | In place but no power supply |
NOT PRESENT | Not in position |
[Use Cases]
sonic# show platform psu-statusshow platform summary
[Command] show platform summary
[Purpose] View hardware platform information
[View] System view
[Use Cases]
sonic# show platform summaryshow platform temperature
[Command] show platform temperature
[Purpose] View hardware platform information
[View] System view
[Notes]
Sensor | Description |
|---|---|
temp_lm75 | Ambient temperature |
temp_tmp400 | CPU temperature |
[Use Cases]
sonic# show platform temperatureshow image
[Command] show image
[Purpose] Display the system's installed firmware
[View] System view
[Use Cases]
sonic# show image
Current: SONiC-OS-1.0
Next: SONiC-OS-1.0
Available:
SONiC-OS-1.0
SONiC-OS-1.0T18show feature state
[Command] show feature state
[Purpose] Check if the feature is enabled
[View] System view
[Notes] The processes related to all features on the current system are running in the corresponding containers, and the corresponding containers will be started after the feature is enabled. The containers in the always_enabled state are not allowed to be closed.
[Use Cases]
sonic# show feature status
Feature State AutoRestart SetOwner
----------- -------------- -------------- ----------
bgp enabled enabled
database always_enabled always_enabled
dhcp_relay enabled enabled local
dhcp_server disabled enabled local
dot1x enabled enabled
iccpd disabled enabled
l2mcd disabled enabled
lldp enabled enabled
mstpd disabled enabled
nat enabled enabled
pmon enabled enabled
ptp disabled enabled
radv enabled enabled
sflow disabled enabled
slad enabled enabled
snmp enabled enabled
snooping enabled enabled
swss enabled enabled
syncd enabled enabled
teamd enabled enabledshow ztp
[Command] show ztp
[Purpose] Display ZTP execution results
[View] System view
[Use Cases]
sonic# show ztp
ZTP Admin Mode : True
ZTP Service : Inactive
ZTP Status : FAILED
ZTP Source : dhcp-opt67 (Ethernet10)
Runtime : 23m 16s
Timestamp : 2024-06-20 09:03:04 UTC
ZTP Service is not running
configdb-json: SUCCESS
upload-log: FAILEDshow ztp verbose
[Command] show ztp verbose
[Purpose] Display detailed ZTP execution results
[View] System view
[Use Cases]
sonic# show ztp verbose
Command: ztp status --verbose
========================================
ZTP
========================================
ZTP Admin Mode : True
ZTP Service : Inactive
ZTP Status : FAILED
Error : upload-log FAILED
ZTP Source : dhcp-opt67 (Ethernet10)
Runtime : 23m 16s
Timestamp : 2024-06-20 09:03:04 UTC
ZTP JSON Version : 1.0
ZTP Service is not running
----------------------------------------
configdb-json
----------------------------------------
Filename : ftp://teraspek:[email protected]/POAM_CFG/aster666.json
Status : SUCCESS
Runtime : 17s
Timestamp : 2024-06-20 08:59:19 UTC
Exit Code : 0
Ignore Result : False
----------------------------------------
upload-log
----------------------------------------
Status : FAILED
Runtime : 03m 45s
Timestamp : 2024-06-20 09:03:04 UTC
Exit Code : 20
Error : Plugin failed
Ignore Result : Falseshow system memory-usage
[Command] show system memory-usage
[Purpose] Display the current memory usage of the device
[View] System view
[Notes] When the device's memory usage exceeds 80%, executing this command will display the top 10 processes by memory usage
[Use Cases]
sonic# show system memory-usage
Memory usage:65.1%
+-----------+-----------+----------+-----------+--------------+-------------+
| total | used | free | shared | buff/cache | available |
|-----------+-----------+----------+-----------+--------------+-------------|
| 15.00(GB) | 10.00(GB) | 5.60(GB) | 46.00(MB) | 2.20(GB) | 5.50(GB) |
+-----------+-----------+----------+-----------+--------------+-------------+
+---------------+---------------+---------------+-------------+--------------+---------------+show system cpu-usage
[Command] show system cpu-usage
[Purpose] Display the current CPU usage of the device.
[View] System view
[Notes] When the device's CPU usage exceeds 80%, executing this command will display the top 10 processes by CPU usage.
[Use Cases]
sonic# show system cpu-usage
Cpu usage:76.7%
+-----------------+-------------------+-----------+
| user usage(%) | kernel usage(%) | free(%) |
|-----------------+-------------------+-----------|
| 75.5 | 1.3 | 23.1 |
+-----------------+-------------------+-----------+show system disk-usage
[Command] show system disk-usage
[Purpose] Display the current disk utilization of the device.
[View] System view
[Notes] When the device's disk utilization exceeds 80%, executing this command will display the major files occupying disk space.
[Use Cases]
sonic# show system disk-usage
Disk usage:20.1%
+-----------+----------+-----------+
| total | used | free |
|-----------+----------+-----------|
| 27.94(GB) | 5.60(GB) | 22.32(GB) |
+-----------+----------+-----------+