Hi Franck,
On 08.10.2013 12:02, Franck MIRA wrote:
Hello,
I would like to display the traps received by snmptrapd in the shell.
I guess it's the standard output --Lo option?
I tried something like that:
Sudo /etc/init.d/snmptrad --Lo
But it doesn't work.
Is someone has an idea please?
I think you mixed up the snmptrapd program with the start script.
-Lo is an option for the program snmptrapd. The program is usually
located in a path for system binaries. Mine is in /usr/sbin. Try
sudo which snmptrapd
to find yours. I guess this pogram is what you want to start here.
In /etc/init.d you can find scripts to start and stop programs like the
above automatically in the background and with preconfigured options.
You usually can't pass program arguments directly to these scripts but
they are read from a config file. On my system /etc/sysconfig/net-snmp
configures how the program is called.
HTH
Joachim
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users