|
NAMESNMP::Info::SONMP - SNMP Interface to SynOptics Network Management Protocol (SONMP) AUTHOREric Miller SYNOPSIS my $sonmp = new SNMP::Info (
AutoSpecify => 1,
Debug => 1,
DestHost => 'router',
Community => 'public',
Version => 2
);
my $class = $sonmp->class();
print " Using device sub class : $class\n";
$hassonmp = $sonmp->hasSONMP() ? 'yes' : 'no';
# Print out a map of device ports with SONMP neighbors:
my $interfaces = $sonmp->interfaces();
my $sonmp_if = $sonmp->sonmp_if();
my $sonmp_ip = $sonmp->sonmp_ip();
my $sonmp_port = $sonmp->sonmp_port();
foreach my $sonmp_key (keys %$sonmp_ip){
my $iid = $sonmp_if->{$sonmp_key};
my $port = $interfaces->{$iid};
my $neighbor = $sonmp_ip->{$sonmp_key};
my $neighbor_port = $sonmp_port->{$sonmp_key};
print "Port : $port connected to $neighbor / $neighbor_port\n";
}
DESCRIPTIONSNMP::Info::SONMP is a subclass of SNMP::Info that provides an object oriented interface to the SynOptics Network Management Protocol (SONMP) information through SNMP. SONMP is a Layer 2 protocol that supplies topology information of devices that also speak SONMP, mostly switches and hubs. SONMP is implemented in SynOptics, Bay, Nortel, and Avaya devices. SONMP has been rebranded by Bay then Nortel and may be referred to by several different names, including Nortel Discovery Protocol (NDP). Create or use a device subclass that inherits this class. Do not use directly. Each device implements a subset of the global and cache entries. Check the return value to see if that data is held by the device. 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. Layer2 Topology info ("s5EnMsTopNmmTable")
Layer2 Topology info ("s5EnMsTopNmmEnhancedTable")
Common topology informationAll entries with port=0 are local and ignored.
|