1SNMP::Info::Layer3::C35U5s0e(r3pCmo)ntributed Perl DocumSeNnMtPa:t:iIonnfo::Layer3::C3550(3pm)
2
3
4
6 SNMP::Info::Layer3::C3550 - SNMP Interface to Cisco Catalyst 3550 Layer
7 2/3 Switches running IOS
8
10 Max Baker
11
13 # Let SNMP::Info determine the correct subclass for you.
14 my $c3550 = 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 = $c3550->class();
25 print "SNMP::Info determined this device to fall under subclass : $class\n";
26
28 Abstraction subclass for Cisco Catalyst 3550 Layer 2/3 Switches.
29
30 These devices run IOS but have some of the same characteristics as the
31 Catalyst WS-C family (5xxx,6xxx). For example, forwarding tables are
32 held in VLANs, and extended interface information is gleaned from
33 CISCO-SWITCH-MIB.
34
35 Inherited Classes
36 SNMP::Info::CiscoStack
37 SNMP::Info::Layer3::CiscoSwitch
38
39 Required MIBs
40 Inherited Classes' MIBs
41 See "Required MIBs" in SNMP::Info::CiscoStack for its own MIB
42 requirements.
43
44 See "Required MIBs" in SNMP::Info::Layer3::CiscoSwitch for its own
45 MIB requirements.
46
48 These are methods that return scalar value from SNMP
49
50 $c3550->vendor()
51 Returns 'cisco'
52
53 $c3550->model()
54 Will take the translated model number and try to format it better.
55
56 355048 -> 3550-48
57 355012G -> 3550-12G
58
59 $c3550->ports()
60 Tries to cull the number of ports from the model number.
61
62 Globals imported from SNMP::Info::CiscoStack
63 See documentation in "GLOBALS" in SNMP::Info::CiscoStack for details.
64
65 Globals imported from SNMP::Info::Layer3::CiscoSwitch
66 See documentation in "GLOBALS" in SNMP::Info::Layer3::CiscoSwitch for
67 details.
68
70 These are methods that return tables of information in the form of a
71 reference to a hash.
72
73 Overrides
74 $c3550->i_duplex()
75 Returns reference to hash of iid to current link duplex setting.
76
77 Software version 12.1(22)EA1a or greater returns duplex based upon
78 the result of $c3550->el_duplex(). Otherwise it uses the result of
79 the call to CiscoStack::i_duplex().
80
81 See SNMP::Info::EtherLike for el_duplex() method and
82 SNMP::Info::CiscoStack for its i_duplex() method.
83
84 $c3550->i_duplex_admin()
85 Returns reference to hash of iid to administrative duplex setting.
86
87 Software version 12.1(22)EA1a or greater returns duplex based upon
88 the result of $c3550->p_duplex(). Otherwise it uses the result of
89 the call to CiscoStack::i_duplex().
90
91 See SNMP::Info::CiscoStack for its i_duplex() and p_duplex()
92 methods.
93
94 $c3550->set_i_duplex_admin(duplex, ifIndex)
95 Sets port duplex, must be supplied with duplex and port "ifIndex".
96
97 Speed choices are 'auto', 'half', 'full'.
98
99 Crosses $c3550->p_port() with $c3550->p_duplex() to utilize port
100 "ifIndex".
101
102 Example:
103 my %if_map = reverse %{$c3550->interfaces()};
104 $c3550->set_i_duplex_admin('auto', $if_map{'FastEthernet0/1'})
105 or die "Couldn't change port duplex. ",$c3550->error(1);
106
107 Table Methods imported from SNMP::Info::CiscoStack
108 See documentation in "TABLE METHODS" in SNMP::Info::CiscoStack for
109 details.
110
111 Table Methods imported from SNMP::Info::Layer3::CiscoSwitch
112 See documentation in "TABLE METHODS" in SNMP::Info::Layer3::CiscoSwitch
113 for details.
114
115
116
117perl v5.38.0 2023-09-04 SNMP::Info::Layer3::C3550(3pm)