2009/3/9 Vinod Nanjaiah <vinod_nanja...@mindtree.com>:
>>What code do you have for saving and restoring the value?
>
> If you mean the MODE_SET_ACTION....

No.

> Nothing else apart from this.
>
> Is the sub-agent supposed to actually write the persistent data to the 
> /var/net-snmp/*.conf file?

Not unless you tell it to.

See 'mibII/setSerialNo.,c' for an example of how to do this.


>>> c>     kill and restart the subagent
>
>>What command do you use to kill the subagent?
>
> I used "kill -9 <pid>"

Then you deserve all you get!!

You should *NEVER* use  kill -9    except as a last resort.
It is *NOT* the correct way to shut down a service.

Always give a problem the chance to tidy up, save any persistent data,
and shut down cleanly.   Kill -9 means "shut down *now*, and don't
worry about leaving things in a sensible state"

It is for use in emergencies only.  Not every day.

Dave

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to