SNMP::Info::EDP(3pm) | User Contributed Perl Documentation | SNMP::Info::EDP(3pm) |
SNMP::Info::EDP - SNMP Interface to the Extreme Discovery Protocol (EDP)
Eric Miller
my $edp = new SNMP::Info ( AutoSpecify => 1, Debug => 1, DestHost => 'router', Community => 'public', Version => 2 ); my $class = $edp->class(); print " Using device sub class : $class\n"; $hasedp = $edp->hasEDP() ? 'yes' : 'no'; # Print out a map of device ports with EDP neighbors: my $interfaces = $edp->interfaces(); my $edp_if = $edp->edp_if(); my $edp_ip = $edp->edp_ip(); my $edp_port = $edp->edp_port(); foreach my $edp_key (keys %$edp_ip){ my $iid = $edp_if->{$edp_key}; my $port = $interfaces->{$iid}; my $neighbor = $edp_ip->{$edp_key}; my $neighbor_port = $edp_port->{$edp_key}; print "Port : $port connected to $neighbor / $neighbor_port\n"; }
SNMP::Info::EDP is a subclass of SNMP::Info that provides an object oriented interface to EDP information through SNMP.
EDP 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.
("extremeEdpNeighborName")
Nulls are removed before the value is returned.
("extremeEdpNeighborSoftwareVersion")
2023-09-30 | perl v5.36.0 |