Monitoring Logging System Events
Use the show log configuration command to display your log configuration. Use the show log data command to display system events on your screen.
You can use the output filtering feature of the show command to include or exclude lines of output based on a text string you specify. See show Commands in JUNOSe System Basics Configuration Guide, Chapter 2, Command-Line Interface for details.
show log configuration
host1#show log configurationlog destination console severity WARNINGlog destination nv-file severity CRITICALno log engineeringlog fields timestamp instance no-calling-taskno log severitycategory severity verbosity filters------------------------- -------- --------- -------NameResolverLog ERROR lowaaaAtm1483Cfg ERROR lowaaaEngineGeneral ERROR lowaaaServerGeneral ERROR lowaddressServerGeneral ERROR lowatm ERROR lowatm1483 ERROR lowatmAal5 ERROR lowbgpConnections ERROR low...cliCommand NOTICE lowcontrolNetworkSlave ERROR lowcops ERROR low...udpTraffic ERROR lowExample 2Individual log udpTraffic is set to warning host1#(config)#log severity warning udpTraffichost1##show log configurationlog destination console severity WARNINGlog destination nv-file severity CRITICALno log engineeringlog fields timestamp instance no-calling-taskno log severitycategory severity verbosity filters------------------------- -------- --------- -------NameResolverLog ERROR lowaaaAtm1483Cfg ERROR lowaaaEngineGeneral ERROR lowaaaServerGeneral ERROR lowaddressServerGeneral ERROR lowatm ERROR lowatm1483 ERROR lowatmAal5 ERROR lowbgpConnections ERROR low...cliCommand NOTICE lowcontrolNetworkSlave ERROR lowcops ERROR low...udpTraffic WARNING* low* Default severity setting is overridden by the individual log severity setting.Example 3Log severity is set to alert host1#(config)#log severity alerthost1#show log configurationlog destination console severity WARNINGlog destination nv-file severity CRITICALno log engineeringlog fields timestamp instance no-calling-tasklog severity ALERTcategory severity verbosity filters------------------------- -------- --------- -------NameResolverLog ALERT# lowaaaAtm1483Cfg ALERT# lowaaaEngineGeneral ALERT# lowaaaServerGeneral ALERT# lowaddressServerGeneral ALERT# lowatm ALERT# lowatm1483 ALERT# lowatmAal5 ALERT# lowbgpConnections ALERT# low...cliCommand ALERT# lowcontrolNetworkSlave ALERT# lowcops ALERT# low...udpTraffic ALERT# low* Default severity setting is overridden by the system-wide severity setting.Example 4Individual log atm is set to severity warning host1#(config)#log severity warning atmhost1#show log configurationlog destination console severity WARNINGlog destination nv-file severity CRITICALno log engineeringlog fields timestamp instance no-calling-tasklog severity ALERTcategory severity verbosity filters------------------------- -------- --------- -------NameResolverLog ALERT# lowaaaAtm1483Cfg ALERT# lowaaaEngineGeneral ALERT# lowaaaServerGeneral ALERT# lowaddressServerGeneral ALERT# lowatm WARNING* lowatm1483 ALERT# lowatmAal5 ALERT# lowbgpConnections ALERT# low...cliCommand ALERT# lowcontrolNetworkSlave ALERT# lowcops ALERT# low...udpTraffic ALERT# low* Default severity setting is overridden by the system-wide severity setting.* Default severity setting is overridden by the individual log severity setting.show log data
- categoryLimits the display to a single log event category. See the CLI online Help for available categories.
host1#show log data category os
- deltaLimits the display to events that occurred after the time set with the log baseline command.
- nv-fileDisplays the information that is currently logged to nonvolatile storage.
host1#show log data nv-filelogFile.temp: The system cannot find the file specified.ALERT 09/12/2000 21:29:17 os: ASSERTION FAILED: file mplsNvs2.cc, line 789ALERT 09/20/2000 02:18:06 os: ASSERTION FAILED: file osPool.cc, line 819ALERT 09/20/2000 02:26:35 os: ASSERTION FAILED: file osPool.cc, line 819ALERT 09/20/2000 02:44:33 os: ASSERTION FAILED: file osPool.cc, line 819ALERT 09/20/2000 04:56:35 os: ASSERTION FAILED: file osPool.cc, line 819ALERT 09/27/2000 03:10:25 os: ASSERTION FAILED: file/sw0/sc/nvs/include/../nvMapBackend.h, line 235ALERT 10/02/2000 04:05:42 os: ASSERTION FAILED: file osHeap.cc, line 439ALERT 10/02/2000 04:08:04 os: ASSERTION FAILED: file osMessageQueue.cc, line42, rip1ALERT 10/12/2000 03:43:38 os: PANIC: file osSemaphore.cc, line 54ALERT 11/01/2000 02:03:49 os: ASSERTION FAILED: file cliCommand.cc, line 195host1#show log data severity noticeNOTICE 01/10/2001 00:59:50 os: config -- using runningNOTICE 01/10/2001 00:59:52 os: srp application, build date: 0x3a437424 (FRI DEC 22 2000 15:32:52 UTC)NOTICE 01/10/2001 00:59:52 os: last reset: user reboot, reason: not specifiedNOTICE 01/10/2001 00:59:52 os: OsIsrRegistrar: 0xbNOTICE 01/10/2001 00:59:52 os: OsIsrRegistrar: 0xaNOTICE 01/10/2001 00:59:52 os: OsIsrRegistrar: 0x2
- By combining keywords, you can further limit the information displayed. See the CLI online Help for information about the keywords available at each level.
host1#show log data nv-file severity alert