Hi Wes,
Thanks for the reply.

I was going through the code for persistency and find that snmp_store 
function call a number
of callback function to save the data to the persistence file.
But for usmUserTable, the function usm_save_users_from_list is taking 
backup for only those row whose
storageStatus is NonVolatile and ignoring the rows with Permanent status.
for (uptr = puserList; uptr != NULL; uptr = uptr->next) {
        if (uptr->userStorageType == ST_NONVOLATILE)
            usm_save_user(uptr, token, type);
    }

Why we are not looking for ST_PERMANENT here.
What is the purpose for a permanent row, is it to have a just backup or 
the snmp application should
start using these backup data ??
Please help me understand this concept.

Regards,
Manjit

As per Wes Hardaker wrote:
>>>>>> On Mon, 21 Feb 2011 10:49:42 +0530, Manjit 
>>>>>> <[email protected]> said:
>>>>>>             
>
> M> A row which is volatile(2) is lost upon reboot.  A row which
> M> is either nonVolatile(3), permanent(4) or readOnly(5), is
> M> backed up by stable storage.
>
> First, for the keywords make sure you read the StorageType definition in
> mibs/SNMPv2-TC.txt as well.  It discusses what each of those keywords is
> supposed to mean.
>
> But...  your problem really has nothing to do with 'permanent' or any
> other type because this:
>
> M> But the issue is whenever the system reboots we are also changing the 
> M> SnmpEngineID.
>
> Means you're going to completely lose the point of having the row
> persistent in the first place.  If the EngineID is always changing then
> the old users will not be useful so there is really no point in keeping
> them around in the first place!
>
> Why are you generating a new engineID on every boot?  This is really
> something that isn't recommended (in fact, highly discouraged).
>   


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to