1SNMP::Info::Layer3::WhiUtseerrabCbointt(r3i)buted Perl DSoNcMuPm:e:nItnaftoi:o:nLayer3::Whiterabbit(3)
2
3
4
6 SNMP::Info::Layer3::Whiterabbit - SNMP Interface to Whiterabbit
7 Switches
8
10 Christoph Handel
11
13 # Let SNMP::Info determine the correct subclass for you.
14 my $whiterabbit = new SNMP::Info(
15 AutoSpecify => 1,
16 Debug => 1,
17 DestHost => 'myswitch',
18 Community => 'public',
19 Version => 2
20 )
21 or die "Can't connect to DestHost.\n";
22
23 my $class = $whiterabbit->class();
24 print "SNMP::Info determined this device to fall under subclass : $class\n";
25
27 Provides abstraction to the configuration information obtainable from a
28 Whiterabbit Switch via SNMP.
29
30 Inherited Classes
31 SNMP::Info::Layer3
32 SNMP::Info::MAU
33
34 Required MIBs
35 WR-SWITCH-MIB
36 WRS-PRODUCTS-MIB
37
38 <https://github.com/GSI-CS-CO/wrs_mibs.git>
39
41 These are methods that return scalar value from SNMP
42
43 $whiterabbit->layers()
44 Overwrite snmp value, we support 1-3
45
46 $whiterabbit->os()
47 staticly returns whiterabbit
48
49 $whiterabbit->vendor()
50 return manufacturer as read from device. e.g. seven solutions,
51 creotech, etc.
52
53 $whiterabbit->model()
54 as returned by mib. no meaningful translation
55
56 $whiterabbit->mac()
57 use the dot1dBaseBridgeAddress
58
59 $whiterabbit->os_ver()
60 including git hash
61
62 Globals imported from SNMP::Info::Layer3
63 See documentation in "GLOBALS" in SNMP::Info::Layer3 for details.
64
65 Globals imported from SNMP::Info::MAU
66 See documentation in "GLOBALS" in SNMP::Info::MAU for details.
67
69 These are methods that return tables of information in the form of a
70 reference to a hash.
71
72 Table Methods imported from SNMP::Info::Layer3
73 See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details.
74
75 Table Methods imported from SNMP::Info::MAU
76 See documentation in "TABLE METHODS" in SNMP::Info::MAU for details.
77
78
79
80perl v5.34.0 2022-01-21SNMP::Info::Layer3::Whiterabbit(3)