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 ?
how i know the PORT ID in 7750 to use snmp
-
ripnet
Re: how i know the PORT ID in 7750 to use snmp
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"-
rekeds
Re: how i know the PORT ID in 7750 to use snmp
the user manual says thats is in binary.
use the freaking search, this has been discussed so many times here in the forum.
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
Also, the definition of TmnxPortID in the MIBs explains how you can calculate it:
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
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
+-----+-------+-------+-------+-------+
000 0001 0010 000101 000000000000000 which is 37912576 in decimal
