Re: Perl question: hex-string

Wes Hardaker <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Sparta
Message-ID <[email protected]>
>>>>> On Mon, 20 Feb 2006 16:29:58 +0100 (CET), ange terrien <[email protected]> said:

ange> Does anybody know how to encode a hex-string varbind (
ange> like the 'x' type in snmptrap) to send it with
ange> 'SNMP_Session::v2_trap_request_send' ? 

ange> I found a 'encode_string' but no 'encode_hexstring' in
ange> the lib.

Using snmp_add_var is what snmptrap does...

snmp_varlist_add_variable() should let you do what you want I think...

-- 
Wes Hardaker
Sparta, Inc.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.