Skip to Content
Cisco IOS Cookbook, 2nd Edition
book

Cisco IOS Cookbook, 2nd Edition

by Kevin Dooley, Ian Brown
December 2006
Intermediate to advanced
1188 pages
72h 8m
English
O'Reilly Media, Inc.
Content preview from Cisco IOS Cookbook, 2nd Edition

Enabling Error Log Counting

Problem

You wish to see the number and type of log messages created by the router.

Solution

Use the logging count command to enable error log counting:

Router2#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Router2(config)#logging count
Router2(config)#end
Router2#

Discussion

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 ------------- ------------------------------- ---------------------------------- ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

IP Routing on Cisco IOS, IOS XE, and IOS XR: An Essential Guide to Understanding and Implementing IP Routing Protocols

IP Routing on Cisco IOS, IOS XE, and IOS XR: An Essential Guide to Understanding and Implementing IP Routing Protocols

Brad Edgeworth, Aaron Foss, Ramiro Garza Rios
Cisco Software-Defined Access

Cisco Software-Defined Access

Srilatha Vemula, Jason Gooley, Roddie Hasan

Publisher Resources

ISBN: 0596527225Supplemental ContentErrata Page