cancel
Showing results for 
Search instead for 
Did you mean: 

bgp log

bgp log

andreas1
New Contributor II
How do you get bgp to at least log up and down from neigh in the normal log ?

Do I have to configure a specific logfilter ? for these simple events ? I mean all failure state events should imho be logged to the local file.

8 REPLIES 8

andreas1
New Contributor II
Thank you.. no comes t he question why isn't this a default logfilter that is enabled when you enable BGP ? No other router I have worked with has this behaviour of NOT reporting in the local log.

Stephane_Grosj1
Extreme Employee
Hi,

using the event
configure log filter DefaultFilter add events BGP.NeighborMgr.PeerEstTrans

You have the following log:

04/25/2016 07:58:52.96 [VR 2] Peer 40.0.0.10 (0) has entered or left Established state, EST? 0, holdtime: 180, passive: 0

The "EST?" parameter will tell you if this is a Up or Down event.
0 = down (leaving the established state)
1 = up (entering the established state)

Rahmathullah__S
Extreme Employee
Hi,
I just verified in lab and this is what I see :

* sw3.143 # show bgp neighbor

Peer AS Weight State InMsgs OutMsgs(InQ) Up/Down
-----------------------------------------------------------------------------------
Ee-- 30.0.0.10 10 1 ESTABLISHED 12013 12229 (0 ) 0:0:00:45
Ee-- 40.0.0.10 20 1 ESTABLISHED 11998 12325 (0 ) 0:0:00:30

Flags: (d) disabled, (e) enabled, (E) external peer, (I) internal peer
(m) EBGP multihop, (r) route reflector client

BGP Peer Statistics
Total Peers : 2
EBGP Peers : 2 IBGP Peers : 0
RR Client : 0 EBGP Multihop : 0
Enabled : 2 Disabled : 0
* sw3.144 # di po 1,2
* sw3.145 # show log
04/25/2016 07:58:52.96 [VR 2] Peer 40.0.0.10 (0) has entered or left Established state, EST? 0, holdtime: 180, passive: 0
04/25/2016 07:58:52.96 [VR 2] Peer FSM State Deteriorated: Peer 40.0.0.10 (0), Established -> Idle, Input: 1
04/25/2016 07:58:52.95 Port 2 link down
04/25/2016 07:58:52.94 [VR 2] Peer 30.0.0.10 (0) has entered or left Established state, EST? 0, holdtime: 180, passive: 0
04/25/2016 07:58:52.94 [VR 2] Peer FSM State Deteriorated: Peer 30.0.0.10 (0), Established -> Idle, Input: 1
04/25/2016 07:58:52.93 Port 1 link down

A total of 6 log messages were displayed.
* sw3.146 #
* sw3.146 # en po 1,2
* sw3.147 # show bg ne

Peer AS Weight State InMsgs OutMsgs(InQ) Up/Down
-----------------------------------------------------------------------------------
Ee-- 30.0.0.10 10 1 ESTABLISHED 12017 12235 (0 ) 0:0:00:09
Ee-- 40.0.0.10 20 1 ESTABLISHED 12001 12334 (0 ) 0:0:00:09

Flags: (d) disabled, (e) enabled, (E) external peer, (I) internal peer
(m) EBGP multihop, (r) route reflector client

BGP Peer Statistics
Total Peers : 2
EBGP Peers : 2 IBGP Peers : 0
RR Client : 0 EBGP Multihop : 0
Enabled : 2 Disabled : 0
* sw3.148 # show log
04/25/2016 07:59:08.75 [VR 2] Peer 30.0.0.10 (0) has entered or left Established state, EST? 1, holdtime: 180, passive: 0
04/25/2016 07:59:08.31 [VR 2] Peer 40.0.0.10 (0) has entered or left Established state, EST? 1, holdtime: 180, passive: 0
04/25/2016 07:59:07.96 [VR 2] Peer FSM State Deteriorated: Peer 40.0.0.10 (0), OpenSent -> Active, Input: 8
04/25/2016 07:59:07.94 [VR 2] Peer FSM State Deteriorated: Peer 30.0.0.10 (0), OpenSent -> Active, Input: 8
04/25/2016 07:59:05.79 Port 2 link UP at speed 1 Gbps and full-duplex
04/25/2016 07:59:05.73 Port 1 link UP at speed 1 Gbps and full-duplex
04/25/2016 07:58:52.96 [VR 2] Peer 40.0.0.10 (0) has entered or left Established state, EST? 0, holdtime: 180, passive: 0
04/25/2016 07:58:52.96 [VR 2] Peer FSM State Deteriorated: Peer 40.0.0.10 (0), Established -> Idle, Input: 1
04/25/2016 07:58:52.95 Port 2 link down
04/25/2016 07:58:52.94 [VR 2] Peer 30.0.0.10 (0) has entered or left Established state, EST? 0, holdtime: 180, passive: 0
04/25/2016 07:58:52.94 [VR 2] Peer FSM State Deteriorated: Peer 30.0.0.10 (0), Established -> Idle, Input: 1
04/25/2016 07:58:52.93 Port 1 link down

A total of 12 log messages were displayed.
* sw3.149 #

Erik_Auerswald
Contributor II
Hi,

you need to configure a log filter:

configure log filter DefaultFilter add events BGP.NeighborMgr.PeerEstTrans
configure log filter DefaultFilter add events BGP.NeighborMgr.PeerFSMDegrade

See https://community.extremenetworks.com/extreme/topics/bgp-neighbor-fsm-state-monitoring .

Erik
GTM-P2G8KFN