Fwd: disable cold start and warm start snmp traps

Gayatri K <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
missed the distro in my mail below...

Gayatri K <[email protected]> wrote:Thanks Dave for the reply.
 
1) How can I know what more kind of traps are enabled by default?
 
2) What are the steps that I need to follow to install just the SNMP library, and the 'snmptrap' binary? 
I have done the foll :

   Download net-snmp-5.2.2.pre1.tar.gz and tar
   ./configure
   make
   make install

 
 
Thanks in advance...
Regards,
G K

Dave Shield <[email protected]> wrote:
On Thu, 2005-10-27 at 08:13 -0700, Gayatri K wrote:

> 1) Have added trap2sink in the snmpd.conf 
> file for testing of snmp traps. But apparently it send traps when the
> linux box is rebooted. Where can i disable that??

agent/snmpd.c:line 885

send_easy_trap(0, 0);


Delete (or comment out) that line, and recompile the agent.
You might want to do the same for line 1033:

send_easy_trap(SNMP_TRAP_ENTERPRISESPECIFIC, 3);

and line 395:

send_easy_trap(SNMP_TRAP_ENTERPRISESPECIFIC, 2);

as well.



> 2) And do i have to install the whole net-snmp package just to be able
> to generate snmp traps and nothing else??

No.
You'd just need the SNMP library, and the 'snmptrap' binary.
(And probably the MIB files as well)

Dave
> 


---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click. 

		
---------------------------------
 Yahoo! FareChase - Search multiple travel sites in one click.
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.