Posted on 2009-01-04 17:11:34-08 by dtown in response to 9641
Re: SNMP Object Types
The ASN.1 type "names" are exported as functions, not strings, by the Net::SNMP module. The functions return a numeric value representing the type. In your example you are passing a string to the "-varbindlist" when it expects a numeric value. What you need to do is execute the function named "OCTET_STRING" by doing something like:
$type = 'OCTET_STRING'; $objtype = &{$type}();
Direct Responses: 9643 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.