On Thu, 14 Jul 2011 11:39:54 +0200 Giuseppe wrote: GM> 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: GM> GM> 0, 5, 10, 15, 20, ... 995, 1000 GM> GM> 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. GM> GM> 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.
Simply define the special enums in the mib, and the text description can describe the 0-1000 by five restriction. ------------------------------------------------------------------------------ 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
