Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

snmptrapd - how to redirect startup errors to /dev/null

4 views
Skip to first unread message

Wojciech Dudys

unread,
Dec 16, 2009, 7:16:45 AM12/16/09
to
Hi,

I'm using snmptrapd to log traps to file. The problem is that I have a
lot of Cisco MIBs that cause errors on snmptrapd start.
Unfortunately those errors are logged in the same file that traps are.

Now it looks like that:

snmptrapd -A -Lf /var/traps -p /var/run/snmptrapd.pid

i tried

snmptrapd -A -Lf /var/traps -p /var/run/snmptrapd.pid 2>/dev/null

but it doesn't work.

How do I run snmptrapd to log traps and only traps to file?

Regards,

Wojtek

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Net-snmp-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

0 new messages