Hi!
  I have tried with, what you have suggested me, then also it is not
working. I have used function 
                read_config_store_data(ASN_OCTET_STR,
cptr,&station_table->disassociateStation,&tmpint); it started working,
but my data is printing into the configuration file something like this
"stationConfigTable:  0 0 0 0 0 " " 0 0 " " 0 0 0 " " 0 ". The problem
I'm facing is, when I stop agent first time it is showing me that
         "NET-SNMP version 5.0.9
        Received TERM or STOP signal...  shutting down...
        dlmod: Module ieee802dot11 unloaded"
But when I start agent again and then I stop agent it showing me
                        "NET-SNMP version 5.0.9
                        Received TERM or STOP signal...  shutting
down...
                        Segmentation fault"

What could be the problem?i don't know where things are going wrong.

      With Regards.
G.Siva Prakash Reddy.



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Shield
Sent: Tuesday, August 08, 2006 6:57 PM
To: Siva Prakash Reddy G
Cc: [email protected]
Subject: Re: persistent data storage


On 08/08/06, Siva Prakash Reddy G <[EMAIL PROTECTED]> wrote:
>   to store mib variables in to the configuration file, he is using
> snmpd_store_config(line);

Correct.

> but this function takes arguments const  char * pointer.

Yes - that's the line of text that should be saved into the config file.

> how to store ASN_INTEGER variable into the configuration file, which
> function does this operation.

snmpd_store_config()

Try something like:

     char  buf[BUFSIZ];
     sprintf( buf, "myIntToken %d", intVal );
     snmpd_store_config( buf );


The agent doesn't care what information you need to store, or how it's
structured - that's your responsibility.   It just saves whatever line
you give it.

Dave


The information contained in, or attached to, this e-mail, contains 
confidential information and is intended solely for the use of the individual 
or entity to whom they are addressed and is subject to legal privilege. If you 
have received this e-mail in error you should notify the sender immediately by 
reply e-mail, delete the message from your system and notify your system 
manager. Please do not copy it for any purpose, or disclose its contents to any 
other person. The views or opinions presented in this e-mail are solely those 
of the author and do not necessarily represent those of the company. The 
recipient should check this e-mail and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused, directly or 
indirectly, by any virus transmitted in this email.

www.aztecsoft.com

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to