On Wed, 2005-10-19 at 20:57 +0200, Turbo Fredriksson wrote: > In another thread to day (private MIB definition problem) > you talked about "using two 32-bit integer index values"... > > Could you please explain what that means and how to accomplish > it?
Sure - it's probably easier to illustrate with 2-digit (decimal) values, but applying the same concept to 32-bit (binary) values should be fairly straightforward. This will be left as an exercise for the student :-) Assume that I have a table, indexed by 4-digit values (in the range 0-9999). The most natural way to represent an entry in this table would be of the form: myTable.someColumn.1234 But unfortunately, VSNMP(*) can't handle the index value 1234. It's just Too Darned Big. (*) Very Simple Network Management Protocol Instead, I must define the table as taking *two* index values: hectoIndex, unitIndex (each in the range 0-99). So the same entry can now be represented as: myTable.someColumn.12.34 The indexing "looks wrong" (particularly if this uses 32-bit binary values), but a suitable front-end application can recombine the two values, and display the results appropriately. > Does it have any relevance here? I don't want it in the index, > but in a table column. Yup. Exactly the same technique can be used for column values. Split one (64-bit) value into two (32-bit) values, and have the management application re-combine them. > > You're probably better off looking at using an embedded > > perl or C-based implementation. > > I've seen the references to 'embedded perl', but I never followed > through... Would it be easy to convert my current pass_persist > perl script to an embedded one? Pass - it's not something I've ever really looked at. > Is there any documentation about this? http://www.net-snmp.org/tutorial/tutorial-5/toolkit/perl/index.html and $ man snmpd.conf EMBEDDED PERL SUPPORT Dave ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users