![]() |
![]()
| ![]() |
![]()
NAMESNMP::Info::AMAP - SNMP Interface to Alcatel Mapping Adjacency Protocol (AMAP) AUTHOREric Miller SYNOPSISmy $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"; } DESCRIPTIONSNMP::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. Inherited ClassesNone. Required MIBsGLOBALSThese are methods that return scalar values from SNMP
TABLE METHODSThese are methods that return tables of information in the form of a reference to a hash.
|