I have net-snmp-5.5-1.x86.exe for Win32

I need set IP addreess to hex format, separated by whitespace using NET-SNMP 
set command. For example, an IP address 192.168.100.100 converted to Hex format 
is 0xC0A86464

192.168.100.100 > 0xC0A86464

The correctly set value should return the following value when check with 
snmpget:

xxx-xxx-xxx-MIB::docsDevServerAddress.0 = Hex-STRING: C0 A8 64 64 

I tried
snmpset -v 1 -c private 192.168.100.5 docsDevServerAddress.0 x 0xC0 A8 64 64

According to NET-SNMP manual, 'x' is octet string in hex bytes, separated by 
whitespace. But when I using this format to set HEX address, I always got 
errors like this: 'A8: Bad object type: 6', or '00xA8 Bad object type: 0', and 
so on, depending on representation of hex format I tried. 

I tried also convert Hex value to binary:

0xC0A86464 > 11000000101010000110010001100100

I tried to use this binary representation of hex string:

snmpset -v 1 -c private 192.168.100.5 docsDevServerAddress.0 x 
11000000101010000110010001100100

but it returns Hex-STRING: 11 00 00 00

How to set correct input format for snmpset to get Hex values I need?

Best Regards

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to