1Info::Layer3::Arista(3)User Contributed Perl DocumentatioInnfo::Layer3::Arista(3)
2
3
4
6 SNMP::Info::Layer3::Arista - SNMP Interface to Arista Networks EOS
7
9 Bill Fenner
10
12 # Let SNMP::Info determine the correct subclass for you.
13 my $arista = new SNMP::Info(
14 AutoSpecify => 1,
15 Debug => 1,
16 # These arguments are passed directly to SNMP::Session
17 DestHost => 'myswitch',
18 Community => 'public',
19 Version => 2
20 )
21 or die "Can't connect to DestHost.\n";
22
23 my $class = $arista->class();
24 print "SNMP::Info determined this device to fall under subclass : $class\n";
25
27 Subclass for Arista Networks EOS-based devices
28
29 Inherited Classes
30 SNMP::Info::Layer3
31 SNMP::Info::MAU
32 SNMP::Info::LLDP
33
34 Required MIBs
35 ARISTA-PRODUCTS-MIB
36 Inherited Classes' MIBs
37 See "Required MIBs" in SNMP::Info::Layer3 for its own MIB
38 requirements.
39
40 See "Required MIBs" in SNMP::Info::MAU for its own MIB
41 requirements.
42
43 See "Required MIBs" in SNMP::Info::LLDP for its own MIB
44 requirements.
45
47 These are methods that return scalar values from SNMP
48
49 $arista->vendor()
50 Returns 'Arista Networks, Inc.'
51
52 $arista->hasCDP()
53 Returns whether LLDP is enabled.
54
55 $arista->model()
56 Tries to reference $arista->id() to one of the product MIBs listed
57 above
58
59 Removes 'arista' from the name for readability.
60
61 $arista->os()
62 Returns 'EOS'
63
64 $arista->os_ver()
65 Grabs the os version from "sysDescr"
66
67 Global Methods imported from SNMP::Info::Layer3
68 See documentation in "GLOBALS" in SNMP::Info::Layer3 for details.
69
70 Global Methods imported from SNMP::Info::MAU
71 See documentation in "GLOBALS" in SNMP::Info::MAU for details.
72
73 Global Methods imported from SNMP::Info::Layer3
74 See documentation in "GLOBALS" in SNMP::Info::Layer3 for details.
75
77 These are methods that return tables of information in the form of a
78 reference to a hash.
79
80 $arista->fw_mac()
81 Use the Q-BRIDGE-MIB instead of BRIDGE-MIB
82
83 $arista->fw_port()
84 Use the Q-BRIDGE-MIB instead of BRIDGE-MIB
85
86 $arista->c_id()
87 Returns LLDP information.
88
89 $arista->c_if()
90 Returns LLDP information.
91
92 $arista->c_ip()
93 Returns LLDP information.
94
95 $arista->c_platform()
96 Returns LLDP information.
97
98 $arista->c_port()
99 Returns LLDP information.
100
101 $arista->i_duplex_admin()
102 Returns info from MAU-MIB
103
104 $arista->i_speed_admin()
105 Returns info from MAU-MIB
106
107 Table Methods imported from SNMP::Info::Layer3
108 See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details.
109
110 Table Methods imported from SNMP::Info::MAU
111 See documentation in "TABLE METHODS" in SNMP::Info::MAU for details.
112
113 Table Methods imported from SNMP::Info::LLDP
114 See documentation in "TABLE METHODS" in SNMP::Info::LLDP for details.
115
116
117
118perl v5.12.0 2009-06-12 Info::Layer3::Arista(3)