Software Monitoring and Reporting
This document describes software watchdog and reporting related commands.
clear cores
Use this clear command to delete the core files present in /var/log/crash/cores
Syntax
clear cores (|WORD)
Parameters
WORD
Core file name
Default
NA
Command Mode
Executive Mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show cores
Core location :/var/log/crash/cores
Core-File-Name
--------------
core_hostpd.9581_20190324_222313_signal_11.gz
#clear cores core_hostpd.9581_20190324_222313_signal_11.gz
#show cores
Core location :/var/log/crash/cores
Core-File-Name
--------------
#
copy core
Use this command to copy the core file to another file.
The core filename is in the form: core_PROCESSNAME.PROCID_YYYMMDD_HHMMSS_signal_SIGNUM.gz
Command Syntax
copy core FILE (tftp TFTP-URL|ftp FTP-URL|scp SCP-URL|sftp SFTP-URL) (vrf (NAME|management)|)
Parameters
core
Copy Crash core files to remote location. Core file location: /var/log/crash/cores/
FILE
Source file name
TFTP-URL
Destination: tftp:[//server[:port]][/path]
FTP-URL
Destination: ftp:[//server][/path]
SCP-URL
Destination: scp:[//server][/path]
SFTP-URL
Destination: sftp:[//server][/path]
NAME
Virtual Routing and Forwarding name
management
Management Virtual Routing and Forwarding
Default
NA
Command Mode
Privileged EXEC
Applicability
This command was introduced before OcNOS version 1.3.
Example
# copy core core_hostpd.9581_20190324_222313_signal_11.gz scp scp://10.12.16.17/home/ core core_hostpd.9581_20190324_222313_signal_11.gz vrf management
Enter Username:root
Enter Password:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 681k 0 0 0 681k 0 3588k --:--:-- --:--:-- --:--:-- 3588k
100 681k 0 0 0 681k 0 3588k --:--:-- --:--:-- --:--:-- 3588k
Copy Success
copy techsupport
Use this command to copy the contents of a compressed techsupport file (tar.gz) to another file.
The default filename is in the form: tech_support_YYYY_MMM_DD_HH_MM_SS.tar.gz.
Command Syntax
copy (log|techsupport) FILE (tftp TFTP-URL|ftp FTP-URL|scp SCP-URL|sftp SFTP-URL) (vrf (NAME|management)|)
Parameters
log
Log file storage; on Linux this refers to /var/log/
techsupport
Tech support file storage; on Linux this refers to /var/log/
FILE
Source file name
TFTP-URL
Destination: tftp:[//server[:port]][/path]
FTP-URL
Destination: ftp:[//server][/path]
SCP-URL
Destination: scp:[//server][/path]
SFTP-URL
Destination: sftp:[//server][/path]
NAME
Virtual Routing and Forwarding name
management
Management Virtual Routing and Forwarding
Default
NA
Command Mode
Privileged EXEC
Applicability
This command was introduced before OcNOS version 1.3.
Example
#copy techsupport tech_support_23_Feb_2019_18_27_00.tar.gz scp scp://10.12.16.17/home/tech_support_23_Feb_2019_18_27_00.tar.gz vrf management
Enter Username:root
Enter Password:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 72368 0 0 0 72368 0 147k -::- -::- -::- 147k
100 72368 0 0 0 72368 0 147k -::- -::- -::- 147k
Copy Success
#
feature software-watchdog
Use this command to enable software watchdog functionality for all OcNOS modules. This feature is enabled by default.
Use the no form of this command to disable software watchdog functionality.
Command Syntax
feature software-watchdog
no feature software-watchdog
Parameter
None
Default
By default, software watchdog is enabled.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
#(config)feature software-watchdog
show bootup-parameters
Use this command to show OcNOS kernel bootup parameters.
Command Syntax
show bootup-parameters
Parameter
None
Command Mode
Execution mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#show bootup-parameters
BOOT_IMAGE=/boot/vmlinuz-3.16.7-g490411a-ec-as7712-32x root=UUID=317567fc-b69e-4
5d9-ab4e-fa1d9e57b
703 console=ttyS1,115200n8 ro
show cores
Use this command to list core files in the system or to display information about a given core file.
Note: When cmlsh logged in via non-root user crashes, core files will not get generated. User can further debug the issue based on CLI-history and logs from /var/log/messages.
Command Syntax
show cores (|WORD details)
Parameter
WORD
Core file name
Command Mode
Execution mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#sh cores
Core location :/var/log/crash/cores
Core-File-Name
--------------
core_nsm.683_20191110_103611_signal_5.gz
core_nsm.712_20191107_171803_signal_11.gz
core_nsm.684_20191112_054937_signal_5.gz
core_yangcli.5695_20191107_171715_signal_11.gz
#
Table 20-42 explains the output fields.
Table 20-42: show cores fields
Entry | Description |
---|
Core-File-Name | Core dump file name. |
show running-config watchdog
Use this command to display watchdog configurations.
Command Syntax
show running-config watchdog
Parameters
None
Command Mode
Privileged EXEC
Applicability
This command was introduced in OcNOS version 5.0.
Example
#sh running-config watchdog
software-watchdog keep-alive-time 300
show software-watchdog status
Use this command to display the software watchdog status for each OcNOS module.
Command Syntax
show software-watchdog status
show software-watchdog status detail
Parameter
None
Command Mode
Execution mode
Applicability
This command was introduced before OcNOS version 1.3 and updated in OcNOS version 1.3.4.
Examples
#show software-watchdog status
Software Watchdog timeout in seconds : 60
Process name Watchdog status
============ ===============
nsm Enabled
ripd Enabled
ripngd Enabled
ospfd Enabled
ospf6d Enabled
isisd Enabled
hostpd Enabled
ldpd Enabled
rsvpd Enabled
mribd Enabled
pimd Enabled
authd Enabled
mstpd Enabled
imi Enabled
onmd Enabled
HSL Enabled
oamd Enabled
vlogd Enabled
vrrpd Enabled
ndd Enabled
ribd Enabled
bgpd Enabled
l2mribd Enabled
lagd Enabled
sflow Enabled
udld Enabled
cmld Enabled
cmmd Enabled
pcepd Enabled
#show software-watchdog status detail
Software Watchdog timeout in seconds : 60
Process Watchdog Process Disconnect Connect Last Restart
Name Status Status Count Count Reason
======= ======== =========== ========== ======= ===============================
nsm Enabled Running 0 1 Fresh bootup
ripd Enabled Running 0 1 Fresh bootup
ripngd Enabled Running 0 1 Fresh bootup
ospfd Enabled Running 0 1 Fresh bootup
ospf6d Enabled Running 0 1 Fresh bootup
isisd Enabled Running 0 1 Fresh bootup
hostpd Enabled Running 3 4 Segmentation fault
ldpd Enabled Running 0 1 Fresh bootup
rsvpd Enabled Running 0 1 Fresh bootup
mribd Enabled Running 0 1 Fresh bootup
pimd Enabled Running 0 1 Fresh bootup
authd Enabled Running 0 1 Fresh bootup
mstpd Enabled Running 0 1 Fresh bootup
imi Enabled Running 0 1 Fresh bootup
onmd Enabled Running 0 1 Fresh bootup
HSL Enabled Running 0 1 Fresh bootup
oamd Enabled Running 0 1 Fresh bootup
vlogd Enabled Running 0 1 Fresh bootup
vrrpd Enabled Running 0 1 Fresh bootup
ndd Enabled Running 0 1 Fresh bootup
ribd Enabled Running 0 1 Fresh bootup
bgpd Enabled Running 0 1 Fresh bootup
l2mribd Enabled Running 0 1 Fresh bootup
lagd Enabled Running 0 1 Fresh bootup
sflow Enabled Running 0 1 Fresh bootup
udld Enabled Running 0 1 Fresh bootup
cmld Enabled Running 0 1 Fresh bootup
cmmd Enabled Running 0 1 Fresh bootup
pcepd Enabled Running 0 1 Fresh bootup
#
Table 20-43 explains the output fields.
Table 20-43: show software-watchdog status output fields
Field | Description |
---|
Process Name | The name of a protocol module. |
Watchdog Status | Status of a protocol module (Enabled or Disabled). |
Process Status | Status of the protocol module Running/Not-running). |
Disconnect Count | Number of times the protocol module disconnected from monitoring module. |
Connect Count | Number of times the protocol module connected to monitoring module. |
Last Restart Reason | Reason why a module disconnected from monitoring module. |
show system log
Use this command to display the system’s log file.
Command Syntax
show system log
Parameters
None
Command Mode
Execution mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show system log
Syslog : enabled File Name : /var/log/messages
Oct 18 18:10:18 localhost rsyslogd: [origin software="rsyslogd" swVersion="8.4.2
" x-pid="541" x-info="http://www.rsyslog.com"] start
Oct 18 18:10:18 localhost systemd[1]: Started Apply Kernel Variables.
Oct 18 18:10:18 localhost systemd[1]: Started Create Static Device Nodes in /dev
.
Oct 18 18:10:18 localhost systemd[1]: Starting udev Kernel Device Manager...
Oct 18 18:10:18 localhost systemd[1]: Started udev Kernel Device Manager.
Oct 18 18:10:18 localhost systemd[1]: Starting Copy rules generated while the ro
ot was ro...
Oct 18 18:10:18 localhost systemd[1]: Starting LSB: Set preliminary keymap...
Oct 18 18:10:18 localhost systemd[1]: Started Copy rules generated while the roo
t was ro.
Oct 18 18:10:18 localhost nfs-common[163]: Starting NFS common utilities:.
Oct 18 18:10:18 localhost systemd[1]: Found device /dev/ttyS0.
Oct 18 18:10:18 localhost systemd[1]: Found device 16GB_SATA_Flash_Drive OcNOS-CONFIG.
Oct 18 18:10:18 localhost systemd[1]: Starting File System Check on /dev/disk/by
-label/OcNOS-CONFIG...
Oct 18 18:10:18 localhost systemd[1]: Starting system-ifup.slice.
Oct 18 18:10:18 localhost systemd-fsck[217]: OcNOS-CONFIG: clean, 85/128016 file
s, 27057/512000 blocks
Oct 18 18:10:18 localhost systemd[1]: Created slice system-ifup.slice.
--More--
Table 20-44 explains the output fields.
Table 20-44: show system log fields
Entry | Description |
---|
Syslog | Status of the protocol (enabled or disabled). |
File Name | Specifies the name of the system log files that you configured. |
show system login
Use this command to display the system’s login history.
Command Syntax
show system login
Parameters
None
Command Mode
Execution mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show system login
eric ttyS0 Wed Oct 19 18:31 still logged in
takayuki ttyS0 Wed Oct 19 18:14 - 18:25 (00:10)
girish ttyS0 Wed Oct 19 16:46 - 17:01 (00:14)
wtmp begins Wed Oct 19 16:46:18 2016
show system reboot-history
Use this command to show the device reboot history.
Command Syntax
show system reboot-history
Parameters
None
Command Mode
Execution mode
Applicability
This command was introduced before OcNOS version 1.3
Examples
#show system reboot-history
DATE-TIME REBOOT-REASON
------------------------ --------------------------
Thu Oct 07 12:46:56 2021 Sys-update from NOS shell
Wed Oct 13 09:35:06 2021 Reload from NOS shell
Sat Feb 16 23:19:38 2019 Reload from NOS shell
show system resources
Use this command to display the system’s current resources.
Command Syntax
show system resources (iteration <1-5>|)
Parameters
<1-5>
The number of times to check the resources before they are displayed.
Command Mode
Execution mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
DELL-6K3#show system resources
load average: 0.12, 0.22, 0.20
Tasks: 173 total, 1 running, 172 sleeping, 0 stopped, 0 zombie
%Cpu(s): 3.1 us, 1.6 sy, 0.0 ni, 95.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 15930.2 total, 14277.8 free, 1003.0 used, 649.4 buff/cache
0 used, 0 free. 252416 cached Mem
Table 20-45 explains the output fields.
Table 20-45: show system resource fields
Entry | Description |
---|
Load Average | Number of processes that are running. The average reflects the system load the past 1, 5, and 15 minutes. |
Tasks | Number of processes in the system and how many processes are actually running when the command is issued. |
CPU | Displays the CPU utilization information for processes on the device. |
KiB Mem | The memory field (Mem) shows the virtual memory used by processes. The value in the memory field is in KB and MB, and is broken down as follows: Total: The total amount of available virtual memory, in kibibytes (KiBs). Used:The total amount of used virtual memory, in kibibytes (KiBs). Free: The total amount of free virtual memory, in kibibytes (KiBs) Buffers: The size of the memory buffer used to hold data recently called from disk. |
KiB Swap | The Swap field shows the total swap space available and how much is unused and is broken down as follows: Total: The total amount of available swap memory, in kibibytes (KiBs). Used: The total amount of used swap memory, in kibibytes (KiBs). Free: The total amount of free swap memory, in kibibytes (KiBs). Cache Memory: Memory that is not associated with any program and does not need to be swapped before being reused. |
show system uptime
Use this command to display how lone the system has been up and running.
Command Syntax
show system uptime
Parameters
None
Command Mode
Execution mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
DELL-6K3#show system uptime
19:10:22 up 1 day, 1:01, 1 user, load average: 0.08, 0.05, 0.05
Table 20-46 explains the output fields.
Table 20-46: show system uptime fields
Entry | Description |
---|
Time and up | Current time, in the local time zone, and how long the router or switch has been operational. |
Users | Number of users logged in to the router or switch. |
Load Average | Number of processes that are running. The average reflects the system load the past 1, 5, and 15 minutes. |
show techsupport
Use this command to collect system data for technical support.
Command Syntax
show techsupport ({all|authd|bgp|cmmd|hostpd|hsl|imi|isis|l2mribd|lag|ldp|mribd|mstp|nd|nsm|oam|onm|ospf|ospf6|pcep|pim|ptp|rib|rip|ripng|rsvp|sflow|synce|vrrp})
Parameters
all
ALL Related Information
authd
AUTHD Related Information
bgp
BGP Related Information
cmmd
CMMD Related Information
hostpd
HOSTP Related Information
hsl
HSL Related Information
imi
IMI Related Information
isis
ISIS Related Information
l2mribd
L2MRIB Related Information
lag
LAG/LACP Related Information
ldp
LDP Related Information
mribd
MRIB Related Information
mstp
MSTP Related Information
nd
NDD Related Information
nsm
NSM Related Information
oam
BFD Related Information
onm
ONM/LLDP Related Information
ospf
OSPF Related Information
ospf6
OSPF6 Related Information
pcep
PCEP Related Information
pim
PIM Related Information
ptp
PTP Related Information
rib
RIB Related Information
rip
RIP Related Information
ripng
RIPNG Related Information
rsvp
RSVP Related Information
sflow
SFLOW Related Information
synce
SYNCE Related Information
vrrp
VRRP Related Information
Default
The default file path for show techsupport is /var/log/.
Command Mode
Privileged EXEC
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show techsupport all
#show techsupport bgp
#show techsupport bgp isis
show techsupport status
Use this cli to view the status of show techsupport CLI to generate techsupport archive.
Command Syntax
show techsupport status
Parameters
None
Command Mode
Privileged EXEC
Applicability
This command was introduced before OcNOS version 4.2.
Example
#show techsupport status
Tech Support Command Execution Is Complete
##Generated Tech Support File-list
/var/log/OcNOS_tech_support_18_Jun_2021_10_01_38.tar.gz
Tar File is generated at /var/log and file name begins with 'OcNOS_tech_support'
software-watchdog
Use this command to enable the software watchdog feature for an OcNOS module.
Use the no form of this command to disable the software watchdog feature.
Command Syntax
software-watchdog (nsm|authd|bgpd|cmld|hostpd|imi|isisd|lagd|l2mribd|
mstpd|mribd|ndd|oamd|onmd|ospfd|ospf6d|pimd|ribd|ripd|ripngd|sflow|vlogd|vrrpd|
ldpd|rsvpd|udld|hsl|cmmd|pcepd|ptpd|synced)
no software-watchdog (nsm|authd|bgpd|cmld|hostpd|imi|isisd|lagd|l2mribd|
mstpd|mribd|ndd|oamd|onmd|ospfd|ospf6d|pimd|ribd|ripd|ripngd|sflow|vlogd|vrrpd|
ldpd|rsvpd|udld|hsl|cmmd|pcepd|ptpd|synced)
Parameters
authd
Software watchdog for AUTH module
bgpd
Software watchdog for BGP module
cmld
Software watchdog for CML module
cmmd
Software watchdog for CMM module
hostpd
Software watchdog for HOSTP module
hsl
Software watchdog for HSL module
imi
Software watchdog for IMI module
isisd
Software watchdog for ISIS module
l2mribd
Software watchdog for L2MRIB module
lagd
Software watchdog for LAG module
ldpd
Software watchdog for LDP module
mribd
Software watchdog for MRIB module
mstpd
Software watchdog for MSTP module
ndd
Software watchdog for NDD module
nsm
Software watchdog for NSM module
oamd
Software watchdog for OAM module
onmd
Software watchdog for ONM module
ospf6d
Software watchdog for OSPF6 module
ospfd
Software watchdog for OSPF module
pcepd
Software watchdog for PCEP module
pimd
Software watchdog for PIM module
ptpd
Software watchdog for PTP module
ribd
Software watchdog for RIB module
ripd
Software watchdog for RIP module
ripngd
Software watchdog for RIPNG module
rsvpd
Software watchdog for RSVP module
sflow
Software watchdog for SFLOW module
synced
Software watchdog for SYNCE module
udld
Software watchdog for UDLD module
vlogd
Software watchdog for VLOG module
vrrpd
Software watchdog for VRRP module
Default
By default, software watchdog is enabled.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
#(config)no software-watchdog imi
#(config)software-watchdog nsm
software-watchdog keep-alive-time
Use this command to set the software watchdog keep-alive time interval in seconds. The default keep-alive time interval is 60 seconds.
Use the no form of this command to set default keep-alive time interval.
Command Syntax
software-watchdog keep-alive-time <30-1800>
no software-watchdog keep-alive-time
Parameters
<30-1800>
Keep-alive time interval in seconds
Default
By default, software watchdog is enabled and the keep-alive time interval is 60 seconds.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
#(config)software-watchdog keep-alive-time 100