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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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
In this example:
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"
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
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.
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.