<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to Log Debug Level Messages IOS XR in Routing and SD-WAN</title>
    <link>https://community.cisco.com/t5/routing-and-sd-wan/how-to-log-debug-level-messages-ios-xr/m-p/4641760#M369461</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/286878"&gt;@balaji.bandi&lt;/a&gt;&amp;nbsp;that is right. As soon as I exit the current session, the debug flags are unset.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is it possible to keep them enabled so I can attempt to have a debug log of the issue when it arises?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jun 2022 17:18:45 GMT</pubDate>
    <dc:creator>TrivialPants</dc:creator>
    <dc:date>2022-06-30T17:18:45Z</dc:date>
    <item>
      <title>How to Log Debug Level Messages IOS XR</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/how-to-log-debug-level-messages-ios-xr/m-p/4641211#M369439</link>
      <description>&lt;P&gt;How do you log debug level messages on IOS XR routers?&lt;BR /&gt;&lt;BR /&gt;I have the following configuration for my logging:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;logging trap debugging
logging events level informational
logging console alerts
logging history size 200
logging history errors
logging monitor critical
logging buffered errors
logging &amp;lt;SYSLOG IP&amp;gt; vrf managementvrf&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and here is the output of&amp;nbsp;&lt;EM&gt;show logging&lt;/EM&gt;:&lt;/P&gt;&lt;PRE&gt;Syslog logging: enabled (0 messages dropped, 0 flushes, 0 overruns)
    Console logging: level alert, 987818 messages logged
    Monitor logging: level critical, 22 messages logged
    Trap logging: level debugging, 22988449 messages logged
    Logging to &amp;lt;SYSLOG IP&amp;gt;, 12539 message lines logged
    Buffer logging: level error, 120898 messages logged&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have enabled a BGP debug with the following:&lt;/P&gt;&lt;PRE&gt;debug bgp update&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am still only seeing non-debug messages on my syslog server. Any advice?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 21:44:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/how-to-log-debug-level-messages-ios-xr/m-p/4641211#M369439</guid>
      <dc:creator>TrivialPants</dc:creator>
      <dc:date>2022-06-29T21:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to Log Debug Level Messages IOS XR</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/how-to-log-debug-level-messages-ios-xr/m-p/4641232#M369440</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try adding&lt;BR /&gt;&lt;EM&gt;logging source-interface &amp;lt;gigabitEthernet 0/0/0/0&amp;gt; vrf managementvrf&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 23:50:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/how-to-log-debug-level-messages-ios-xr/m-p/4641232#M369440</guid>
      <dc:creator>pman</dc:creator>
      <dc:date>2022-06-29T23:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to Log Debug Level Messages IOS XR</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/how-to-log-debug-level-messages-ios-xr/m-p/4641314#M369448</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Syslog messages can be sent to destinations other than the console, such as the logging buffer, syslog servers.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Once the Logging buffer full, OLD messages will be deleted and new message will be stored.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;as per your config: You do have the Syslog server configured: using a source of VRF, can the Syslog server be reached? check with ping ( do you have any firewall between device and syslog then you need to Open UDP/514 port to ship logs to syslog server.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;logging &amp;lt;SYSLOG IP&amp;gt; vrf managementvrf&lt;/PRE&gt;
&lt;PRE&gt;Logging to &amp;lt;SYSLOG IP&amp;gt;, 12539 message lines logged&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;what logs to ship you can use the below guide :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://www.cisco.com/c/en/us/td/docs/routers/asr9000/software/asr9k-r6-5/system-monitoring/configuration/guide/b-system-monitoring-cg-asr9000-65x/b-system-monitoring-cg-asr9000-65x_chapter_0101.html" target="_blank"&gt;https://www.cisco.com/c/en/us/td/docs/routers/asr9000/software/asr9k-r6-5/system-monitoring/configuration/guide/b-system-monitoring-cg-asr9000-65x/b-system-monitoring-cg-asr9000-65x_chapter_0101.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 06:27:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/how-to-log-debug-level-messages-ios-xr/m-p/4641314#M369448</guid>
      <dc:creator>balaji.bandi</dc:creator>
      <dc:date>2022-06-30T06:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to Log Debug Level Messages IOS XR</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/how-to-log-debug-level-messages-ios-xr/m-p/4641564#M369453</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;The syslog is reachable and is updating with messages. However when i turn on debug bgp updates, I dont' see the verbose bgp messages showing up on the syslog. Just the normal bgp adjacency changes. I am getting logs to my syslog server okay, but I would like to get more detailed debug messages.&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jun 2022 12:43:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/how-to-log-debug-level-messages-ios-xr/m-p/4641564#M369453</guid>
      <dc:creator>TrivialPants</dc:creator>
      <dc:date>2022-06-30T12:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Log Debug Level Messages IOS XR</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/how-to-log-debug-level-messages-ios-xr/m-p/4641725#M369459</link>
      <description>&lt;P&gt;I was able to get it to send the debug messages by entering this command:&lt;/P&gt;&lt;PRE&gt;logging &amp;lt;SYSLOG IP&amp;gt; vrf managementvrf severity debugging&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;but I still am not sure how to make the debug persist outside of my current terminal session? I can enable bgp debug, but as soon as I exit the debug flags are turned off and the debug messages go away.&lt;BR /&gt;&lt;BR /&gt;is there a way to make them persistent through sessions?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 16:12:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/how-to-log-debug-level-messages-ios-xr/m-p/4641725#M369459</guid>
      <dc:creator>TrivialPants</dc:creator>
      <dc:date>2022-06-30T16:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to Log Debug Level Messages IOS XR</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/how-to-log-debug-level-messages-ios-xr/m-p/4641740#M369460</link>
      <description>&lt;P&gt;Running debug all time not advisble.&lt;/P&gt;
