1Info::Layer2::Netgear(3U)ser Contributed Perl DocumentatiIonnfo::Layer2::Netgear(3)
2
3
4
6 SNMP::Info::Layer2::Netgear - SNMP Interface to Netgear switches
7
9 Bill Fenner and Zoltan Erszenyi
10
12 # Let SNMP::Info determine the correct subclass for you.
13 my $netgear = new SNMP::Info(
14 AutoSpecify => 1,
15 Debug => 1,
16 DestHost => 'myswitch',
17 Community => 'public',
18 Version => 2
19 )
20 or die "Can't connect to DestHost.\n";
21
22 my $class = $netgear->class();
23 print "SNMP::Info determined this device to fall under subclass : $class\n";
24
26 Provides abstraction to the configuration information obtainable from a
27 Netgear device through SNMP. See inherited classes' documentation for
28 inherited methods.
29
30 Inherited Classes
31 SNMP::Info::Layer2
32
33 Required MIBs
34 Inherited Classes' MIBs
35 MIBs listed in "Required MIBs" in SNMP::Info::Layer2 and its
36 inherited classes.
37
39 These are methods that return scalar value from SNMP
40
41 Overrides
42 $netgear->vendor()
43 Returns 'netgear'
44
45 $netgear->os()
46 Returns 'netgear'
47
48 $netgear->model()
49 Returns description()
50
51 Global Methods imported from SNMP::Info::Layer2
52 See documentation in "GLOBALS" in SNMP::Info::Layer2 for details.
53
55 These are methods that return tables of information in the form of a
56 reference to a hash.
57
58 Overrides
59 $netgear->fw_mac()
60 Returns reference to hash of forwarding table MAC Addresses.
61
62 Some devices don't implement the "BRIDGE-MIB" forwarding table, so
63 we use the "Q-BRIDGE-MIB" forwarding table. Fall back to the
64 "BRIDGE-MIB" if "Q-BRIDGE-MIB" doesn't return anything.
65
66 $netgear->fw_port()
67 Returns reference to hash of forwarding table entries port
68 interface identifier (iid)
69
70 Some devices don't implement the "BRIDGE-MIB" forwarding table, so
71 we use the "Q-BRIDGE-MIB" forwarding table. Fall back to the
72 "BRIDGE-MIB" if "Q-BRIDGE-MIB" doesn't return anything.
73
74 Table Methods imported from SNMP::Info::Layer2
75 See documentation in "TABLE METHODS" in SNMP::Info::Layer2 for details.
76
77
78
79perl v5.12.0 2009-06-12 Info::Layer2::Netgear(3)