Re: communicate with ME102
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 17/04/07, Michael Renner <[email protected]> wrote: > I got a response this time, but it was pure hex: > > cassiopeia:~# snmpget -c public -v1 wlan.mtr.mynet ATMEL-MIB::sysDescr.0 > ATMEL-MIB::sysDescr.0 = Hex-STRING: > 38 30 32 2E 31 31 20 41 50 20 28 56 65 72 2E 20 > 31 2E 34 68 2E 34 29 20 41 63 63 65 73 73 20 50 > 6F 69 6E 74 00 00 00 00 00 00 00 00 00 00 00 00 > 00 00 00 00 00 00 00 00 00 I don't like the look of those trailing '00' characters. It looks as if the agent is returning a fixed size buffer (including trailing null characters), rather than calculating the length of the actual data, and just returning that. > Is there a standard method to convert this? Untested, but you could try forcing ASCII output, using the option '-Oa' Dave ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ 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