I use SNMP successfully to manage 2900,3500, and 2950 series
switches. With the 3550 it is different for port speed/duplex,
and it doesn't seem to work the way I'd expect. Any guidances
would be appreciated.
The 2900,3500,2950 use the CISCO-C2900-MIB while
the 3550 uses the CISCO-STACK-MIB
I'm keeping details of this problem (and others) here:
http://www.freebsd.uwaterloo.ca/twik...speed_dup lex
an extract of which is here:
With the 3550 I cannot determine whether a port is hardcoded or auto,
(unless the link is down). Furthermore, setting the speed/duplex via snmp
does not appear to go into the permanent switch config (see below)
Example:
CISCO-STACK-MIB:
ortAdminSpeed.1.42 INTEGER: s100000000(100000000)
auto/auto up
CISCO-STACK-MIB:
ortAdminSpeed.1.43 INTEGER: autoDetect(1) auto/auto
down
CISCO-STACK-MIB:
ortAdminSpeed.1.44 INTEGER: s100000000(100000000)
100/full down
CISCO-STACK-MIB:
ortDuplex.1.42 INTEGER: full(2) auto/auto up
CISCO-STACK-MIB:
ortDuplex.1.43 INTEGER: auto(4) auto/auto
down
CISCO-STACK-MIB:
ortDuplex.1.44 INTEGER: full(2) 100/full
down
Port 43 is auto/auto and the link is down, and auto/auto can be correctly
identified through snmp.
Port 42 is auto/auto, and the link is up. It cannot be distinguished from
port 44 which is hardcoded 100/full.
C2900 had 2 separate oids:
CISCO-C2900-MIB::c2900PortDuplexState
CISCO-C2900-MIB::c2900PortDuplexStatus
but the STACK MIB only has CISCO-STACK-MIB:
ortDuplex (ie no separate
State and Status)
As for setting, speed/duplex, the following example settings 100/full
works:
CISCO-STACK-MIB:
ortAdminSpeed.1.13 i 100000000
CISCO-STACK-MIB:
ortDuplex.1.13 i 2
and can be read back with SNMP, but if one logs into the switch and looks
at the running-config, the port does not show "speed 100" and "duplex
full", it doesn't reflect the changes at all. A "show interfaces" does
however show it as hardcoded 100/full. Net result is that a switch reboot
will revert to auto/auto. A "write mem" and "show start" shows the port
still auto/auto.
------------------------------------------------------------------------
Bruce Campbell
Engineering Computing
University of Waterloo
http://www.eng.uwaterloo.ca/~bruce/
519-888-4567 ext. 5889
PGP Key: http://www.eng.uwaterloo.ca/~bruce/public.txt
Tune: E3E3A3A3A3A3 A3A3B3B3C3C3A3A3E3E3A3A3A3A3 \
A3A3B3B3C3C3A3A3E3E3D3D3D3D3B3B3C3C3D3D3D3+E3-E3E3 \
A4A4 A4A4A4A4 A4A4G3G3F3F3E3E3F3F3G3G3 G3G3G3G3 \
G3G3F3F3E3E3D3D3E3E3F3F3 F3F3 B3B3C3C3D3D3E3E3E3\
E3