[SNMP4J] Problem with hexadecimal results.

Alfredo Rico alfredo_rico at yahoo.com
Thu Mar 24 00:14:01 CET 2005


Hello to everybody, grettings.

I have the following problem.  I am using snmp4j fot
send a GET pdu requesting for sysDescr object and
ifDescr column to some manageable devices. Some
devices respond with hexadecimal values and others not
( well, I mean snmp4j don't make this translation). 

Some device response sysDescr value with: 
sysDescr =
4d:53:20:54:43:50:20:4c:6f:6f:70:62:61:63:6b:20:69:
6e:74:65:72:66:61:63:65:00 
(MS TCP Loopback interface in ascii)

sysDescr =
43:69:73:63:6f:20:49:6e:74:65:72:6e:65:74:77:6f:72:6b:20:4f:70:65:72:61:74:69:6e:67:20:53:79:73:74:65:6d:20:53:6f:66:74:77:61:72:65:20:0d:0a:49:4f:53:20:28:74:6d:29:20:43:32:39:30:30:58:4c:20:53:6f:66:74:77:61:72:65:20:28:43:32:39:30:30:58:4c:2d:43:33:48:32:53:2d:4d:29:2c:20:56:65:72:73:69:6f:6e:20:31:32:2e:30:28:35:29:58:55:2c:20:52:45:4c:45:41:53:45:20:53:4f:46:54:57:41:52:45:20:28:66:63:31:29:0d:0a:43:6f:70:79:72:69:67:68:74:20:28:63:29:20:31:39:38:36:2d:32:30:30:30:20:62:79:20:63:69:73:63:6f:20:53:79:73:74:65:6d:73:2c:20:49:6e:63:2e:0d:0a:43:6f:6d:70:69:6c:65:64:20:4d:6f:6e:20:30:33:2d:41:70:72:2d:30:30:20:31:36:3a:33:37:20:62:79:20:73:77:61:74:69
in ascii:
Cisco Internetwork Operating System Software 
IOS (tm) C2900XL Software (C2900XL-C3H2S-M), Version
12.0(5)XU, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2000 by cisco Systems, Inc.
Compiled Mon 03-Apr-00 16:37 by swati

ifDescr =
4d:53:20:54:43:50:20:4c:6f:6f:70:62:61:63:6b:20:69:6e:74:65:72:66:61:63:65:00

in ascii:
MS TCP Loopback interface

I want to know how I could determine if the response
will coming in hexadecimal format in order to use some
translate mechanism to ascii.

Before kand thank you very much by your help.

_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com



More information about the SNMP4J mailing list