Re: Help with snmptrap

Mateus Interciso <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Mon, 30 Jul 2007 13:01:20 +0100, Dave Shield wrote:

> On 30/07/07, Mateus Interciso <[email protected]> wrote:
>> >> But I also want it to execute the command /bin/sh /tmp/trapTst.sh
>> On the host that is running the trap receiver.
> 
> OK - what is the trap PDU that should trigger this command?
> 
> Dave
> 
> 
-------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Still grepping through
> log files to find problems?  Stop. Now Search log events and
> configuration files using AJAX and a browser. Download your FREE copy of
> Splunk now >>  http://get.splunk.com/
> _______________________________________________ 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

Isn't this on the snmptrapd.conf that issues the command?
traphandle  "default" "/bin/sh /tmp/trapTst.sh"
Then, whenever he gets a trap(any), it would execute /tmp/tapTst.sh?

Mateus


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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.