Re: Writing MIB objects Values in files
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
[Please send your request to the mailing list
[email protected]
and *not* to the request address. Thanks]
2008/6/10 rajesh <[email protected]>:
> Hi Dave,
> Thanks for ur help .
> I am able to do GET/SET operation on the own defined mib .
> once snmpd is down and am restarting , snmpd .
> all the previous SET operation on mib object is lost .
>
> Please Suggest me how to make All the data Persistent even if the snmpd
> is restarted .
Use the SNMP_CALLBACK_STORE_DATA callback
to write out the persistent values.
These will then be read in when the agent restarts.
Note that you will need to code "store" routine to save
this information, and matching "parse" config handlers
to read it in again.
See (e.g.) mibgroup/mibII/system_mib.c for an example of
this in action.
Dave
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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