1SNMP::Info::EDP(3pm) User Contributed Perl Documentation SNMP::Info::EDP(3pm)
2
3
4
6 SNMP::Info::EDP - SNMP Interface to the Extreme Discovery Protocol
7 (EDP)
8
10 Eric Miller
11
13 my $edp = new SNMP::Info (
14 AutoSpecify => 1,
15 Debug => 1,
16 DestHost => 'router',
17 Community => 'public',
18 Version => 2
19 );
20
21 my $class = $edp->class();
22 print " Using device sub class : $class\n";
23
24 $hasedp = $edp->hasEDP() ? 'yes' : 'no';
25
26 # Print out a map of device ports with EDP neighbors:
27 my $interfaces = $edp->interfaces();
28 my $edp_if = $edp->edp_if();
29 my $edp_ip = $edp->edp_ip();
30 my $edp_port = $edp->edp_port();
31
32 foreach my $edp_key (keys %$edp_ip){
33 my $iid = $edp_if->{$edp_key};
34 my $port = $interfaces->{$iid};
35 my $neighbor = $edp_ip->{$edp_key};
36 my $neighbor_port = $edp_port->{$edp_key};
37 print "Port : $port connected to $neighbor / $neighbor_port\n";
38 }
39
41 SNMP::Info::EDP is a subclass of SNMP::Info that provides an object
42 oriented interface to EDP information through SNMP.
43
44 EDP is a Layer 2 protocol that allows a network device to advertise its
45 identity and capabilities on the local network providing topology
46 information.
47
48 Create or use a device subclass that inherits this class. Do not use
49 directly.
50
51 Inherited Classes
52 None.
53
54 Required MIBs
55 EXTREME-EDP-MIB
56
58 These are methods that return scalar values from SNMP
59
60 $edp->hasEDP()
61 Is EDP active on this device?
62
64 These are methods that return tables of information in the form of a
65 reference to a hash.
66
67 $edp->edp_id()
68 Returns the string value used to identify the chassis component
69 associated with the remote system.
70
71 ("extremeEdpNeighborName")
72
73 $edp->edp_if()
74 Returns the mapping to the SNMP Interface Table.
75
76 $edp->edp_ip()
77 Returns remote IPv4 address.
78
79 $edp->edp_port()
80 Returns remote port ID
81
82 $edp->edp_ver()
83 Returns the operating system version of the remote system.
84
85 Nulls are removed before the value is returned.
86
87 ("extremeEdpNeighborSoftwareVersion")
88
89
90
91perl v5.38.0 2023-09-04 SNMP::Info::EDP(3pm)