Device Status
此内容尚不支持你的语言。
show version
Section titled “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 versionSONiC Software Version: SONiC.V6.1R0100P03-20250729.190136SONiC OS Version: 12Distribution: Debian 12.11Kernel: 6.1.67Build commit: 9e1c6a61cfBuild date: Tue Jul 29 11:19:17 UTC 2025Built by: jenkins@c108d77f6c16Platform: arm64-asterfusion_et2500-r0Device: ET2500-SWPASIC: vppASIC Count: 1Serial Number: N/AModel Number: ET2508-PoE-ACHardware Revision: N/AUptime: 03:42:20 up 16:05, 2 users, load average: 7.08, 7.18, 7.25Date: Wed 30 Jul 2025 03:42:20 AMshow platform fan
Section titled “show platform fan”[Command] show platform fan
[Purpose] View fan information
[View] System view
[Use Cases]
sonic# show platform fanFAN Speed Direction Presence Status Timestamp----- ------- ----------- ---------- -------- -----------------FAN1 6840RPM exhaust Present OK 20250604 09:52:39FAN2 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
Section titled “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
Section titled “show platform summary”[Command] show platform summary
[Purpose] View hardware platform information
[View] System view
[Use Cases]
sonic# show platform summaryshow platform temperature
Section titled “show 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
Section titled “show image”[Command] show image
[Purpose] Display the system’s installed firmware
[View] System view
[Use Cases]
sonic# show imageCurrent: SONiC-OS-1.0Next: SONiC-OS-1.0Available:SONiC-OS-1.0SONiC-OS-1.0T18show feature state
Section titled “show 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 statusFeature State AutoRestart SetOwner----------- -------------- -------------- ----------bgp enabled enableddatabase always_enabled always_enableddhcp_relay enabled enabled localdhcp_server disabled enabled localdot1x enabled enablediccpd disabled enabledl2mcd disabled enabledlldp enabled enabledmstpd disabled enablednat enabled enabledpmon enabled enabledptp disabled enabledradv enabled enabledsflow disabled enabledslad enabled enabledsnmp enabled enabledsnooping enabled enabledswss enabled enabledsyncd enabled enabledteamd enabled enabledshow ztp
Section titled “show ztp”[Command] show ztp
[Purpose] Display ZTP execution results
[View] System view
[Use Cases]
sonic# show ztpZTP Admin Mode : TrueZTP Service : InactiveZTP Status : FAILEDZTP Source : dhcp-opt67 (Ethernet10)Runtime : 23m 16sTimestamp : 2024-06-20 09:03:04 UTCZTP Service is not runningconfigdb-json: SUCCESSupload-log: FAILEDshow ztp verbose
Section titled “show ztp verbose”[Command] show ztp verbose
[Purpose] Display detailed ZTP execution results
[View] System view
[Use Cases]
sonic# show ztp verboseCommand: ztp status --verbose========================================ZTP========================================ZTP Admin Mode : TrueZTP Service : InactiveZTP Status : FAILEDError : upload-log FAILEDZTP Source : dhcp-opt67 (Ethernet10)Runtime : 23m 16sTimestamp : 2024-06-20 09:03:04 UTCZTP JSON Version : 1.0ZTP Service is not running----------------------------------------configdb-json----------------------------------------Filename : ftp://teraspek:teraspek@150.1.0.1/POAM_CFG/aster666.jsonStatus : SUCCESSRuntime : 17sTimestamp : 2024-06-20 08:59:19 UTCExit Code : 0Ignore Result : False----------------------------------------upload-log----------------------------------------Status : FAILEDRuntime : 03m 45sTimestamp : 2024-06-20 09:03:04 UTCExit Code : 20Error : Plugin failedIgnore Result : Falseshow system memory-usage
Section titled “show 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-usageMemory 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
Section titled “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-usageCpu usage:76.7%+-----------------+-------------------+-----------+| user usage(%) | kernel usage(%) | free(%) ||-----------------+-------------------+-----------|| 75.5 | 1.3 | 23.1 |+-----------------+-------------------+-----------+show system disk-usage
Section titled “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-usageDisk usage:20.1%+-----------+----------+-----------+| total | used | free ||-----------+----------+-----------|| 27.94(GB) | 5.60(GB) | 22.32(GB) |+-----------+----------+-----------+