Re: Trap related query

Mike Schmidt <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

The varbinds are passed via stdin. This is documented in the man pages 
for snmptrapd.conf and an exmaple is in the traptoemail script provided 
with net-snmp

Mike


Srivastava, Namburi (IE10) wrote:
>
> Hi,
>
> Please provide inputs to resolve this
>
> I’m able to capture snmp trap using snmptrapd at the console with 
> proper payload (varbind). But now my requirement is to pass this 
> varbind at the traphandle directive in snmptrapd.conf file.
>
> e.g. traphandle <oid> c:\handle.bat
>
> Here, how to pass variable list binding as arguments to traphandle 
> directive? As from the batch file (handle.bat) I’m interested in 
> printing the varbind (payload) or passing it to other applications.
>
> I’m issuing following snmptrapd command.
>
> Prompt>snmptrapd -f -Le -F "%02.2h:%02.2j:%02.2k %A %v \n" -Lf TrapLog.txt
>
> Regards,
>
> Sri.
>
> /*****************************************************************************************************************************************************************************************************************************/
>
> /This e-mail, and any attachments thereto, are intended only for use 
> by the addressee(s) named herein and may contain privileged and/or 
> confidential information. If you are not the intended recipient of 
> this e-mail, you are hereby notified that any dissemination, 
> distribution or copying of this e-mail, and any attachments thereto, 
> is illegal and strictly prohibited. If you have received this e-mail 
> in error, please immediately notify me by telephone and permanently 
> delete the original and any copy of any e-mail and any printout thereof./
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
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
mike.vcf (text/x-vcard, 354 B)
begin:vcard
fn:Mike Schmidt
n:Schmidt;Mike
org:Intello Technologies Inc. 
adr;quoted-printable;quoted-printable:;;580 1=C3=A8re Rue;Saint-Jean-sur-Richelieu;Qu=C3=A9;J2X 3B4;Canada
email;internet:[email protected]
title:Vice-President
tel;work:450-358-2266 x223
tel;cell:514-835-9497
x-mozilla-html:FALSE
url:http://www.intello.com
version:2.1
end:vcard
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.