Switches, Hubs, and Modems
1751913 Members
5077 Online
108783 Solutions
New Discussion юеВ

Re: SNMP - State of Port, Operational Mode, Port tagging

 
Etienne222
Occasional Advisor

SNMP - State of Port, Operational Mode, Port tagging

How can I get those information using SNMP:

1 - The state of the port as defined by STP (Disabled, Blocking, Listening, Learning, Forwading) of every port on a switch.

2 - Is there another way to find out port tagging(tagged, untagged, no forbid) informations about vlan on a switch without using those misunderstood informations

dot1qVlanStaticUntaggedPorts
Oid :1.3.6.1.2.1.17.7.1.4.3.1.4

The output is a 16 hexadecimal group that I cannot understand the meaning.

3 - The port operational mode on a switch (10FD, 10HD, 100FD, 100HD, etc) not the admin port fast ethernet mode like :

hpSwitchPortFastEtherMode
Oid 1.3.6.1.4.1.11.2.14.11.5.1.7.1.3.1.1.10


I'm using HP Procurve Switch.

P.S. : I do not have any license of the HP software, anyway, it doesn't give me all that I want. I must use SNMP.

Thanks in advance
10 REPLIES 10
nunocosta75
Advisor

Re: SNMP - State of Port, Operational Mode, Port tagging

hi you can use ProCurve Manager to get all this information and much more, it works good for showing vlans, devices, stp, network design and other things of network managment, it's free you just have to download the procurve manager plus that works for 30 days and then if you don't buy the license you can continue use the basic version. You can get the software in this link :
http://www.hp.com/rnd/software/j8991-b023.htm

regards
Etienne222
Occasional Advisor

Re: SNMP - State of Port, Operational Mode, Port tagging

I'm working on Linux on a Client-Server application, therefor I can't use Procurve Manager or any pre-made software.

I've found some informations :

1-
State of the port as defined by STP :
Name : dot1dStpPortState
OID : 1.3.6.1.2.1.17.2.15.1.3
Value:
1 disabled
2 blocking
3 listening
4 learning
5 forwarding
6 broken

2-
Name: dot1qVlanStaticUntaggedPorts
Oid : 1.3.6.1.2.1.17.7.1.4.3.1.4

Really easy to use, the hex string output refer to bit position :
ff ff ff ff
1111 1111 1111 1111

In order, each port represent one bit.


But I'm always looking for :

I'm able to get the admin operation mode but I'm looking for the operation mode,

e.g. if I set a port to auto-neg, I want to know the value the port will take.

Thanks in advance.
nunocosta75
Advisor

Re: SNMP - State of Port, Operational Mode, Port tagging

hi, without windows operating system you cant run pcm, try to run a VM of vista or xp in your linux and try pcm because it├В┬┤s a wondefull software, even better when you use the plug-in's IDM and IM for advance security. You can see the port status for the duples negociation by typing the show commands in the CLI: "show interfaces brief" and "show interfaces config".
Regards.
Etienne222
Occasional Advisor

Re: SNMP - State of Port, Operational Mode, Port tagging

I think there is something you don't understand. If I could use SSH, I could get those informations easily, but I'm using SNMP and giving me CLI command didn't help me at all.

Thanks anyway
Javed Padinhakara
Respected Contributor

Re: SNMP - State of Port, Operational Mode, Port tagging

To get the current port operational mode on a switch ( question 3)
OID 1.3.6.1.2.1.10.7.2.1.19[dot3StatsDuplexStatus] can be used.

From the mib definition(rfc2665.mib), the OID represents "The current mode of operation of the MAC entity. 'unknown' indicates that the current duplex mode could not be determined"...

hope that helps
Javed
Etienne222
Occasional Advisor

Re: SNMP - State of Port, Operational Mode, Port tagging

OID : 1.3.6.1.2.1.10.7.2.1.19[dot3StatsDuplexStatus] is useful, but how can I get the speed? This Oid gives me the mode, but I also need the speed when the port goes on auto-neg?

Thanks in advance
Javed Padinhakara
Respected Contributor

Re: SNMP - State of Port, Operational Mode, Port tagging

current speed :
ifSpeed[1.3.6.1.2.1.2.2.1.5] or ifHighSpeed[1.3.6.1.2.1.31.1.1.1.15] would help?

Javed
nunocosta75
Advisor

Re: SNMP - State of Port, Operational Mode, Port tagging

hi, your├В┬┤re rigth, i wasn't understanding what you mean, sorry, i don't have any experience in use snmp this way so i can├В┬┤t help you. Regards
Etienne222
Occasional Advisor

Re: SNMP - State of Port, Operational Mode, Port tagging

Thanks Javed, it was really usefull, now I've got all that I was looking for.