Wrinting a Perl script called by snmptrapd, I want to
receive a SNMP-v1 trap and parse it.
But I can't find how to get the generic and the
specific trap types.
When I send a LinkUp trap (generic=2 and specific=0),
I can't find those informations neither in the pdu
informations nor in the varbinds
Does anybody know how to encode a hex-string varbind (
like the 'x' type in snmptrap) to send it with
'SNMP_Session::v2_trap_request_send' ?
I found a 'encode_string' but no 'encode_hexstring' in
the lib.
__
Thank you Thomas, this is working fine.
But does anybody know how to deal with a Hex-STRING
data type ?
And how can I encode a MIB specific data type ?
From: Thomas Anders <[EMAIL PROTECTED]>
> Dave Shield wrote:
> >> On Fri, 2006-01-20 at 11:19 +0100, ange terrien
wrote:
&g
And how can you pass the trap from snmptrapd to
snmptrap ?
Ange
> You can easily do this with a shell script using
the snmptrapd and snmptrap.
> Just parse the snmptrapd return data, switch on
trap number and send them
> out with snmptrap accordingly.
> --
> -Tony
> Having fun with FPGA HW
Is there a way to pass to type of the OID values in
the traphandle directive so I do not have to parse the
MIB file to get it ?
___
Nouveau : téléphonez moins cher avec Yahoo! Messenger
!