Verify System Status
This section explains the various commands to view the system parameters.
View the current date and time configured on the system.
cisco@sonic:~$ show clock Wed Feb 16 06:24:08 UTC 2022
View the current OS image, the image to be loaded on next reboot, and list of all the available images installed on the router.
cisco@sonic:~$ show boot Current: SONiC-OS-cisco_202012.0-8dbd003f Next: SONiC-OS-cisco_202012.0-8dbd003f Available: SONiC-OS-cisco_202012.0-8dbd003f
View the list of users currently logged in to the device.
cisco@sonic:~$ show users cisco ttyS0 2022-02-16 06:23
Determine the CPU utilization and memory consumed by the active processes.
show processes [cpu | memory | summary]
For example, the following command displays the current memory that is used by various processes.
cisco@sonic:~$ show process memory top - 06:30:21 up 9 min, 1 user, load average: 3.11, 3.34, 1.84 Tasks: 263 total, 1 running, 188 sleeping, 0 stopped, 27 zombie %Cpu(s): 7.3 us, 11.2 sy, 0.0 ni, 79.6 id, 0.5 wa, 0.0 hi, 1.1 si, 0.2 st KiB Mem : 32942460 total, 29487796 free, 2108164 used, 1346500 buff/cache KiB Swap: 0 total, 0 free, 0 used. 30397076 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3658 root 20 0 1880044 653524 80068 S 0.0 2.0 0:54.58 syncd 5005 root 20 0 1168160 100712 20024 S 0.0 0.3 0:02.57 rest_server 839 root 20 0 716172 85964 38320 S 0.0 0.3 0:02.09 dockerd 4528 root 20 0 483924 84400 17412 S 0.0 0.3 0:04.81 xcvrd
View the current system uptime.
cisco@sonic:~$ show uptime up 1 hour, 5 minutes
View the memory utilized by the system.
cisco@sonic:~$ show system-memory total used free shared buff/cache available Mem: 32170 2062 28790 17 1317 29680 Swap: 0 0 0
View the state of all the SONiC processes running inside a docker container.
cisco@sonic:~$ show services snmp docker --------------------------- USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.1 0.0 61176 21876 pts/0 Ss+ 06:24 0:01 /usr/bin/python /usr/bin/supervisord root 9 0.0 0.0 54208 16768 pts/0 S 06:24 0:00 python /usr/bin/supervisor-proc-exit-listener --container-name snmp root 23 0.0 0.0 262988 3576 pts/0 Sl 06:24 0:00 /usr/sbin/rsyslogd -n -iNONE telemetry docker --------------------------- USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.1 0.0 58960 21524 pts/0 Ss+ 06:24 0:01 /usr/bin/python /usr/bin/supervisord root 9 0.0 0.0 51900 16120 pts/0 S 06:24 0:00 python /usr/bin/supervisor-proc-exit-listener --container-name telemetry root 13 0.0 0.0 262988 3496 pts/0 Sl 06:24 0:00 /usr/sbin/rsyslogd -n -iNONE root 21 0.9 0.1 1091388 48644 pts/0 Sl 06:24 0:10 /usr/sbin/telemetry -logtostderr --insecure --port 8080 --allow_no_client_auth -v=2 root 51 0.6 0.1 1025364 42532 pts/0 Sl 06:24 0:06 /usr/sbin/dialout_client_cli -insecure -logtostderr -v 2 mgmt-framework docker --------------------------- USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 57620 20080 pts/0 Ss+ 06:24 0:00 /usr/bin/python /usr/bin/supervisord root 13 0.0 0.0 262988 3540 pts/0 Sl 06:24 0:00 /usr/sbin/rsyslogd -n -iNONE root 17 0.4 0.3 1176356 100948 pts/0 Sl 06:24 0:04 /usr/sbin/rest_server -ui /rest_ui -logtostderr -cert /tmp/cert.pem -key /tmp/key.pem dhcp_relay docker --------------------------- USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 58908 21264 pts/0 Ss+ 06:21 0:00 /usr/bin/python /usr/bin/supervisord root 20 0.0 0.0 51900 16204 pts/0 S 06:22 0:00 python /usr/bin/supervisor-proc-exit-listener --container-name dhcp_relay root 25 0.0 0.0 262988 3540 pts/0 Sl 06:22 0:00 /usr/sbin/rsyslogd -n -iNONE ---------------------------- Truncated for brevity ------------------------------------