Re: How to implement a very long enumerated variable

2011-07-14 Thread Fulko Hew
On Thu, Jul 14, 2011 at 1:56 PM, Robert Story wrote: > On Thu, 14 Jul 2011 12:16:00 -0400 Fulko wrote: > FH> Ahh. 'Gain' is different than volume. Knowing that, I'd define it as > FH> below. > FH> I'd leave the concept of 'muted' as something that the management > system > FH> implements. Ie.

Re: How to implement a very long enumerated variable

2011-07-14 Thread Robert Story
On Thu, 14 Jul 2011 12:16:00 -0400 Fulko wrote: FH> Ahh. 'Gain' is different than volume. Knowing that, I'd define it as FH> below. FH> I'd leave the concept of 'muted' as something that the management system FH> implements. Ie. When the user selects 'muted' the NMS sends -1. If the FH> NMS re

Re: How to implement a very long enumerated variable

2011-07-14 Thread Fulko Hew
On Thu, Jul 14, 2011 at 11:33 AM, Giuseppe Modugno wrote: > ** > On 14 Jul 2011 at 10:17, Fulko Hew wrote: > ... snip ... > > Simple Integer: > > > > Why not just have SYNTAX INTEGER (0..100)? > > Why the complicated 0 to 1000 with steps of 5? and a special 'mute' > indicator? >

Re: How to implement a very long enumerated variable

2011-07-14 Thread Robert Story
On Thu, 14 Jul 2011 15:46:56 +0200 Giuseppe wrote: GM> > Simply define the special enums in the mib, and the text description can GM> > describe the 0-1000 by five restriction. GM> GM> Are you suggesting something similar? GM> GM> volumeControl OBJECT-TYPE GM> SYNTAX INTEGER{ mute

Re: How to implement a very long enumerated variable

2011-07-14 Thread Giuseppe Modugno
On 14 Jul 2011 at 10:17, Fulko Hew wrote: > I think you have 3 choices: enumerations, integers the way you are suggesting, and a simple > integer. > > Enumerations: > > volumeControl OBJECT-TYPE > SYNTAX INTEGER { > mute  (1), > level-5  (2), > level

Re: How to implement a very long enumerated variable

2011-07-14 Thread Fulko Hew
On Thu, Jul 14, 2011 at 9:46 AM, Giuseppe Modugno wrote: > ** > On 14 Jul 2011 at 7:38, Robert Story wrote: > > 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

Re: How to implement a very long enumerated variable

2011-07-14 Thread Giuseppe Modugno
On 14 Jul 2011 at 7:38, Robert Story wrote: > 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,

Re: How to implement a very long enumerated variable

2011-07-14 Thread Robert Story
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 speci

Re: net-snmp 5.7 for Windows 64-bit build

2011-07-14 Thread Robert Story
On Thu, 14 Jul 2011 12:08:54 +0200 Bart wrote: BVA> On Wed, Jul 13, 2011 at 10:47 PM, Singh, Vinay wrote: BVA> BVA> > Has anyone tried to build net-snmp 5.7 on windows 64-bit platform ? BVA> > BVA> BVA> Builds and runs fine here. I don't suppose you could post binaries? ---

Re: net-snmp 5.7 for Windows 64-bit build

2011-07-14 Thread Bart Van Assche
On Wed, Jul 13, 2011 at 10:47 PM, Singh, Vinay wrote: > Has anyone tried to build net-snmp 5.7 on windows 64-bit platform ? > Builds and runs fine here. Bart. -- AppSumo Presents a FREE Video for the SourceForge Communit

How to implement a very long enumerated variable

2011-07-14 Thread Giuseppe Modugno
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 examp