Re: Using hex strings

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 02/08/06, yuva raj <[email protected]> wrote:
>  I have been trying to use snmpset to set hexstring with various options, I
> dont know which one is correct.

# snmpset ... localhost RFC1213-MIB::atPhysAddress.... x 0x112233445566

Yes - that syntax is correct.
If you give the '-d' option, you can see the raw packet, including
this hex value.

>  # snmpset -v 2c -c public localhost
> RFC1213-MIB::atPhysAddress.2.1.172.20.20.5 x 0x112233445566
>  Error in packet.
>  Reason: notWritable (That object does not support modification)

Please see the FAQ entry "I cannot set any variables in the MIB."
In particular, the second reason listed.  That's the relevant one in this case.


> And also, how to specify hex string when using snmptest.

Just as you do above.
Unfortunately, there appears to be a bug in this application - the hex
value still has a newline character appended when it's interpreted,
which confuses the parsing routine.  This needs to be fixed.


Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.