Posted on March 22, 2021 3:54 am
 |  Asked by asheesh mamgain
Print Friendly, PDF & Email

any debug command to know when the interface is down in millisec when the remote ckt is deliberately put down ,

Any debug commands to know at what time bgp went down , in 7150 switch

Answered on March 22, 2021 10:34 am

Hi Asheesh,

Thanks for reaching out.

a) We need to enable "logging format timestamp high-resolution" command on the device to get the timestamp for an event in milliseconds to be seen under "show logging" output.

Below are the results from lab tests:

switch1(49/1)-----(49/1)switch2  (7150 devices)

switch1(config)#logging format timestamp high-resolution

switch2(config-if-Et49/1)#shut -->shut the link on remote interface.

switch1(config)#sh log 4
2021-03-22T10:11:27.742830+00:00 co642 Ebra: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet49/1, changed state to down
2021-03-22T10:11:27.745525+00:00 co642 Stp: %SPANTREE-6-INTERFACE_DEL: Interface Ethernet49/1 has been removed from instance MST0

From "show logging" output , we can see the timestamp for the link down event in milliseconds.

We can check for the link down time under "show interfaces phy detail" as well , however it would be shown till seconds but not in msec.

b)To check for BGP down time in msec since we have "logging format timestamp high-resolution" command enabled we can check the same under "show logging" output itself:

switch1(config-router-bgp)# sh log 4
2021-03-22T10:15:40.346337+00:00 co642 Rib: %BGP-3-NOTIFICATION: sent to neighbor (AS 2) 6/6 (Cease/other configuration change <Hard Reset>) 0 bytes
2021-03-22T10:15:40.346704+00:00 co642 Rib: %BGP-5-ADJCHANGE: peer (AS 2) old state Established event Stop new state Idle
2021-03-22T10:15:40.350262+00:00 co642 Ebra: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet49/1, changed state to down

We can also check for BGP down time from "show ip bgp summary" and "show ip bgp neighbors <neighborip>" commands as well however we would see the timestamp in seconds but not in msec.




Post your Answer

You must be logged in to post an answer.