Page 1 of 1

how i know the PORT ID in 7750 to use snmp

Posted: 21 Mar 2015 05:50
by avivi
i need to use the port id of port in 7750 for snmp request .

SNMPv2-SMI::enterprises.6527.3.1.2.4.3.6.1.1.X.Y.Z
where x = service id
y = port id
z= vlan
can some one tell me how can i calculate the y ( port id ) base on 7750 ?
if i have port 1/2/5 , how can i calculate the value of y ?

Re: how i know the PORT ID in 7750 to use snmp

Posted: 27 Apr 2015 21:40
by ripnet
You could poll ifName. (1.3.6.1.2.1.31.1.1.1.1)

Code: Select all

iso.3.6.1.2.1.31.1.1.1.1.37912576 = STRING: "1/2/5"

Re: how i know the PORT ID in 7750 to use snmp

Posted: 28 Apr 2015 14:39
by rekeds
the user manual says thats is in binary.
use the freaking search, this has been discussed so many times here in the forum.

Re: how i know the PORT ID in 7750 to use snmp

Posted: 30 Apr 2015 14:20
by mivens
Also, the definition of TmnxPortID in the MIBs explains how you can calculate it:

Code: Select all

TmnxPortID ::= TEXTUAL-CONVENTION
    STATUS  current
    DESCRIPTION
        "A portid is an unique 32 bit number encoded as shown below.

            32 30 | 29 26 | 25 22 | 21 16 | 15  1 |
            +-----+-------+-------+-------+-------+
            |000  |  slot |  mda  | port  |  zero | Physical Port
            +-----+-------+-------+-------+-------+
So port 1/2/5 i.e. slot 1, mda 2, port 5 would be in binary (adding whitespace for readability):
000 0001 0010 000101 000000000000000 which is 37912576 in decimal