1SNMP::Info::Layer3::CisUcsoeSrwiCtocnht(r3i)buted Perl DSoNcMuPm:e:nItnaftoi:o:nLayer3::CiscoSwitch(3)
2
3
4
6 SNMP::Info::Layer3::CiscoSwitch - Base class for L3 Cisco switches
7
9 Eric Miller
10
12 # Let SNMP::Info determine the correct subclass for you.
13 my $switch = 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 = $switch->class();
24 print "SNMP::Info determined this device to fall under subclass : $class\n";
25
27 Base subclass for Cisco Layer 2/3 Switches.
28
29 These devices have switch specific characteristics beyond those in
30 traditional routers covered by SNMP::Info::Layer3::Cisco. For example,
31 port security interface information from SNMP::Info::CiscoPortSecurity.
32
33 For speed or debugging purposes you can call the subclass directly, but
34 not after determining a more specific class using the method above.
35
36 my $swich = new SNMP::Info::Layer3::CiscoSwitch(...);
37
38 Inherited Classes
39 SNMP::Info::CiscoAgg
40 SNMP::Info::CiscoPortSecurity
41 SNMP::Info::Layer3::Cisco
42
43 Required MIBs
44 Inherited Classes' MIBs
45 See "Required MIBs" in SNMP::Info::CiscoAgg for its own MIB
46 requirements.
47
48 See "Required MIBs" in SNMP::Info::CiscoPortSecurity for its own
49 MIB requirements.
50
51 See "Required MIBs" in SNMP::Info::Layer3::Cisco for its own MIB
52 requirements.
53
55 These are methods that return scalar value from SNMP
56
57 $switch->cisco_comm_indexing()
58 Returns 1. Use vlan indexing.
59
60 Globals imported from SNMP::Info::CiscoPortSecurity
61 See documentation in "GLOBALS" in SNMP::Info::CiscoPortSecurity for
62 details.
63
64 Globals imported from SNMP::Info::Layer3::Cisco
65 See documentation in "GLOBALS" in SNMP::Info::Layer3::Cisco for
66 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::CiscoAgg
73 See documentation in "TABLE METHODS" in SNMP::Info::CiscoAgg for
74 details.
75
76 Table Methods imported from SNMP::Info::CiscoPortSecurity
77 See documentation in "TABLE METHODS" in SNMP::Info::CiscoPortSecurity
78 for details.
79
80 Table Methods imported from SNMP::Info::Layer3::Cisco
81 See documentation in "TABLE METHODS" in SNMP::Info::Layer3::Cisco for
82 details.
83
84
85
86perl v5.32.1 2021-01-27SNMP::Info::Layer3::CiscoSwitch(3)