1SNMP::Info::Layer3::C40U0s0e(r3)Contributed Perl DocumenStNaMtPi:o:nInfo::Layer3::C4000(3)
2
3
4
6 SNMP::Info::Layer3::C4000 - SNMP Interface to Cisco Catalyst 4000 Layer
7 2/3 Switches running IOS
8
10 Bill Fenner
11
13 # Let SNMP::Info determine the correct subclass for you.
14 my $c4000 = new SNMP::Info(
15 AutoSpecify => 1,
16 Debug => 1,
17 # These arguments are passed directly to SNMP::Session
18 DestHost => 'myswitch',
19 Community => 'public',
20 Version => 2
21 )
22 or die "Can't connect to DestHost.\n";
23
24 my $class = $c4000->class();
25 print "SNMP::Info determined this device to fall under subclass : $class\n";
26
28 Abstraction subclass for Cisco Catalyst 4000 Layer 2/3 Switches.
29
30 For speed or debugging purposes you can call the subclass directly, but
31 not after determining a more specific class using the method above.
32
33 my $c4000 = new SNMP::Info::Layer3::C4000(...);
34
35 Inherited Classes
36 SNMP::Info::Layer3::CiscoSwitch
37 SNMP::Info::MAU
38
39 Required MIBs
40 Inherited Classes' MIBs
41 See "Required MIBs" in SNMP::Info::Layer3::CiscoSwitch for its own
42 MIB requirements.
43
44 See "Required MIBs" in SNMP::Info::MAU for its own MIB
45 requirements.
46
48 These are methods that return scalar value from SNMP
49
50 Overrides
51 $c4000->fan()
52 Returns fan status
53
54 Globals imported from SNMP::Info::Layer3::CiscoSwitch
55 See documentation in "GLOBALS" in SNMP::Info::Layer3::CiscoSwitch for
56 details.
57
58 Globals imported from SNMP::Info::MAU
59 See documentation in "GLOBALS" in SNMP::Info::MAU for details.
60
62 These are methods that return tables of information in the form of a
63 reference to a hash.
64
65 Overrides
66 $c4000->i_duplex()
67 Parses mau_index and mau_link to return the duplex information for
68 interfaces.
69
70 $c4000->i_duplex_admin()
71 Parses "mac_index","mau_autostat","mau_type_admin" in order to find
72 the admin duplex setting for all the interfaces.
73
74 Returns either (auto,full,half).
75
76 $c4000->i_speed_admin()
77 Returns administrative speed for interfaces.
78
79 $c4000->set_i_speed_admin(speed, ifIndex)
80 Sets port speed, must be supplied with speed and port "ifIndex".
81
82 Speed choices are '10', '100', '1000', 'auto'.
83
84 $c4000->set_i_duplex_admin(duplex, ifIndex)
85 Sets port duplex, must be supplied with duplex and port "ifIndex".
86
87 Duplex choices are 'auto', 'half', 'full'.
88
89 Table Methods imported from SNMP::Info::Layer3::CiscoSwitch
90 See documentation in "TABLE METHODS" in SNMP::Info::Layer3::CiscoSwitch
91 for details.
92
93 Table Methods imported from SNMP::Info::MAU
94 See documentation in "TABLE METHODS" in SNMP::Info::MAU for details.
95
96
97
98perl v5.28.1 2019-04-04 SNMP::Info::Layer3::C4000(3)