I have to add a variable in a private MIB. This integer variable represents an audio volume and it can assume values in the range 0..1000, by steps of 5:

  0, 5, 10, 15, 20, ... 995, 1000

Moreover, it can assume another special meaning value that means Mute (for example, -1 or -100).  I'm thinking how to implement this kind of variable in a MIB.

I know SMIv2 doesn't allow mixing enumerated integer values with numbers (not enumerated).  But I need both functionalities: it would be good if the user can GET/SET "mute" status without knowing a special value (like -100), but he should be able to GET/SET other values in 0..1000 range.

How do you solve this problem?

 
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to