Skip to content

Commit

Permalink
fix issue#1182 - capture BGP times less than a day (#1719)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbear authored Jun 21, 2024
1 parent 86f5d01 commit 6bbd860
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ Value ASN (\d+|\d+\.\d+)
Value REMOTE_ASN (\d+|\d+\.\d+)
Value LOCAL_ASN (\d+|\d+\.\d+)
Value BGP_STATE ([\(\)\w\s]+)
Value UPTIME (\w+)
Value UPTIME ([\w:]+)
Value SOURCE_IFACE (\w+[\/\d+]+)
Value CONN_ESTAB (\w+)
Value CONN_DROPPED (\w+)
Value LAST_RESET (\w+)
Value LAST_RESET (\S+)
Value LAST_RESET_REASON (.*)
Value LAST_PEER_RESET (\w+)
Value LAST_PEER_RESET (\S+)
Value LAST_PEER_RESET_REASON (.*)
Value List ADDR_FAMILY ([\w\s]+)
Value List TABLE_VERSION (\d+)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
BGP neighbor is 10.20.0.2, remote AS 64514, ebgp link, Peer index 1
BGP version 4, remote router ID 10.10.255.1
BGP state = Established, up for 20:03:51
Peer is directly attached, interface Ethernet1/6
Enable logging neighbor events
BFD live-detection is configured and enabled, state is Up
Last read 0.791823, hold time = 15, keepalive interval is 5 seconds
Last written 0.168722, keepalive timer expiry due 00:00:04
Received 653464 messages, 0 notifications, 0 bytes in queue
Sent 653851 messages, 0 notifications, 0 bytes in queue
Connections established 13, dropped 12
Last reset by us 00:05:01, due to bfd session down
Last reset by peer never, due to No error
Neighbor capabilities:
Dynamic capability: advertised (mp, refresh, gr) received (mp, refresh, gr)
Dynamic capability (old): advertised received
Route refresh capability (new): advertised received
Route refresh capability (old): advertised received
4-Byte AS capability: advertised received
Address family IPv4 Unicast: advertised received
Graceful Restart capability: advertised received
Graceful Restart Parameters:
Address families advertised to peer:
IPv4 Unicast
Address families received from peer:
IPv4 Unicast
Forwarding state preserved by peer for:
Restart time advertised to peer: 120 seconds
Stale time for routes advertised by peer: 300 seconds
Restart time advertised by peer: 120 seconds
Extended Next Hop Encoding Capability: advertised received
Receive IPv6 next hop encoding Capability for AF:
IPv4 Unicast
Message statistics:
Sent Rcvd
Opens: 13 13
Notifications: 0 0
Updates: 576 58
Keepalives: 653262 653391
Route Refresh: 0 2
Capability: 0 0
Total: 653851 653464
Total bytes: 12464192 12419276
Bytes in queue: 0 0
For address family: IPv4 Unicast
BGP table version 9374, neighbor version 9374
38 accepted paths consume 2128 bytes of memory
First Update Rcvd : 2d00h
Last Update Rcvd : 2d00h
59 sent paths
First Update Sent : 2d00h
Last Update Sent : 2d00h
Inbound soft reconfiguration allowed(always)
Inbound route-map configured is RM-GTT-IN, handle obtained
Outbound route-map configured is RM-GTT-OUT, handle obtained
Last End-of-RIB received 00:00:01 after session start
Local host: 10.20.0.1, Local port: 61055
Foreign host: 10.20.0.2, Foreign port: 179
fd = 52
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
parsed_sample:
- accepted_paths: "38"
addr_fam_adv: "IPv4 Unicast "
addr_fam_rcv: ""
addr_family:
- "IPv4 Unicast"
asn: "64514"
bgp_state: "Established"
capability_count_rcvd: "0"
capability_count_sent: "0"
conn_dropped: "12"
conn_estab: "13"
consumed_mem: "2128"
description: ""
ext_nh_cap: "advertised received"
fourbyte_cap: "advertised received "
graceful_cap: "advertised received"
inbound_routemap: "RM-GTT-IN"
keepalives_count_rcvd: "653391"
keepalives_count_sent: "653262"
last_peer_reset: "never"
last_peer_reset_reason: "No error"
last_reset: "00:05:01"
last_reset_reason: "bfd session down"
local_asn: ""
localhost_ip: "10.20.0.1"
localhost_port: "61055"
nei_table_version:
- "9374"
neighbor: "10.20.0.2"
notifications_count_rcvd: "0"
notifications_count_sent: "0"
opens_count_rcvd: "13"
opens_count_sent: "13"
outbound_routemap: "RM-GTT-OUT"
peer_group: ""
remote_asn: "64514"
remote_ip: "10.20.0.2"
remote_port: "179"
restart_time_adv: "120"
restart_time_rcv: "120"
route_refresh_count_rcvd: "2"
route_refresh_count_sent: "0"
rr_new_cap: "advertised received "
rr_old_cap: "advertised received "
sent_paths: "59"
source_iface: "Ethernet1/6"
stale_time: "300"
table_version:
- "9374"
total_bytes_count_rcvd: "12419276"
total_bytes_count_sent: "12464192"
total_bytes_rcvd_queue: "0"
total_bytes_send_queue: "0"
total_mess_count_rcvd: "653464"
total_mess_count_sent: "653851"
updates_count_rcvd: "58"
updates_count_sent: "576"
uptime: "20:03:51"
vrf: ""
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ parsed_sample:
inbound_routemap: "RM-GTT-IN"
keepalives_count_rcvd: "653391"
keepalives_count_sent: "653262"
local_asn: ""
last_peer_reset: "never"
last_peer_reset_reason: "No error"
last_reset: "2d00h"
last_reset_reason: "bfd session down"
local_asn: ""
localhost_ip: "10.20.0.1"
localhost_port: "61055"
nei_table_version:
Expand Down

0 comments on commit 6bbd860

Please sign in to comment.