Hi All,

This is a perl related question. I am walking a mib and getting OCTETSTR
values. However, some of these are hex values that I am wanting to
convert into decimal. I know how to do the conversion no problem, but
some values return a string in ascii (e.g. "Module 1 port 6") while
other oid's return hex strings (e.g. SoftwareRevisonNumber = "0C AD
00"). Obviouly I do not want to translate the former, but I do want to
translate the latter. How do I know I have got a HEX value from the
snmpget and not a value that need no translation?

I am stuck on this one, so any help would be appreciated.

PS. It must ba able to be done since doing a snmpwalk from the command
line gives a return of:
SoftwareRevisonNumber = Hex: 0C AD 00

Thanks in advance.

Hamish
-- 
This message contains confidential information intended only for the use
of the addressee named above. If you are not the intended recipient of
this message, you are hereby notified that you must not disseminate,
copy or take any action in reliance on it. If you have received this
message in error, please delete it. Any views expressed in this message
are those of the individual sender, except where the sender specifically
states them to be the view of QED Technologies. We aim to provide the
highest degree of security for our customers. Where necessary, all
messages are encrypted, all servers are secured and will henceforth
remain so. If this is an inconvenience to you, we are sorry, but our
business is at stake; a risk we consider no worth taking.
~~
Hamish Whittal          QED Technologies                Tel: +27 21 448 9291
[EMAIL PROTECTED]                                      Fax: +27 21 448 9551
                        `The' Linux Services Company    Cel: +27 82 803 5533

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to