1SNMP::Info::CiscoBGP(3)User Contributed Perl DocumentatioSnNMP::Info::CiscoBGP(3)
2
3
4
6 SNMP::Info::CiscoBGP - SNMP Interface to Cisco's BGP MIBs
7
9 Alexander Hartmaier
10
12 # Let SNMP::Info determine the correct subclass for you. my $device =
13 SNMP::Info->(
14 AutoSpecify => 1,
15 Debug => 1,
16 DestHost => 'myswitch',
17 Community => 'public',
18 Version => 2 ) or die "Can't connect to DestHost.\n";
19
20 my $remoteas_for_index = $device->cisco_bgp_peer2_remoteas;
21
22 for my $index (keys $remoteas_for_index->%*) {
23 my ($type, $addrlength, $ip) =
24 $device->parse_cisco_bgp_peer2_entry_index($index);
25 printf('remote: %-39s type: %-4s remote AS: %5d',
26 $ip, $type, $remoteas_for_index->{$index}); }
27
29 SNMP::Info::CiscoBGP is a subclass of SNMP::Info that provides
30 information about a cisco device's BGP configuration and state.
31
32 Use or create in a subclass of SNMP::Info. Do not use directly.
33
34 Inherited Classes
35 none.
36
37 Required MIBs
38 CISCO-BGP4-MIB
39
41 None
42
44 Cisco BGP Peer 2 Table (cbgpPeer2Table)
45 This table contains, one entry per BGP peer, information about the
46 connections with BGP peers.
47
48 cisco_bgp_peer2_state (cbgpPeer2State)
49 cisco_bgp_peer2_adminstatus (cbgpPeer2AdminStatus)
50 cisco_bgp_peer2_localaddr (cbgpPeer2LocalAddr)
51 cisco_bgp_peer2_localport (cbgpPeer2LocalPort)
52 cisco_bgp_peer2_localas (cbgpPeer2LocalAs)
53 cisco_bgp_peer2_localidentifier (cbgpPeer2LocalIdentifier)
54 cisco_bgp_peer2_remoteport (cbgpPeer2RemotePort)
55 cisco_bgp_peer2_remoteas (cbgpPeer2RemoteAs)
56 cisco_bgp_peer2_remoteidentifier (cbgpPeer2RemoteIdentifier)
57 cisco_bgp_peer2_inupdates (cbgpPeer2InUpdates)
58 cisco_bgp_peer2_outupdates (cbgpPeer2OutUpdates)
59 cisco_bgp_peer2_intotalmessages (cbgpPeer2InTotalMessages)
60 cisco_bgp_peer2_outtotalmessages (cbgpPeer2OutTotalMessages)
61 cisco_bgp_peer2_lasterror (cbgpPeer2LastError)
62 cisco_bgp_peer2_fsmestablishedtransitions
63 (cbgpPeer2FsmEstablishedTransitions)
64 cisco_bgp_peer2_fsmestablishedtime (cbgpPeer2FsmEstablishedTime)
65 cisco_bgp_peer2_connectretryinterval (cbgpPeer2ConnectRetryInterval)
66 cisco_bgp_peer2_holdtime (cbgpPeer2HoldTime)
67 cisco_bgp_peer2_keepalive (cbgpPeer2KeepAlive)
68 cisco_bgp_peer2_holdtimeconfigured (cbgpPeer2HoldTimeConfigured)
69 cisco_bgp_peer2_keepaliveconfigured (cbgpPeer2KeepAliveConfigured)
70 cisco_bgp_peer2_minasoriginationinterval
71 (cbgpPeer2MinASOriginationInterval)
72 cisco_bgp_peer2_inupdatelapsedtime (cbgpPeer2InUpdateElapsedTime)
73 cisco_bgp_peer2_lasterrortxt (cbgpPeer2LastErrorTxt)
74 cisco_bgp_peer2_prevstate (cbgpPeer2PrevState)
75
76 Cisco BGP Peer 2 Address Family Prefix Table
77 (cbgpPeer2AddrFamilyPrefixTable)
78 This table contains prefix related information related to address
79 families supported by a peer.
80
81 cisco_bgp_peer2_acceptedprefixes (cbgpPeer2AcceptedPrefixes)
82 cisco_bgp_peer2_deniedprefixes (cbgpPeer2DeniedPrefixes)
83 cisco_bgp_peer2_prefixadminlimit (cbgpPeer2PrefixAdminLimit)
84 cisco_bgp_peer2_prefixthreshold (cbgpPeer2PrefixThreshold)
85 cisco_bgp_peer2_prefixclearthreshold (cbgpPeer2PrefixClearThreshold)
86 cisco_bgp_peer2_advertisedprefixes (cbgpPeer2AdvertisedPrefixes)
87 cisco_bgp_peer2_suppressedprefixes (cbgpPeer2SuppressedPrefixes)
88 cisco_bgp_peer2_withdrawnprefixes (cbgpPeer2WithdrawnPrefixes)
89
90 METHODS
91 parse_cisco_bgp_peer2_entry_index
92 Takes a cbgpPeer2Entry index as returned by all methods of the
93 Cisco BGP Peer 2 Table methods.
94
95 Returns a list of type (numeric, cbgpPeer2Type), address length (in
96 bytes: 4 for IPv4, 16 for IPv6) and the remote IP address as
97 string.
98
99
100
101perl v5.36.0 2022-07-22 SNMP::Info::CiscoBGP(3)