Command Line Reference
Device Management
Device Status
13 min
device status device status show version 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 am show platform fan show 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 39 description 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 show platform psu status \[command] show platform psu status \[purpose] view power status \[view] system view \[notes] 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 status show platform summary show platform summary \[command] show platform summary \[purpose] view hardware platform information \[view] system view \[use cases] sonic# show platform summary show platform temperature show platform temperature \[command] show platform temperature \[purpose] view hardware platform information \[view] system view \[notes] temp lm75 ambient temperature temp tmp400 cpu temperature \[use cases] sonic# show platform temperature show image show 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 0t18 show feature state 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 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 enabled show ztp show 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 failed show ztp verbose show 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\ teraspek\@150 1 0 1/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 false show system memory usage 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 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 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 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) | + + + +
