System Logs


nv show system log

Shows the current system log configuration on the switch.

Version History

Introduced in Cumulus Linux 5.12.0

Example

cumulus@switch:~$ nv show system log

nv show system log component

Shows the components of the system generating the logs and the log severity levels associated with each component.

Version History

Introduced in Cumulus Linux 5.12.0

Example

cumulus@switch:~$ nv show system log component 
Component         Level 
----------------  ------ 
nvue             info  
orchagent         notice 
portsyncd         notice 
sai_api_port      notice 
sai_api_switch    notice 
symmetry-manager  info  
syncd             notice

nv show system log component <component-name> file

Shows the contents of the most current file for a specific component. The system uses the less command so that you can scroll through the file interactively.

Command Syntax

Syntax Description
<component-name> The system component whose log file contents you want to see.

Version History

Introduced in Cumulus Linux 5.12.0

Example

cumulus@switch:~$ nv show system log component nvue file

nv show system log component <component-name> file list

Shows a list of log files for the specified component and shows the associated logs.

Command Syntax

Syntax Description
<component-name> The system component whose list of log files you want to see.

Version History

Introduced in Cumulus Linux 5.12.0

Example

cumulus@switch:~$ nv show system log component nvue file list

nv show system log file

Shows the contents of the most current system log file.

Version History

Introduced in Cumulus Linux 5.12.0

Example

cumulus@switch:~$ nv show system log file

nv show system log file <file-name>

Shows the contents of a specific system log file. If the file is a regular log file (such as syslog.1), the system uses less so that you can scroll and search through the log entries. If the file is compressed (such as syslog.2.gz), the system displays the contents without decompressing the file. This command is useful for viewing both archived and compressed log files.

Command Syntax

Syntax Description
<file-name> The system log file you want to view.

Version History

Introduced in Cumulus Linux 5.12.0

Example

cumulus@switch:~$ nv show system log file syslog.1

nv show system log file brief

Shows the contents of the most current system log file in a concise format.

Version History

Introduced in Cumulus Linux 5.12.0

Example

cumulus@switch:~$ nv show system log file brief

nv show system log file follow

Shows the contents of a system log file in real-time. The command shows the log file output continuously as it is updated, similar to the behavior of the tail -f command.

Version History

Introduced in Cumulus Linux 5.12.0

Example

cumulus@switch:~$ nv show system log file follow

nv show system log file list

Shows the available system log files on the system with their filenames and corresponding file paths.

Version History

Introduced in Cumulus Linux 5.12.0

Example

cumulus@switch:~$ nv show system log file list