I am extracting SNMP information from F5 LTM and storing this information in psql database. I need help converting the returned decimal to ASCII characters. The following is an example of information returned from an SNMP request:
iso.3.6.1.4.1.3375.2.2.10.2.3.1.9.10.102.111.114.119.97.114.100.95.118.115 = Counter64: 0
In my script, I need to define various sections of this information:
my ($prefix, $num, $char-len, $vs) = ($oid =~ /($vsTable)\.(\d+)\.(\d+)\.(.+)/);
This gives me the following:
(prefix= .1.3.6.1.4.1.3375.2.2.10.2.3.1) (num= 9 ) (char-len= 10 ) (vs= 102.111.114.119.97.114.100.95.118.115)
The $vs
variable is the name of the object in decimal format. I would like to convert this to ASCII characters (which should be "forward_vs"). Does anyone have a suggestion on how to do this?
source share