1SNMP::Info::Layer3::C35U5s0e(r3)Contributed Perl DocumenStNaMtPi:o:nInfo::Layer3::C3550(3)
2
3
4

NAME

6       SNMP::Info::Layer3::C3550 - SNMP Interface to Cisco Catalyst 3550 Layer
7       2/3 Switches running IOS
8

AUTHOR

10       Max Baker
11

SYNOPSIS

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

DESCRIPTION

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       For speed or debugging purposes you can call the subclass directly, but
36       not after determining a more specific class using the method above.
37
38        my $c3550 = new SNMP::Info::Layer3::C3550(...);
39
40   Inherited Classes
41       SNMP::Info::CiscoStack
42       SNMP::Info::Layer3::CiscoSwitch
43
44   Required MIBs
45       Inherited Classes' MIBs
46           See "Required MIBs" in SNMP::Info::CiscoStack for its own MIB
47           requirements.
48
49           See "Required MIBs" in SNMP::Info::Layer3::CiscoSwitch for its own
50           MIB requirements.
51

GLOBALS

53       These are methods that return scalar value from SNMP
54
55       $c3550->vendor()
56           Returns 'cisco'
57
58       $c3550->model()
59           Will take the translated model number and try to format it better.
60
61            355048 -> 3550-48
62            355012G -> 3550-12G
63
64       $c3550->ports()
65           Tries to cull the number of ports from the model number.
66
67   Globals imported from SNMP::Info::CiscoStack
68       See documentation in "GLOBALS" in SNMP::Info::CiscoStack for details.
69
70   Globals imported from SNMP::Info::Layer3::CiscoSwitch
71       See documentation in "GLOBALS" in SNMP::Info::Layer3::CiscoSwitch for
72       details.
73

TABLE METHODS

75       These are methods that return tables of information in the form of a
76       reference to a hash.
77
78   Overrides
79       $c3550->i_duplex()
80           Returns reference to hash of iid to current link duplex setting.
81
82           Software version 12.1(22)EA1a or greater returns duplex based upon
83           the result of $c3550->el_duplex().  Otherwise it uses the result of
84           the call to CiscoStack::i_duplex().
85
86           See SNMP::Info::Etherlike for el_duplex() method and
87           SNMP::Info::CiscoStack for its i_duplex() method.
88
89       $c3550->i_duplex_admin()
90           Returns reference to hash of iid to administrative duplex setting.
91
92           Software version 12.1(22)EA1a or greater returns duplex based upon
93           the result of $c3550->p_duplex().  Otherwise it uses the result of
94           the call to CiscoStack::i_duplex().
95
96           See SNMP::Info::CiscoStack for its i_duplex() and p_duplex()
97           methods.
98
99       $c3550->set_i_duplex_admin(duplex, ifIndex)
100           Sets port duplex, must be supplied with duplex and port "ifIndex".
101
102           Speed choices are 'auto', 'half', 'full'.
103
104           Crosses $c3550->p_port() with $c3550->p_duplex() to utilize port
105           "ifIndex".
106
107               Example:
108               my %if_map = reverse %{$c3550->interfaces()};
109               $c3550->set_i_duplex_admin('auto', $if_map{'FastEthernet0/1'})
110                   or die "Couldn't change port duplex. ",$c3550->error(1);
111
112   Table Methods imported from SNMP::Info::CiscoStack
113       See documentation in "TABLE METHODS" in SNMP::Info::CiscoStack for
114       details.
115
116   Table Methods imported from SNMP::Info::Layer3::CiscoSwitch
117       See documentation in "TABLE METHODS" in SNMP::Info::Layer3::CiscoSwitch
118       for details.
119
120
121
122perl v5.28.1                      2019-04-04      SNMP::Info::Layer3::C3550(3)
Impressum