&lt;P&gt;Coming to your problem, you mean as soon as you logout from console, the debug turn off.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can you SSH to device and chcek show debug&amp;nbsp; (is the debug still on or no debug&amp;nbsp; ?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 16:51:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/how-to-log-debug-level-messages-ios-xr/m-p/4641740#M369460</guid>
      <dc:creator>balaji.bandi</dc:creator>
      <dc:date>2022-06-30T16:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to Log Debug Level Messages IOS XR</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/how-to-log-debug-level-messages-ios-xr/m-p/4641760#M369461</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/286878"&gt;@balaji.bandi&lt;/a&gt;&amp;nbsp;that is right. As soon as I exit the current session, the debug flags are unset.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is it possible to keep them enabled so I can attempt to have a debug log of the issue when it arises?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 17:18:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/how-to-log-debug-level-messages-ios-xr/m-p/4641760#M369461</guid>
      <dc:creator>TrivialPants</dc:creator>
      <dc:date>2022-06-30T17:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to Log Debug Level Messages IOS XR</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/how-to-log-debug-level-messages-ios-xr/m-p/4641992#M369464</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/542373"&gt;@TrivialPants&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;what is the issue you are trying to troubleshoot ?&lt;/P&gt;
&lt;P&gt;Because having the debug active for long times means an impact on the route processor of the node.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can build in SecureCRT or using CLIAnalyzer&amp;nbsp; a script that sends&amp;nbsp; a "!" every two seconds to keep the SSH session alive for long times or you can disable the timeout on the line vty.&lt;/P&gt;
&lt;P&gt;But before doing this, can you explain what your issue ?&lt;/P&gt;
&lt;P&gt;IT is intermittent the BGP session is terminated by the peer from time to time ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are ways to detect errors on BGP sessions without using debug.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope to help&lt;/P&gt;
&lt;P&gt;Giuseppe&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 19:11:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/how-to-log-debug-level-messages-ios-xr/m-p/4641992#M369464</guid>
      <dc:creator>Giuseppe Larosa</dc:creator>
      <dc:date>2022-06-30T19:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Log Debug Level Messages IOS XR</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/how-to-log-debug-level-messages-ios-xr/m-p/4642130#M369466</link>
      <description>Thanks Giuseppe,&lt;BR /&gt;&lt;BR /&gt;We have a BGP peer - the only one of several which is giving some issues. This peer is connected logically to our core router on a Bundle interface on our core BGP router.&lt;BR /&gt;&lt;BR /&gt;It is transported across our internal transport network from the ingress PoP via an mpls l2vpn.&lt;BR /&gt;&lt;BR /&gt;We are not seeing any errors on the mpls path or on any of the interfaces, but the BGP is dropping daily, at least.&lt;BR /&gt;&lt;BR /&gt;Does that provide some more insight? Perhaps this is something you maybe have seen before?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;We were hoping to gather more details about why it was dropping BGP with more verbose debug logs.&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Jul 2022 03:36:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/how-to-log-debug-level-messages-ios-xr/m-p/4642130#M369466</guid>
      <dc:creator>TrivialPants</dc:creator>
      <dc:date>2022-07-01T03:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Log Debug Level Messages IOS XR</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/how-to-log-debug-level-messages-ios-xr/m-p/4642372#M369472</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/542373"&gt;@TrivialPants&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt; it is transported across our internal transport network from the ingress PoP via an mpls l2vpn.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt; We have a BGP peer - the only one of several which is giving some issues. This peer is connected logically to our core router on a Bundle interface on our core BGP router.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if your core BGP router&amp;nbsp; is a virtual chassis you should configure the MAC address under the bundle interface.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt; We are not seeing any errors on the mpls path or on any of the interfaces, but the BGP is dropping daily, at least.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is dropped for lack of BGP keepalive from the neighbor what timers are you using ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is a strange architecture as usually an eBGP peer is configured on a border PE instead of steering the traffic at L2 in a pseudowire and then present it to the core device.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, that kind of service is provided by many internet IXPs and it is named wide or WAN area peering.&lt;/P&gt;
&lt;P&gt;You should use a dedicated L3 interface on core router that is not the loop0 as source of the eBGP session. But I'm sure you are doing this already.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope to help&lt;/P&gt;
&lt;P&gt;Giuseppe&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 12:07:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/how-to-log-debug-level-messages-ios-xr/m-p/4642372#M369472</guid>
      <dc:creator>Giuseppe Larosa</dc:creator>
      <dc:date>2022-07-01T12:07:15Z</dc:date>
    </item>
  </channel>
</rss>

