{"id":66,"date":"2014-06-22T03:10:48","date_gmt":"2014-06-22T03:10:48","guid":{"rendered":"http:\/\/feralpacket.org\/?p=66"},"modified":"2015-01-03T11:20:18","modified_gmt":"2015-01-03T11:20:18","slug":"v5-written-and-lab-logging-notes","status":"publish","type":"post","link":"https:\/\/feralpacket.org\/?p=66","title":{"rendered":"v5 Written and Lab:  Logging Notes"},"content":{"rendered":"<p><code>v5 Written: 6.1.c Implement and troubleshoot logging<br \/>\n6.1.c [i] Local logging, syslog, debug, conditional debug<br \/>\n6.1.c [ii] Timestamps<\/code><\/p>\n<p>v5 Lab: 5.1.c Implement and troubleshoot logging<br \/>\n5.1.c [i] Local logging, syslog, debug, conditional debug<br \/>\n5.1.c [ii] Timestamp<\/p>\n<p>Documents:<\/p>\n<p>Basic System Management Configuration Guide, Cisco IOS Release 15M&amp;T, Troubleshooting and Fault Management, Logging System Messages, pgs. 107 &#8211; 113<\/p>\n<p>Basic System Management Configuration Guide, Cisco IOS Release 15M&amp;T, Troubleshooting and Fault Management, Enabling Debug Operations, pgs. 120 &#8211; 125<\/p>\n<p>http:\/\/www.cisco.com\/c\/en\/us\/td\/docs\/ios-xml\/ios\/bsm\/configuration\/15-mt\/bsm-15-mt-book.html<\/p>\n<p>Catalyst 3750-X and 3560-X Software Configuration Guide, Release 15.0(1)SE, Chapter 34: Understanding System Message Logging, pgs. 34-1 to 34-17<\/p>\n<p>Catalyst 3750-X and 3560-X Software Configuration Guide, Release 15.0(1)SE,<br \/>\nChapter 52: Troubleshooting, Using Debug Commands, pgs. 52-20 to 52-22<\/p>\n<p>http:\/\/www.cisco.com\/c\/en\/us\/td\/docs\/switches\/lan\/catalyst3750x_3560x\/software\/release\/15-0_1_se\/configuration\/guide\/3750xcg.html<\/p>\n<p>Books:<\/p>\n<p>CCIE Routing and Switching Exam Certification Guide 4th Ed; Chapter 5: IP Services, Syslog, pgs. 159 &#8211; 160<\/p>\n<p>Routing TCP \/ IP Volume II; Chapter 9 Router Management, Logging, Syslog, pgs. 744 &#8211; 750f<\/p>\n<p>Router-Bits Handbook; Syslog, pgs. 326 &#8211; 327<\/p>\n<p>INE:<\/p>\n<p>INE R&amp;S Workbook Vol I<br \/>\n&#8211; System Management<br \/>\n&#8211; 12.2 &#8211; System Management Logging<br \/>\n&#8211; 12.3 &#8211; Syslog Logging<br \/>\n&#8211; 12.4 &#8211; Logging Counging and Timestamps<br \/>\n&#8211; 12.5 &#8211; Logging to Flash Memory<br \/>\n&#8211; 12.6 &#8211; Configuration Change Notification and Logging<br \/>\n&#8211; 12.8 &#8211; Logging with Access-Lists<\/p>\n<p>RFC 5424 &#8211; The Syslog Protocol<\/p>\n<p>Uses UDP port 514<\/p>\n<p>Logging options:<br \/>\n&#8211; Internal buffer: allocates a small part of memory to log messages<br \/>\n&#8211; Syslog: send messages to an external device for storing<\/p>\n<p>Tip: Make sure the device is configured for the right date, time, and timezone<\/p>\n<p>Example:<\/p>\n<p>conf t<br \/>\nservice timestamps log datetime msec localtime show-timezone<br \/>\nservice timestamps debug datetime msec localtime show-timezones<br \/>\nlogging<br \/>\nlogging trap 6<\/p>\n<p>Message levels:<br \/>\n&#8211; Emergancy 0<br \/>\n&#8211; Alert 1<br \/>\n&#8211; Critical 2<br \/>\n&#8211; Error 3<br \/>\n&#8211; Warning 4<br \/>\n&#8211; Notice 5<br \/>\n&#8211; Informational 6<br \/>\n&#8211; Debug 7<\/p>\n<p>logging facility<br \/>\n&#8211; local 0 &#8211; 7<\/p>\n<p>local 7 is the default facility<\/p>\n<p>show logging<\/p>\n<p>Warning: the debug process is assigned a high CPU priority<\/p>\n<p>By default, Cisco routers and switches do not log events to nonvolatile memory;<br \/>\n&#8211; can be configured to do so<br \/>\n&#8211; logging buffered<\/p>\n<p>Examples:<\/p>\n<p>logging on<br \/>\nlogging buffered 8192 debugging<br \/>\nlogging console debugging<br \/>\nlogging rate-limit console all 1<br \/>\nlogging monitor informational<\/p>\n<p>line con 0<br \/>\nlogging sysnchronous<\/p>\n<p>logging queue-limit trap 256<br \/>\nlogging origin-id string ROUTER4<br \/>\nlogging facility local1<br \/>\nlogging trap notifications<br \/>\nlogging source-interface lo0<br \/>\nlogging host 1.1.1.1 transport tcp port 500<\/p>\n<p>service timestamps debug uptime<br \/>\nservice timestamps log uptime<br \/>\nservice sequence-numbers<br \/>\nlogging count<\/p>\n<p>show logging<br \/>\nshow logging count<\/p>\n<p>#mkdir flash0:\/var<br \/>\n#mkdir flash0:\/var\/log<br \/>\n#conf t<\/p>\n<p>logging file flash0:\/var\/log\/syslog 32768 notifications<br \/>\nlogging on<\/p>\n<p>In IOS 15 M&amp;T, logging to flash changed to:<\/p>\n<p>logging persistent url flash0:\/var\/log\/syslog size 32768 filesize 32768<\/p>\n<p>show logging<br \/>\nmore flash0:\/var\/log\/syslog<\/p>\n<p>archive<br \/>\nlog config<br \/>\nlogging enable<br \/>\nlogging size 1000<br \/>\nnotify syslog<br \/>\nhidekeys<\/p>\n<p>show archive log config all<br \/>\nshow archive log config statistics<br \/>\nshow archive log config all provisioning<\/p>\n<p>ip access-list extended LOGGING<br \/>\npermit udp any any eq rip log-input<br \/>\npermit ip any any<\/p>\n<p>int fa0\/1<br \/>\nip access-group LOGGING in<\/p>\n<p>ip access-list logging interval 10<br \/>\nip access-list lop-update threshold 2<\/p>\n<p>System process &#8211;&gt; Logger<br \/>\n&#8211; Looks for messages (debug, error, informational) queued via the kernel by other processes and outputs them to the console, and, optionally, to a remote syslog server;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>v5 Written: 6.1.c Implement and troubleshoot logging 6.1.c [i] Local logging, syslog, debug, conditional debug 6.1.c [ii] Timestamps v5 Lab: 5.1.c Implement and troubleshoot logging 5.1.c [i] Local logging, syslog, debug, conditional debug 5.1.c [ii] Timestamp Documents: Basic System Management Configuration Guide, Cisco IOS Release 15M&amp;T, Troubleshooting and Fault Management, Logging System Messages, pgs. 107 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[30,20,11],"class_list":["post-66","post","type-post","status-publish","format-standard","hentry","category-ccie","tag-ccie","tag-logging","tag-route-switch"],"_links":{"self":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/66","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=66"}],"version-history":[{"count":2,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/66\/revisions"}],"predecessor-version":[{"id":232,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/66\/revisions\/232"}],"wp:attachment":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}