I am not certain, but I would expect the NULL if you are sending traps in
the standard way, to 162/udp.
The agent, trapd, does not respond, but the blocking send expects a
response, so I think it will just time out and you'll get the NULL.
All the examples of this I have seen, use a non-blocking send for traps.
Some our daemons (notably netmon) do set up a TCP session with trapd to
send traps, but I think in that case all they get back is an ack that the
last pdu was received without errors and then they disconnect. Whether
this is available to you in the APIs I don't know. Not a netmon guy.
James Shanks
Level 3 Support for Tivoli NetView for UNIX and NT
Tivoli Software / IBM Software Group
"Allison, Jason (JALLISON)" <JALLISON@arinc.com>
11/22/2002 10:00 AM
To: "'nv-l'" <nv-l@lists.tivoli.com>
cc:
Subject: [nv-l] trap response
OVsnmpBlockingSend:
Return Values:
quote: If successful, OVsnmpBlockingSend returns a pointer to an
OVsnmpPdu
structure that contains the response to the outbound PDU. If
unsuccessful,
it returns NULL.
Question:
In the case of: playback_pdu = OVsnmpCreatePdu(TRAP_REQ_MSG);
What will my "response" be? I am sending a trap, what can I expect in the
PDU? The trap I sent? Any needed data? I am really only concerned if it
is != NULL, but for my reference, I would like to know what comes back on
a
successful send.
Thanks,
Jason Allison
Principal Engineer
ARINC Incorporated
Office: (410) 266-2006
FAX: (410) 573-3026
---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
For additional commands, e-mail: nv-l-help@lists.tivoli.com
*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)
|