1SNMP::Info::Layer2::3CoUms(e3r)Contributed Perl DocumentSaNtMiPo:n:Info::Layer2::3Com(3)
2
3
4
6 SNMP::Info::Layer2::3Com - SNMP Interface to L2 3Com Switches
7
9 Max Kosmach
10
12 # Let SNMP::Info determine the correct subclass for you.
13 my $router = new SNMP::Info(
14 AutoSpecify => 1,
15 Debug => 1,
16 DestHost => 'myrouter',
17 Community => 'public',
18 Version => 1
19 )
20 or die "Can't connect to DestHost.\n";
21
22 my $class = $router->class();
23 print "SNMP::Info determined this device to fall under subclass : $class\n";
24
26 Subclass for 3Com L2 devices
27
28 Inherited Classes
29 SNMP::Info::Layer2
30
31 Required MIBs
32 A3Com-products-MIB
33 Inherited Classes' MIBs
34 See "Required MIBs" in SNMP::Info::Layer2 for its own MIB
35 requirements.
36
38 These are methods that return scalar value from SNMP
39
40 Overrides
41 $device->vendor()
42 Returns '3Com'
43
44 $device->os()
45 Returns '3Com'
46
47 $device->os_ver()
48 Return os version
49
50 $device->model()
51 Returns device model extracted from description
52
53 $device->serial()
54 Returns serial number
55
56 Globals imported from SNMP::Info::Layer2
57 See documentation in "GLOBALS" in SNMP::Info::Layer2 for details.
58
60 These are methods that return tables of information in the form of a
61 reference to a hash.
62
63 Table Methods imported from SNMP::Info::Layer2
64 See documentation in "TABLE METHODS" in SNMP::Info::Layer2 for details.
65
66
67
68perl v5.28.1 2019-04-04 SNMP::Info::Layer2::3Com(3)