RE: Enterprise trapquestion/send_v2trap API call

"McGowen, Wendy" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <E05F1FD208D5AA45B78B3983479ECF0801A8086F@saturn.p3corpnet.pivot3.com>
Thanks Mike - as it turns out, it was an initialization problem in the
AgentX agent. 

I modified the test program I wrote yesterday (based on notification.c)
to send our trap OID, and the receivers did receive the trap. While
debugging, I noticed that there were some initialization steps that were
occurring with the test AgentX program that weren't happening with my
AgentX code (based on the debug output). Long story short, we were
bailing during init, which prevented SNMP from correctly initializing
the agent. When we later made the SNMP API call to send the trap, the
code was truly falling into a black hole, because the agent never
completed init. The init routine has been fixed, and the traps are being
sent out correctly.

Thanks again!

~ Wendy

-----Original Message-----
From: Mike Ayers [mailto:[email protected]] 
Sent: Thursday, January 03, 2008 2:43 PM
To: McGowen, Wendy; [email protected]
Subject: RE: Enterprise trapquestion/send_v2trap API call


> From: [email protected] 
> [mailto:[email protected]] On 
> Behalf Of McGowen, Wendy
> Sent: Thursday, January 03, 2008 6:18 AM

> Here's the trap stuff from my MIB:
> 
> pivot3                  OBJECT IDENTIFIER ::= { enterprises 25148 }
> 
> pvt3System MODULE-IDENTITY
>     LAST-UPDATED "200712060000Z"
>     DESCRIPTION  "MIB for all Pivot3 databank objects"
>     REVISION     "200712060000Z"
>     DESCRIPTION  "First revision"
>     ::= { pivot3 1 }
> 
> pvt3SysTraps            OBJECT IDENTIFIER ::= { pvt3System 3 }
> 
>     pvt3DatabankDriveStateFailed NOTIFICATION-TYPE
>         OBJECTS { name,
>                   slot }
>         STATUS  current
>         DESCRIPTION "This trap is sent when the state of a drive in
>                      a databank has changed to FAILED."
>         ::= { pvt3SysTraps 7 }

	Note that this *notification* can not be converted to v1 format.
If your target receiver is listed as v1, this will never be sent.  Could
that be your problem?


	HTH,

Mike

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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
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.