Re: Fwd: NetSNMP configuration of SNMP managers

"kusuma.bm" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi Mark,
i am configuring my snmp agent to send notifications to  multiple snmp 
manager,using the  tables snmpNotifyTable snmpNotifyFilterProfileTable 
snmpNotifyFilterTable (RFC 3413), snmpTargetAddrTable 
snmpTargetParamsTable (RFC 3413).
Below you have said that :
Now, for sending notifications using the NetSNMP libraries, you might 
use the send_v2trap() or send_trap_pdu() routine contained in the 
~agent/agent_trap.c code that is part of the libnetsnmpagent library.
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?

Regards
kusuma
V Pura wrote:
> Hi Mark,
>  
> Thanks a lot for the info. It helps a lot in understanding the usage 
> of the different MIBs for the v3 support.
>  
> V. Pura
>
> On Sat, Mar 21, 2009 at 6:44 PM, Mark Ellison 
> <[email protected] <mailto:[email protected]>> wrote:
>
>     Hi V,
>
>
>     On 03/20/2009 11:08 PM, V Pura wrote:
>
>          Actually we don't need to have a NetSNMP GUI, but would like
>         to render a GUI based manager configuration, so that the
>         administrator can  directly add the new managers without
>         modifying any config files.  So wanted to know if there was
>         any API available which would be used with our GUI code.
>
>     Okay.  I understand you do not want to directly modify the
>     Net-SNMP configuration files.  The SNMP and the MIB modules
>     supported by Net-SNMP are the API you want to use.
>
>          What if we create a manager table in the database and store
>         all the relevant data in it and retrieve it in local cache for
>         sending notifications using the NetSNMP libraries. Would there
>         be any problems with this scenario?
>
>
>     While I don't have a complete understanding of the overall
>     application you intend to build, it does occur to me that it would
>     simpler and more expedient to simply use SNMP Set-Requests to
>     insert appropriate rows in the usmUserTable (RFC 3414),
>     vacmSecurityToGroupTable vacmAccessTable vacmViewTreeFamilyTable
>     (RFC 3415) when adding a manager.  You would also want to add
>     appropriate rows in the snmpNotifyTable
>     snmpNotifyFilterProfileTable snmpNotifyFilterTable (RFC 3413),
>     snmpTargetAddrTable snmpTargetParamsTable (RFC 3413) for sending
>     notifications to a manager.
>
>     Net-SNMP takes care of the rest.
>
>     You will find examples of  rows for these tables in the Appendix
>     sections of the corresponding RFCs.  The complete set of IETF RFCs
>     are available via http://www.rfc-editor.org/rfcsearch.html of
>     course- try typing  STD62 into the search box and click 'SEARCH'
>     to get links to the set of RFCs comprising the SNMPv3 standard.
>
>     I think that after reviewing the above information, you will come
>     to understand that the above tables indeed comprise the 'manager
>     table in the database'.
>
>     Now, for sending notifications using the NetSNMP libraries, you
>     might use the send_v2trap() or send_trap_pdu() routine contained
>     in the ~agent/agent_trap.c code that is part of the
>     libnetsnmpagent library.
>
>
>     Regards,
>
>     Mark
>     http://EllisonSoftware.com <http://ellisonsoftware.com/>
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> 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-coders mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
>

------------------------------------------------------------------------------
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
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.