Hardware, Software and System Information Follow
Example:
Reference model:
- Switch model name: AS5835-54X,AS7326-56X,AS7726-32X,AS7816-64X
- Edgecore SONiC version: all versions
Example: Hardware information
show environment This command displays the platform environmentals, such as voltages, temperatures and fan speeds.
admin@sonic:~$ show environment
show platform psustatus This command displays PSU status information.
admin@sonic:~$ show platform psustatus
PSU Status
----- --------
PSU 1 OK
PSU 2 NOT OK
Note:
OK: input power present
NOT OK: no input power
show platform summary This command displays a summary of the device hardware platform
admin@sonic:~$ show platform summary
Platform: x86_64-accton_as7816_64x-r0
HwSKU: Accton-AS7816-64X
ASIC: broadcom
show platform syseeprom This command displays system EEPROM information such as MAC address, serial number, platform name
admin@sonic:~$ show platform syseeprom
TlvInfo Header:
Id String: TlvInfo
Version: 1
Total Length: 172
TLV Name Code Len Value
-------------------- ---- --- -----
Manufacture Date 0x25 19 08/27/2018 11:19:49
Label Revision 0x27 4 R0AA
Manufacturer 0x2B 6 Accton
Manufacture Country 0x2C 2 TW
Vendor Name 0x2D 8 Edgecore
Product Name 0x21 18 7816-64X-O-AC-F-JN
Part Number 0x22 13 FP3AT7664000A
Serial Number 0x23 11 AAA1834AAAO
Base MAC Address 0x24 6 B8:6A:97:19:C2:46
MAC Addresses 0x2A 2 300
Platform Name 0x28 27 x86_64-accton_as7816_64x-r0
ONIE Version 0x29 13 2018.05.00.08
Diag Version 0x2E 11 01.03.00.08
CRC-32 0xFE 4 0x8EA1132B
(checksum valid)
Example: Software information
show version This command displays the currently SONiC image version as well as Docker image versions.
admin@sonic:~$ show version
SONiC Software Version: SONiC.Edgecore-SONiC_20200103_052306_ec201904_108
Distribution: Debian 9.11
Kernel: 4.9.0-9-2-amd64
Build commit: 9f46f888
Build date: Fri Jan 3 07:37:30 UTC 2020
Built by: ubuntu@ip-10-5-1-128
Platform: x86_64-accton_as7726_32x-r0
HwSKU: Accton-AS7726-32X
ASIC: broadcom
Serial Number: 772632X1846012
Uptime: 23:27:52 up 6:11, 1 user, load average: 2.18, 2.05, 1.94
Docker images:
REPOSITORY TAG IMAGE ID SIZE
docker-syncd-brcm Edgecore-SONiC_20200103_052306_ec201904_108 2d593cf6e660 429MB
docker-syncd-brcm latest 2d593cf6e660 429MB
docker-snmp-sv2 Edgecore-SONiC_20200103_052306_ec201904_108 4e64f714880b 312MB
docker-snmp-sv2 latest 4e64f714880b 312MB
docker-dhcp-relay Edgecore-SONiC_20200103_052306_ec201904_108 fb33515c109f 287MB
docker-dhcp-relay latest fb33515c109f 287MB
docker-database Edgecore-SONiC_20200103_052306_ec201904_108 b89aac84342c 279MB
docker-database latest b89aac84342c 279MB
docker-lldp-sv2 Edgecore-SONiC_20200103_052306_ec201904_108 cc2b21ff545d 298MB
docker-lldp-sv2 latest cc2b21ff545d 298MB
docker-orchagent Edgecore-SONiC_20200103_052306_ec201904_108 16c0ee198929 318MB
docker-orchagent latest 16c0ee198929 318MB
docker-teamd Edgecore-SONiC_20200103_052306_ec201904_108 5b118bf91623 300MB
docker-teamd latest 5b118bf91623 300MB
docker-sonic-telemetry Edgecore-SONiC_20200103_052306_ec201904_108 a0c682a1b520 301MB
docker-sonic-telemetry latest a0c682a1b520 301MB
docker-router-advertiser Edgecore-SONiC_20200103_052306_ec201904_108 fc586a727f57 278MB
docker-router-advertiser latest fc586a727f57 278MB
docker-platform-monitor Edgecore-SONiC_20200103_052306_ec201904_108 48deb7abd8e4 325MB
docker-platform-monitor latest 48deb7abd8e4 325MB
docker-fpm-frr Edgecore-SONiC_20200103_052306_ec201904_108 9ae92394036f 318MB
docker-fpm-frr latest 9ae92394036f 318MB
show processes cpu
show processes memory
show processes summary
These commands display the current CPU & Memory usage by process and summary information about all process.
admin@sonic:~$ show processes cpu
admin@sonic:~$ show processes memory
admin@sonic:~$ show processes summary
show service This command displays the state of all the SONiC processes running inside a docker container. This helps to identify the status of SONiC’s critical processes.
admin@sonic:~$ show services
show system-memory This command displays the system-wide memory utilization information
admin@sonic:~$ show system-memory
total used free shared buff/cache available
Mem: 15951 1255 13382 19 1312 14373
Swap: 0 0 0
Example: System information
show uptime This command displays the current system uptime
admin@sonic:~$ show uptime
shup 6 hours, 30 minutes
show clock This command displays the current date and time configured on the system
admin@sonic:~$ show clock
Thu Nov 3 23:46:55 UTC 2016
show user This command displays a list of users currently logged in to the device
admin@sonic:~$ show user
admin ttyS0 2016-11-03 23:46
show logging This command displays all the currently stored log messages.
admin@sonic:~$ show logging
Note: Refer to this article for detail
show reboot-cause This command displays the cause of the previous reboot
admin@sonic:~$ show reboot-cause
User issued 'reboot' command [User: admin, Time: Wed Nov 9 10:14:59 UTC 2016]
admin@sonic:~$ show reboot-cause
Unexpected reboot
Note: Unexpected reboot: power outage
Note: log is saved on /host/reboot-cause/.
admin@sonic:~$ ls -l /host/reboot-cause/
total 8
-rw-r--r-- 1 root root 79 Aug 6 16:22 previous-reboot-cause.txt
-rw-r--r-- 1 root root 18 Aug 6 16:23 reboot-cause.txt
Comments
0 comments
Please sign in to leave a comment.