Re: Fwd: NetSNMP configuration of SNMP managers
Mark Ellison <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Organization | Ellison Software Consulting, Inc. |
| Message-ID | <[email protected]> |
Hi Kusuma,
On 03/23/2009 07:19 PM, kusuma.bm wrote:
> Now my question is :
> To send notifications to the manager i should be knowing their
> EngineID ,boots and time . So using send_v2trap() or send_trap_pdu()
> can i do a snmpget request from the snmp agent to the manager to fetch
> all these information ( EngineID ,boots and time )? Or is there any
> other way to know these information?
See ~agent/mibgroup/examples/{notification.c, example.c} for examples of
using the send_v2trap() API. I did not see any examples using the
send_trap_pdu() (sorry about that!).
The only time the agent needs to know the SnmpEngineID of the manager is
at configuration time and only if the agent is configured to send
Informs using SNMPv3 to that manager rather than Traps for
notifications. A manager configuring NetSNMP to receive Informs will
know its own SnmpEngineID and will set this value in the appropriate
SNMPv3 MIB tables.
Your application using the send_v2trap() API does not have to know the
SnmpEngineID, SnmpEngineBoots or SnmpEngineTime values of the manager
since the NetSNMP agent takes care of this for you.
Try the examples in notification.c and example.c using the send_v2trap()
API and see if this code provides the remaining answers for you!
Regards,
Mark
htp://EllisonSoftware.com/Services/
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
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