SNMP::Info::AMAP(3pm) | User Contributed Perl Documentation | SNMP::Info::AMAP(3pm) |
SNMP::Info::AMAP - SNMP Interface to Alcatel Mapping Adjacency Protocol (AMAP)
Eric Miller
my $amap = new SNMP::Info ( AutoSpecify => 1, Debug => 1, DestHost => 'router', Community => 'public', Version => 2 ); my $class = $amap->class(); print " Using device sub class : $class\n"; $hasamap = $amap->hasAMAP() ? 'yes' : 'no'; # Print out a map of device ports with AMAP neighbors: my $interfaces = $amap->interfaces(); my $amap_if = $amap->amap_if(); my $amap_ip = $amap->amap_ip(); my $amap_port = $amap->amap_port(); foreach my $amap_key (keys %$amap_ip){ my $iid = $amap_if->{$amap_key}; my $port = $interfaces->{$iid}; my $neighbor = $amap_ip->{$amap_key}; my $neighbor_port = $amap_port->{$amap_key}; print "Port : $port connected to $neighbor / $neighbor_port\n"; }
SNMP::Info::AMAP is a subclass of SNMP::Info that provides an object oriented interface to Alcatel Mapping Adjacency Protocol (AMAP) information through SNMP.
AMAP is a Layer 2 protocol that allows a network device to advertise its identity and capabilities on the local network providing topology information.
Create or use a device subclass that inherits this class. Do not use directly.
None.
These are methods that return scalar values from SNMP
These are methods that return tables of information in the form of a reference to a hash.
2023-09-30 | perl v5.36.0 |