On Mon, 18 Jul 2011 10:28:58 +0200 Giuseppe wrote:
GM> The only possibility I see to implement two SNMP variables in the agent is 
to store the last volume level inside the agent before muting the amplifier:
GM> 
GM>   old_volume = volume_get();
GM>   volume_set(-1);
GM> 
GM> So when the amplifier is unmuted I can do:
GM> 
GM>   volume_set(old_volume);
GM> 
GM> But this means I have to save this data in a non-volatile way, because the 
amplifier could be switched off in any moment without any advice.
GM> 
GM> 
GM> What do you think?  Are my thoughts correct?

You are correct, except for the part about needing non-volatile storage. If
you have non-volatile storage, you could certainly do it that way. But there
are many, many MIBs that don't use non-volatile storage. If the device is
switched off, then you simple report what the API gives to you.

------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to