Yes. It must hack the codes. 
You can modify the Agent/snmpd.c file:
Find the following lines:
    /*
     * Send coldstart trap if possible.  
     */
    send_easy_trap(0, 0);
Comment it.

Thanks,
Aileen

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave
Shield
Sent: Tuesday, October 11, 2005 6:38 PM
To: Kurapati M-G19456
Cc: net-snmp-users
Subject: Re: How to make snmpd NOT to generate coldStart trap?

On Tue, 2005-10-11 at 17:49 +0800, Kurapati M-G19456 wrote:
> 'snmpd' generates coldStart trap the moment it comes up.

Correct.

>   I want to hijack this trap, and wants one of my application to
> generate this trap.  Is there a specific startup parameter with which
> I need to start snmpd, to achieve this?

No.


> In the base code of snmpd, the call to generate trap is not protected
> in any compile time flag, which could mean that there is no configure
> input for this. 

Correct.

If you need to do this, then you'll have to hack the code.

Dave


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads,
discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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

Reply via email to