I am trying to convert a hexadecimal SNMP variable to a string and then
extract a substring.
String variables in the HP PML MIB are prepended by 0x0115 so they come
across as hex, I want to read the string, strip off the first two bytes
and then print the output.
TRAY1_MEDIA_NAME,
1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.3.3.1.4, HEXADECIMAL, "Media Name"
PAPER_NAME, (substr($TRAY1_MEDIA_NAME, 2)),
CALCULATION, "Type of media"
On the output the PAPER_NAME is blank and the TRAY1_MEDIA_NAME has a
hexadecimal string "01 15 33 30 43 6F 61 74 65 64 5F 50 61 70 65 72"
____________________________________________________________________
List archives:
http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [EMAIL PROTECTED]