Email Subscription Notifications Suspended Temporarily
We are in the process of making navigation in the Servers and Operating Systems forums simpler and more direct. While doing this, we have to temporarily suspend email notifications for subscriptions. If you are subscribed to one or more discussion boards or blogs in the community, please check them daily to see new content. Notifications will be turned back on in a few days. We apologize for any inconvenience this may cause. Thanks, Warren_Admin
Switches, Hubs, and Modems
cancel
Showing results for 
Search instead for 
Did you mean: 

STP designated port value of "@4" retrieved via SNMP

SOLVED
Go to solution
David Brousseau
Occasional Advisor

STP designated port value of "@4" retrieved via SNMP

Hello,

I have a ProCurve J4903A connected to a ProCurve J4903A and I am managing them with an SNMP tool.

When querying the designated port, I'm getting a value of @4 and need to understand how to interpret this value in order to map it to the connected switch's port. I understand how to interpret the other designated port values, but this one is a mystery to me.

Thanks,
--Dave
9 REPLIES
Mohieddin Kharnoub
Honored Contributor

Re: STP designated port value of "@4" retrieved via SNMP

Hi David

Whats the SNMP tool you are using ?

Science for Everyone
Mohieddin Kharnoub
Honored Contributor

Re: STP designated port value of "@4" retrieved via SNMP

Hi David

Whats the SNMP tool you are using ?

Whats the firmware of the 2800 switches ?

Science for Everyone
David Brousseau
Occasional Advisor

Re: STP designated port value of "@4" retrieved via SNMP

From the sysDescriptor: ProCurve J4903A Switch 2824, revision I.08.105, ROM I.08.07

I have verified that the value of "@4" is returned both via Getif (MIB browser) as well as a simple snmpget (net-snmp).

I should add that I do not have telnet access to these devices, only SNMP access.
Matt Hobbs
Honored Contributor

Re: STP designated port value of "@4" retrieved via SNMP

Off the top of my head, I think the @ sign designates which VLAN the port belongs to.
Matt Hobbs
Honored Contributor

Re: STP designated port value of "@4" retrieved via SNMP

By the way, which OID are you getting?
bergonz
Advisor
Solution

Re: STP designated port value of "@4" retrieved via SNMP

If you are reading 1.3.6.1.2.1.17.2.15.1.9, then you should take into account the fact that it returns two bytes, one being the port number and the other being the port priority. You can read the bridge mib for a complete description of this value.

It seems to me that you are seeing port 4 with a priority of 0x40.

If you are using net-snmp you should use -Ox in order to display output as Hex even when retrieving a possible string.

Regards,
Bergonz
David Brousseau
Occasional Advisor

Re: STP designated port value of "@4" retrieved via SNMP

Bergonz, you are correct, that is the OID that I am retrieving.

From the same device, I get the following via net-snmp:

dot1dStpPortDesignatedPort.45 = Hex-STRING: 00 2D
dot1dStpPortDesignatedPort.46 = Hex-STRING: 80 01
dot1dStpPortDesignatedPort.52 = STRING: "@4"

You bring up a valid point about the formatting of the output. net-snmp may be converting "0x4034" to the string "@4" at instance 52 because there is a hex-to-ascii printable conversion for both octets.

I will verify this through the MIB browser.
David Brousseau
Occasional Advisor

Re: STP designated port value of "@4" retrieved via SNMP

Bergonz hit the nail on the head. Thanks!
David Brousseau
Occasional Advisor

Re: STP designated port value of "@4" retrieved via SNMP

Bergonz's hint at the formatting of the output was correct. The hex octets 0x4034 was being converted to the ascii string "@4" where the intended interpretation is bridge port 52 with a priority of 0x40.