These are methods that return tables of information in the form of a reference to a hash.
Overrides
$l3->interfaces()
Returns the map between SNMP Interface Identifier (iid) and physical port name.
Only returns those iids that have a description listed in $l3->i_description()
$l3->i_subinterfaces()
Returns reference to hash of arrays: key = "ifIndex", value = array of "ifIndex". These are the VLAN
subinterfaces ("l2vlan" type) for the parent ("ethernetCsmacd" type) interface.
Example:
my $interfaces = $l3->interfaces();
my $i_subs = $l3->i_subinterfaces();
foreach my $iid (sort keys %$interfaces) {
my $port = $interfaces->{$iid};
my $subs = join(',', sort(map {$interfaces->{$_}} @{$i_subs->{$iid}}));
print "Port: $port has subinterfaces: $subs\n";
}
$l3->i_name()
Returns reference to hash of iid to human set name.
Defaults to "ifName", but checks for an "ifAlias"
$l3->i_duplex()
Returns reference to hash of iid to current link duplex setting.
Maps $l3->el_index() to $l3->el_duplex, then culls out full,half, or auto and sets the map to that
value.
See SNMP::Info::EtherLike for the el_index() and el_duplex() methods.
IP-MIBArpCacheTable("ipNetToMediaTable")
$l3->at_index()
Returns reference to hash. Maps ARP table entries to Interface IIDs
("ipNetToMediaIfIndex")
If the device doesn't support "ipNetToMediaIfIndex", this will try the deprecated "atIfIndex".
$l3->at_paddr()
Returns reference to hash. Maps ARP table entries to MAC addresses.
("ipNetToMediaPhysAddress")
If the device doesn't support "ipNetToMediaPhysAddress", this will try the deprecated
"atPhysAddress".
$l3->at_netaddr()
Returns reference to hash. Maps ARP table entries to IP addresses.
("ipNetToMediaNetAddress")
If the device doesn't support "ipNetToMediaNetAddress", this will try the deprecated "atNetAddress".
ARPCacheEntries
The "atTable" has been deprecated since 1991. You should never need to use these methods. See
"ipNetToMediaTable" above.
$l3->old_at_index()
Returns reference to map of IID to Arp Cache Entry
("atIfIndex")
$l3->old_at_paddr()
Returns reference to hash of Arp Cache Entries to MAC address
("atPhysAddress")
$l3->old_at_netaddr()
Returns reference to hash of Arp Cache Entries to IP Address
("atNetAddress")
BGPPeerTable("bgpPeerTable")
$l3->bgp_peers()
Returns reference to hash of BGP peer to local IP address
("bgpPeerLocalAddr")
$l3->bgp_peer_id()
Returns reference to hash of BGP peer to BGP peer identifier
("bgpPeerIdentifier")
$l3->bgp_peer_state()
Returns reference to hash of BGP peer to BGP peer state
("bgpPeerState")
$l3->bgp_peer_as()
Returns reference to hash of BGP peer to BGP peer autonomous system number
("bgpPeerRemoteAs")
$l3->bgp_peer_addr()
Returns reference to hash of BGP peer to BGP peer IP address
("bgpPeerRemoteAddr")
$l3->bgp_peer_fsm_est_trans()
Returns reference to hash of BGP peer to the total number of times the BGP FSM transitioned into the
established state
("bgpPeerFsmEstablishedTransitions")
$l3->bgp_peer_in_tot_msgs()
Returns reference to hash of BGP peer to the total number of messages received from the remote peer
on this connection
("bgpPeerInTotalMessages")
$l3->bgp_peer_in_upd_el_time()
Returns reference to hash of BGP peer to the elapsed time in seconds since the last BGP UPDATE
message was received from the peer.
("bgpPeerInUpdateElapsedTime")
$l3->bgp_peer_in_upd()
Returns reference to hash of BGP peer to the number of BGP UPDATE messages received on this
connection
("bgpPeerInUpdates")
$l3->bgp_peer_out_tot_msgs()
Returns reference to hash of BGP peer to the total number of messages transmitted to the remote peer
on this connection
("bgpPeerOutTotalMessages")
$l3->bgp_peer_out_upd()
Returns reference to hash of BGP peer to the number of BGP UPDATE messages transmitted on this
connection
("bgpPeerOutUpdates")
OSPFInterfaceTable("ospfIfTable")
$l3->ospf_if_ip()
Returns reference to hash of OSPF interface IP addresses
("ospfIfIpAddress")
$l3->ospf_if_area()
Returns reference to hash of the OSPF area to which the interfaces connect
("ospfIfAreaId")
$l3->ospf_if_type()
Returns reference to hash of the OSPF interfaces' type
("ospfIfType")
$l3->ospf_if_hello()
Returns reference to hash of the OSPF interfaces' hello interval
("ospfIfHelloInterval")
$l3->ospf_if_dead()
Returns reference to hash of the OSPF interfaces' dead interval
("ospfIfRtrDeadInterval")
$l3->ospf_if_admin()
Returns reference to hash of the OSPF interfaces' administrative status
("ospfIfAdminStat")
$l3->ospf_if_state()
Returns reference to hash of the OSPF interfaces' state
("ospfIfState")
OSPFNeighborTable("ospfNbrTable")
$l3->ospf_peers()
Returns reference to hash of IP addresses the neighbor is using in its IP Source Addresses
("ospfNbrIpAddr")
$l3->ospf_peer_id()
Returns reference to hash of neighbor Router IDs
("ospfNbrRtrId")
$l3->ospf_peer_state()
Returns reference to hash of state of the relationship with the neighbor routers
("ospfNbrState")
IS-ISCircuitTable
$l3->isis_circ_if_idx()
Returns reference to hash of the interface index associated with the IS-IS circuit
("isisCircIfIndex")
$l3->isis_circ_admin()
Returns reference to hash of the IS-IS circuit's admin status
("isisCircAdminState")
$l3->isis_circ_type()
Returns reference to hash of the IS-IS circuit's type
("isisCircType")
$l3->isis_circ_level_type()
Returns reference to hash of the IS-IS circuit's level
("isisCircLevelType")
IS-ISAdjacencyTable
$l3->isis_adj_id()
Returns reference to hash of the peer id of adjacencies.
("isisISAdjNeighSysID")
$l3->isis_adj_type()
Returns reference to hash of the type of adjacencies (Level 1 Intermediate System, Level 2
Intermediate System, Level 1+2 Intermediate System, unknown)
("isisISAdjNeighSysType")
$l3->isis_adj_usage()
Returns reference to hash of the type of adjacencies in use (undefined, Level 1, Level 2, Level1+2)
("isisISAdjNeighUsage")
$l3->isis_adj_ip_type()
Returns reference to hash of type of address (IPv4, IPv6, etc) on adjacencies.
("isisISAdjIPAddrType")
$l3->isis_adj()
Returns reference to hash of addresses (IPv4, IPv6, etc) on adjacencies. Note this returns hash-
strings, for IPs, use $l3->isis_peers()
("isisISAdjIPAddrAddress")
$l3->isis_peers()
Returns reference to hash of addresses (IPv4, IPv6) on adjacencies. Convert hash strings from
isis_adj to proper IP (v4 and v6) formatting.
TableMethodsimportedfromSNMP::Info
See "USAGE" in SNMP::Info for details.
TableMethodsimportedfromSNMP::Info::Bridge
See "TABLE METHODS" in SNMP::Info::Bridge for details.
TableMethodsimportedfromSNMP::Info::EtherLike
See "TABLE METHODS" in SNMP::Info::EtherLike for details.
TableMethodsimportedfromSNMP::Info::Entity
See "TABLE METHODS" in SNMP::Info::Entity for details.
TableMethodsimportedfromSNMP::Info::PowerEthernet
See "TABLE METHODS" in SNMP::Info::PowerEthernet for details.
TableMethodsimportedfromSNMP::Info::IPv6
See "TABLE METHODS" in SNMP::Info::IPv6 for details.
TableMethodsimportedfromSNMP::Info::LLDP
See "TABLE METHODS" in SNMP::Info::LLDP for details.
TableMethodsimportedfromSNMP::Info::DocsisHE
See "TABLE METHODS" in SNMP::Info::DocsisHE for details.
TableMethodsimportedfromSNMP::Info::AdslLine
See "TABLE METHODS" in SNMP::Info::AdslLine for details.
perl v5.40.0 2024-11-09 SNMP::Info::Layer3(3pm)