1SNMP::Info::Layer2::HirUsscehrmaCnonn(t3rpimb)uted PerlSDNoMcPu:m:eInntfaot:i:oLnayer2::Hirschmann(3pm)
2
3
4
6 SNMP::Info::Layer2::Hirschamnn - SNMP Interface to L2 Hirschmann
7 Switches
8
10 Christophe COMTE
11
13 # Let SNMP::Info determine the correct subclass for you.
14 my $router = new SNMP::Info(
15 AutoSpecify => 1,
16 Debug => 1,
17 DestHost => 'myrouter',
18 Community => 'public',
19 Version => 2
20 )
21 or die "Can't connect to DestHost.\n";
22
23 my $class = $router->class();
24 print "SNMP::Info determined this device to fall under subclass : $class\n";
25
27 Subclass for Hirschmann L2 devices
28
29 Inherited Classes
30 SNMP::Info::Layer2
31
32 Required MIBs
33
34 Inherited Classes' MIBs
35 See "Required MIBs" in SNMP::Info::Layer2 for its own MIB
36 requirements.
37
39 These are methods that return scalar value from SNMP
40
41 Overrides
42 $device->vendor()
43 Returns 'hirschmann'
44
45 $device->os()
46 Returns 'hirschmann'
47
48 $device->os_ver()
49 Return os version
50
51 $device->mac()
52 Return Interface MAC addresse of the switch (on the CPU pseudo
53 interface).
54
55 $device->model()
56 Returns device model extracted from description
57
58 $device->serial()
59 Returns serial number
60
61 Globals imported from SNMP::Info::Layer2
62 See documentation in "GLOBALS" in SNMP::Info::Layer2 for details.
63
65 These are methods that return tables of information in the form of a
66 reference to a hash.
67
68 Table Methods imported from SNMP::Info::Layer2
69 See documentation in "TABLE METHODS" in SNMP::Info::Layer2 for details.
70
71
72
73perl v5.38.0 2023-09-04SNMP::Info::Layer2::Hirschmann(3pm)