On 16 August 2011 11:09, sujata patra <sujata_patra2...@yahoo.com> wrote:
> As far as I know , SNMP datas are in ASN.1 format .

No.

SNMP uses ASN.1 to define the structure of data (in MIB files),
and to transfer that data between the agent and the management
application.   But all of this is handled automatically at a fairly low level.

By the time the data is received by the management client, it's
typically represented using standard data types (long, char[], etc)

You can process this any way that you like.


>   How can I save the data in database ?

One example of where this is currently being done is the 'mysql_handler'
for snmptrapd.   As I understand things, this takes incoming traps,
and logs the information into a database.

It's not a mechanism that I've used myself, but looking at the code
in apps/snmptrapd_sql.c  might give you some ideas about how
this can be done.



> Problems is the keys. Parent table index andĀ  child table index makes the key 
> for the child table.

I'm sorry - I don't understand what you mean by this.
SNMP doesn't have a concept of "parent tables" and "child tables".
A table is a table is a table.


> It is not guranteed that theĀ  same index will be always be there for dynmic 
> table/ dynamic rows.

No, it's not.
Rows can be created and deleted from tables within a database.
Rows can be created and deleted from tables within SNMP.
   What exactly is the problem here?

Dave

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to