Security Compliance
Use the CMC checklogs command to display log files in SEM
The SEM CMC checklogs CLI command displays the contents of the syslog facilities (log files) containing raw logs via Syslogs or SNMP traps
First published date
Last published date
Overview
The
checklogs command is used to view the exact text of the syslog facilities, which will be the raw syslog/SNMP Trap messages from source devices.Product section
Resolution
- Access the CMC prompt via
- Hyper-v / Vmware Virtual Console of SEM Guest VM: Arrow down to Advanced Configuration, and then press Enter.(Note: Starting with SEM 2020.4 you will have to enter the "cmc" user password to login. In previous versions there was no need.
- SSH Client: Log in using your CMC credentials to Putty or other SSH Client application you use
- And follow the "Troubleshoot network device logging or syslog device logging in SEM" guide and then use below tips on how to navigate to checklogs log viewer.
Note: You can press Enter to accept the default (End). - Select the number of lines to return.
Note: You can press Enter to accept the default (500). - Press Enter to load the file.
- Once you have loaded the file, you can use operators to search for strings.
- Forward slash (/) to search down the log file.
- Question mark (?) to search up the log file.
- Shift + G to go to the bottom of the log file.
- gg to go to the top of the log file.
- h to see the help and other options that can be used.