Thanks, Wes, for making it clearer!

-----Original Message-----
From: Wes Hardaker [mailto:[email protected]] 
Sent: Wednesday, April 29, 2009 17:01
To: Tanya Brudner
Cc: [email protected]
Subject: Re: initiate a coldStart / warmStart trap

>>>>> On Mon, 27 Apr 2009 14:02:17 +0300, Tanya Brudner <[email protected]> 
>>>>> said:

TB> I am attempting to write a subagent, and at the moment I'm a little
TB> confused about how to initiate my own coldStart/WarmStart traps.

You generally shouldn't do this.  If you need to send a trap from your
subagent to indicate *it* has started then you should define your own
trap far indicating that.  The other traps are supposed to indicate that
the master agent has started, no your subagent.

TB> if I use send_v2trap as above, how and why is the snmpTrapEnterprise
TB> added?

snmp_v2trap tries to add all the important parts of a message that are
required before it goes out, hence the reason it needs to add the
enterprise.  It's required by the SNMPv2c protocol!

You might want to check out the --with-enterprise-* options to configure
if you want to change the enterprise id.  It'll change them for all the
outgoing traps, not just your special ones from your subagent.  That's
really the easiest way to change the enterprise of your agent.
-- 
Wes Hardaker
Cobham Analytic Solutions

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
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

Reply via email to