++ed by:
KEEDI ABRAXXA INPHOBIA
2 non-PAUSE users
Author image Oliver Gorwits
and 1 contributors

NAME

SNMP::Info::CiscoBGP - SNMP Interface to Cisco's BGP MIBs

AUTHOR

Alexander Hartmaier

SYNOPSIS

# Let SNMP::Info determine the correct subclass for you. my $device = SNMP::Info->( AutoSpecify => 1, Debug => 1, DestHost => 'myswitch', Community => 'public', Version => 2 ) or die "Can't connect to DestHost.\n";

my $remoteas_for_index = $device->cisco_bgp_peer2_remoteas;

for my $index (keys $remoteas_for_index->%*) { my ($type, $addrlength, $ip) = $device->parse_cisco_bgp_peer2_entry_index($index); printf('remote: %-39s type: %-4s remote AS: %5d', $ip, $type, $remoteas_for_index->{$index}); }

DESCRIPTION

SNMP::Info::CiscoBGP is a subclass of SNMP::Info that provides information about a cisco device's BGP configuration and state.

Use or create in a subclass of SNMP::Info. Do not use directly.

Inherited Classes

none.

Required MIBs

CISCO-BGP4-MIB

GLOBALS

    None

TABLE METHODS

Cisco BGP Peer 2 Table (cbgpPeer2Table)

This table contains, one entry per BGP peer, information about the connections with BGP peers.

cisco_bgp_peer2_state (cbgpPeer2State)
cisco_bgp_peer2_adminstatus (cbgpPeer2AdminStatus)
cisco_bgp_peer2_localaddr (cbgpPeer2LocalAddr)
cisco_bgp_peer2_localport (cbgpPeer2LocalPort)
cisco_bgp_peer2_localas (cbgpPeer2LocalAs)
cisco_bgp_peer2_localidentifier (cbgpPeer2LocalIdentifier)
cisco_bgp_peer2_remoteport (cbgpPeer2RemotePort)
cisco_bgp_peer2_remoteas (cbgpPeer2RemoteAs)
cisco_bgp_peer2_remoteidentifier (cbgpPeer2RemoteIdentifier)
cisco_bgp_peer2_inupdates (cbgpPeer2InUpdates)
cisco_bgp_peer2_outupdates (cbgpPeer2OutUpdates)
cisco_bgp_peer2_intotalmessages (cbgpPeer2InTotalMessages)
cisco_bgp_peer2_outtotalmessages (cbgpPeer2OutTotalMessages)
cisco_bgp_peer2_lasterror (cbgpPeer2LastError)
cisco_bgp_peer2_fsmestablishedtransitions (cbgpPeer2FsmEstablishedTransitions)
cisco_bgp_peer2_fsmestablishedtime (cbgpPeer2FsmEstablishedTime)
cisco_bgp_peer2_connectretryinterval (cbgpPeer2ConnectRetryInterval)
cisco_bgp_peer2_holdtime (cbgpPeer2HoldTime)
cisco_bgp_peer2_keepalive (cbgpPeer2KeepAlive)
cisco_bgp_peer2_holdtimeconfigured (cbgpPeer2HoldTimeConfigured)
cisco_bgp_peer2_keepaliveconfigured (cbgpPeer2KeepAliveConfigured)
cisco_bgp_peer2_minasoriginationinterval (cbgpPeer2MinASOriginationInterval)
cisco_bgp_peer2_inupdatelapsedtime (cbgpPeer2InUpdateElapsedTime)
cisco_bgp_peer2_lasterrortxt (cbgpPeer2LastErrorTxt)
cisco_bgp_peer2_prevstate (cbgpPeer2PrevState)

Cisco BGP Peer 2 Address Family Prefix Table (cbgpPeer2AddrFamilyPrefixTable)

This table contains prefix related information related to address families supported by a peer.

cisco_bgp_peer2_acceptedprefixes (cbgpPeer2AcceptedPrefixes)
cisco_bgp_peer2_deniedprefixes (cbgpPeer2DeniedPrefixes)
cisco_bgp_peer2_prefixadminlimit (cbgpPeer2PrefixAdminLimit)
cisco_bgp_peer2_prefixthreshold (cbgpPeer2PrefixThreshold)
cisco_bgp_peer2_prefixclearthreshold (cbgpPeer2PrefixClearThreshold)
cisco_bgp_peer2_advertisedprefixes (cbgpPeer2AdvertisedPrefixes)
cisco_bgp_peer2_suppressedprefixes (cbgpPeer2SuppressedPrefixes)
cisco_bgp_peer2_withdrawnprefixes (cbgpPeer2WithdrawnPrefixes)

METHODS

parse_cisco_bgp_peer2_entry_index

Takes a cbgpPeer2Entry index as returned by all methods of the Cisco BGP Peer 2 Table methods.

Returns a list of type (numeric, cbgpPeer2Type), address length (in bytes: 4 for IPv4, 16 for IPv6) and the remote IP address as string.