On Thu, 2005-10-27 at 08:13 -0700, Gayatri K wrote:
> 1) Have added trap2sink <ip address> <community> 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
>
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
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