1SNMP::Info::Layer3::C40U0s0e(r3pCmo)ntributed Perl DocumSeNnMtPa:t:iIonnfo::Layer3::C4000(3pm)
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 Inherited Classes
31 SNMP::Info::Layer3::CiscoSwitch
32 SNMP::Info::MAU
33
34 Required MIBs
35 Inherited Classes' MIBs
36 See "Required MIBs" in SNMP::Info::Layer3::CiscoSwitch for its own
37 MIB requirements.
38
39 See "Required MIBs" in SNMP::Info::MAU for its own MIB
40 requirements.
41
43 These are methods that return scalar value from SNMP
44
45 Overrides
46 $c4000->fan()
47 Returns fan status
48
49 Globals imported from SNMP::Info::Layer3::CiscoSwitch
50 See documentation in "GLOBALS" in SNMP::Info::Layer3::CiscoSwitch for
51 details.
52
53 Globals imported from SNMP::Info::MAU
54 See documentation in "GLOBALS" in SNMP::Info::MAU for details.
55
57 These are methods that return tables of information in the form of a
58 reference to a hash.
59
60 Overrides
61 $c4000->i_duplex()
62 Parses mau_index and mau_link to return the duplex information for
63 interfaces.
64
65 $c4000->i_duplex_admin()
66 Parses "mac_index","mau_autostat","mau_type_admin" in order to find
67 the admin duplex setting for all the interfaces.
68
69 Returns either (auto,full,half).
70
71 $c4000->i_speed_admin()
72 Returns administrative speed for interfaces.
73
74 $c4000->set_i_speed_admin(speed, ifIndex)
75 Sets port speed, must be supplied with speed and port "ifIndex".
76
77 Speed choices are '10', '100', '1000', 'auto'.
78
79 $c4000->set_i_duplex_admin(duplex, ifIndex)
80 Sets port duplex, must be supplied with duplex and port "ifIndex".
81
82 Duplex choices are 'auto', 'half', 'full'.
83
84 Table Methods imported from SNMP::Info::Layer3::CiscoSwitch
85 See documentation in "TABLE METHODS" in SNMP::Info::Layer3::CiscoSwitch
86 for details.
87
88 Table Methods imported from SNMP::Info::MAU
89 See documentation in "TABLE METHODS" in SNMP::Info::MAU for details.
90
91
92
93perl v5.38.0 2023-09-04 SNMP::Info::Layer3::C4000(3pm)