December 2006
Intermediate to advanced
1188 pages
72h 8m
English
You wish to see the number and type of log messages created by the router.
Use the logging count command to enable error log counting:
Router2#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router2(config)#logging countRouter2(config)#endRouter2#
The logging count command causes the router to maintain a count and timestamp of each recorded log type. To view the results of the log counting, use the show logging count command:
Router2#show logging count Facility Message Name Sev Occur Last Time ================================================================================== NTP PEERREACH 6 3 Jul 13 20:31:34.441 NTP PEERSYNC 5 1 Jul 13 20:23:03.571 NTP PEERUNREACH 4 3 Jul 13 20:22:00.435 NTP RESTART 6 1 Jan 31 14:13:33.769 ------------- ------------------------------- ---------------------------------- NTP TOTAL 8 SYS ESMSHUTDOWN 7 7 Jul 15 19:18:07.476 SYS PRIV_AUTH_PASS 5 7 Jul 15 19:32:50.735 SYS LOGGINGHOST_STARTSTOP 6 4 Jul 15 19:56:31.203 SYS RESTART 5 1 Jan 31 14:13:33.697 SYS CONFIG_I 5 23 Jul 15 20:11:14.943 SYS CLOCKUPDATE 6 4 Jul 13 20:21:59.574 ------------- ------------------------------- ---------------------------------- SYS TOTAL 46 LINEPROTO UPDOWN 5 4 Jan 31 14:13:33.260 ------------- ------------------------------- ---------------------------------- LINEPROTO TOTAL 4 LINK CHANGED 5 2 Jan 31 14:13:34.390 ------------- ------------------------------- ---------------------------------- ...