HJ> The output from snmpwalk is showing my data, but it's not clear what is
HJ> turning up where. I'd like to be able to specify index numbers, so that
HJ> (for example) queue-size is always xxxx.50 regardless of whether the
HJ> server has spam-filtering (xxxx.49). Is this possible with this method?
Using "extend" - yes. The EXTEND-MIB tables are defined to be indexed using the name assigned to a given entry, rather than an arbitrary integer. So the results from a directive:
extend qmail-queue ......
would appear in the output tables as
nsExtendOutput1Line."qmail-queue" = "whatever" nsExtendOutputFull."qmail-queue" = "whatever whichever whenever" nsExtendOutNumLines."qmail-queue" = 3 nsExtendResult."qmail-queue" = 0
regardless of how many other "extend" directives were present, or what order they appeared in.
This is the part I hadn't grasped. That's exactly what I was after! :-) Excellent.
HJ> I'm confused - if this is to be the future, shouldn't the path be HJ> better lit? :-)
Probably. Maybe Dave has a short writeup on migration...
The reason that I've disappeared from the users list is precisely because I *am* writing this up! :-) But there is a brief section in the snmpd.conf(5) man page on the "extend" directive.
Note that the plain form of "exec" isn't deprecated. It's just the MIBNUM format that we need to do away with, since it produces bogus output.
Also note that an "exec" directive (without MIBNUM) may well automatically create a corresponding entry in the nsExtend tables as well. So it's probably worth having at a look as this output to compare the two styles.
At least with the default configuration it doesn't do this - I just had a quick test.
Thanks for the additional info though - it was the missing bit I needed to make sense of it. Reading MIB definitions might be fun for someone, but it isn't me :)
Best Regards,
Howard.
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ 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