[c-nsp] Determining STP portfast setting via SNMP

lee.e.rian at census.gov lee.e.rian at census.gov
Thu Oct 13 07:25:20 EDT 2005


Jee Kay <jeekay at gmail.com> wrote on 10/13/2005 06:06:03 AM:

> Is it possible to determine the state of STP portfast on a switch
> interface via SNMP? I have been unable to find a MIB/OID that returns
> this as yet - there doesn't seem to be much help in the legacy dot1d
> MIBs.

You can get all the Cisco MIBs from:
ftp://ftp.cisco.com/pub/mibs/v2/v2.tar.gz

You didn't say what kind of switch; hopefully at least one of these will
work for you.

CISCO-STACK-MIB
portSpantreeFastStart OBJECT-TYPE
        SYNTAX        INTEGER { enabled(1), disabled(2) }
        MAX-ACCESS    read-write
        STATUS        deprecated
        DESCRIPTION   "Indicates whether the port is operating in
                      spantree fast start mode. A port with fast start
                      enabled is immediately put in spanning tree
                      forwarding state on link up, rather than starting
                      in blocking state which is the normal operation.
                      This is useful when the port is known to be
                      connected to a single station which has problems
                      waiting for the normal spanning tree operation to
                      put the port in forwarding state.

                      This object is deprecated and replaced by
                      stpxFastStartPortTable in
                      CISCO-STP-EXTENSIONS-MIB."
        DEFVAL { disabled }
        ::= { portEntry 12 }


CISCO-C2900-MIB
c2900PortSpantreeFastStart OBJECT-TYPE
     SYNTAX        INTEGER { enabled(1), disabled(2) }
     MAX-ACCESS    read-write
     STATUS        current
     DESCRIPTION
         "Indicates whether the port is operating in spantree
          fast start mode.  A port with fast start enabled is
          immediately put in spanning tree forwarding state on
          link up, rather than starting in blocking state which
          is the normal operation.  This is useful when the port
          is known to be connected to a single station which
          has problems waiting for the normal spanning tree
          operation to put the port in forwarding state."
     DEFVAL { disabled }
     ::= { c2900PortEntry 36 }


CISCO-STP-EXTENSIONS-MIB
stpxFastStartPortMode OBJECT-TYPE
    SYNTAX     INTEGER {
                        enable(1),
                        disable(2),
                        enableForTrunk(3),
                        default(4)
               }
    MAX-ACCESS read-write
    STATUS     current


Regards,
Lee



More information about the cisco-nsp mailing list