Menu

span ports (Monitoring) show up as "Inactive"

Help
Dan
2008-10-20
2012-09-14
  • Dan

    Dan - 2008-10-20

    Ports on Cisco IOS-based switches (and perhaps CatOS, too) show up as "Inactive" in switchmap. A "show interface status" on them shows a status different from "connected" "notconnect" or "disabled". I'd love for switchmap to show this port's "true" status as opposed to the current behavior of showing "Inactive". I can provide an snmpwalk if someone could provide some guidance re: what MIB to use.

    Here's a partial cut/paste of a "show int status" showing four distinct status values:

    Port Name Status Vlan Duplex Speed Type
    Gi1/16 Misc Server connected 151 full 1000 1000BaseSX
    Gi1/17 Misc Server notconnect 151 full 1000 1000BaseSX
    Gi4/5 UNUSED disabled 1 full 1000 No Transceiver
    Gi4/6 Infinistream-mon-2 monitoring 151 full 1000 1000BaseSX

    Thanks.

    danT

     
    • Dan

      Dan - 2008-10-21

      In this example:

      $ snmpwalk -c public -m ALL nrm-1c3-cat6509-01 portCopyStatus   
      SMON-MIB::portCopyStatus.116.104 = INTEGER: active(1)
      SMON-MIB::portCopyStatus.116.113 = INTEGER: active(1)
      SMON-MIB::portCopyStatus.169.64 = INTEGER: active(1)
      SMON-MIB::portCopyStatus.170.54 = INTEGER: active(1)
      

      One idea would would to have ifIndex 104, 113, 64, and 54 show "Active / Mon-Dst", and ifIndex 116, 169, and 170 might show "Active / Mon-Src"

       
    • Pete Siemsen

      Pete Siemsen - 2008-10-20

      Dan,

      Interesting idea.

      So you'd want the "Days inactive" column to show, like, "Days not connected", right?

      Is "monitoring" what a switch shows when the port is Spanning another port?

      The relevant code is in PopulatePorts.pm, in the SetState function. It looks at the values of ifAdminStatus and ipOperStatus from the MIB-II MIB. Those MIB variables can each take on the values "up", "down" or "testing".

      There's probably a Cisco MIB that defines "notconnect", etc. I don't know what MIB does it.

      -- Pete

       
      • Dan

        Dan - 2008-10-21

        Yes, "monitoring" is what it shows when the port is the span "output". I was thinking of having the "State" column say "Monitoring" rather than Active/Inactive. I think the Days Inactive should be blank just like any "Active" port.

        I'll dig a bit to see if I can find the MIB, too.

         
    • Dan

      Dan - 2008-10-21

      More info. It appears "SMON-MIB" has what we need, and is not Cisco-specific. "portCopyStatus.<src ifIndex>.<dst ifIndex>" is the MIB of interest.

      I have verified this for a Cisco Catalyst 6509 running IOS version 12.2(18)SXF6. I also know that it is NOT valid for the older Catalyst 3550 IOS version 12.2(25)SED. I don't have any other brands of switch to test.

      portCopyStatus OBJECT-TYPE
      SYNTAX RowStatus
      -- Rsyntax INTEGER {
      -- active(1),
      -- notInService(2),
      -- notReady(3),
      -- createAndGo(4),
      -- createAndWait(5),
      -- destroy(6)
      -- }
      ACCESS read-write
      STATUS mandatory
      DESCRIPTION
      "Defines the status of the port copy entry.

           In order to configure a source to destination portCopy
           relationship, both source and destination interfaces MUST be
           present as an ifEntry in the ifTable and their respective
           ifAdminStatus and ifOperStatus values MUST be equal to
           'up(1)'. If the value of any of those two objects changes
           after the portCopyEntry is activated, portCopyStatus will
           transition to 'notReady(3)'.
      
           The capability of an interface to be source or destination of
           a port copy operation is described by the 'copySourcePort(0)'
           and 'copyDestPort(1)' bits in dataSourceCopyCaps. Those bits
           SHOULD be appropriately set by the agent, in order to allow
           for a portCopyEntry to be created.&quot;
      ::= { portCopyEntry 5 }
      
       

Log in to post a comment.

MongoDB Logo MongoDB