Switches, Hubs, and Modems
cancel
Showing results for 
Search instead for 
Did you mean: 

SNMP: configure port as tagged

vbox.nick
Occasional Contributor

SNMP: configure port as tagged

I'm looking for a solution configure via SNMP protocol port as tagged of Procurve 2810 switches. I found OID objects with snmpwalk command, but I don't understand how to calculate hex string. Can anyone help me understand?

SNMPv2-SMI::mib-2.17.7.1.4.2.1.4.0.30 = Hex-STRING: C0 00 00 00 00 00 E0 00 00 00 00 00 00
SNMPv2-SMI::mib-2.17.7.1.4.2.1.4.0.85 = Hex-STRING: 00 00 00 00 00 00 00 00 00 00 00 00 00
SNMPv2-SMI::mib-2.17.7.1.4.2.1.4.0.140 = Hex-STRING: 40 00 00 00 00 00 C0 00 00 00 00 00 00
SNMPv2-SMI::mib-2.17.7.1.4.2.1.4.0.141 = Hex-STRING: C0 00 00 00 00 00 E0 00 00 00 00 00 00
SNMPv2-SMI::mib-2.17.7.1.4.2.1.4.0.184 = Hex-STRING: 00 00 00 00 00 00 00 00 00 00 00 00 00
SNMPv2-SMI::mib-2.17.7.1.4.2.1.5.0.30 = Hex-STRING: 00 00 00 00 00 00 00 00 00 00 00 00 00
SNMPv2-SMI::mib-2.17.7.1.4.2.1.5.0.85 = Hex-STRING: 00 00 00 00 00 00 00 00 00 00 00 00 00
SNMPv2-SMI::mib-2.17.7.1.4.2.1.5.0.140 = Hex-STRING: 00 00 00 00 00 00 00 00 00 00 00 00 00
SNMPv2-SMI::mib-2.17.7.1.4.2.1.5.0.141 = Hex-STRING: 00 00 00 00 00 00 00 00 00 00 00 00 00
SNMPv2-SMI::mib-2.17.7.1.4.2.1.5.0.184 = Hex-STRING: 00 00 00 00 00 00 00 00 00 00 00 00 00

Thanks.
1 REPLY
Rastaferraille
Occasional Visitor

Re: SNMP: configure port as tagged

convert this string in binary :

$values["0"] = "0000";
$values["1"] = "0001";
$values["2"] = "0010";
$values["3"] = "0011";
$values["4"] = "0100";
$values["5"] = "0101";
$values["6"] = "0110";
$values["7"] = "0111";
$values["8"] = "1000";
$values["9"] = "1001";
$values["A"] = "1010";
$values["B"] = "1011";
$values["C"] = "1100";
$values["D"] = "1101";

The position number of each "1" represent a port number.

But i'm not shure
$values["E"] = "1110";
$values["F"] = "1111";