I am trying to do something similar, but with a version that does not support the "pass" directive. Because there's no definitive reference for any of this, you sort of have to "infer" behavior.
I found looking at the IF-MIB to be helpful. There does appear to be some numeric "indexing" that is required when you don't have certain elements hard coded into the MIB or your snmpd.conf file. For example, querying the IF-MIB will produce data specific to the interfaces on that server. It will produce something else on a different type of server. It appears that the MIB or SNMP itself creates tables on the fly based upon some sort of "meta-data" or index it produces. The IF-MIB, for example has OID's that will tell you how many interfaces there are (a single integer) or will produce an enumerated list (e.g., 1, 2, 3, 4,) for each OID. Now, the mystery is how this all ties together. I have yet to find any clear information on this. I did, however, produce some similar results using the "exec" directive, which is being deprecated. If you can make this work, I'll love to here how. Michael Peoples Senior Systems Manager AT&T - ATTSI Office: 614-789-8559 Cell: 614-886-0923 FAX: 614-789-8975 mpeop...@att.com -----Original Message----- From: Dave Shield [mailto:d.t.shi...@liverpool.ac.uk] Sent: Friday, April 09, 2010 6:26 AM To: Michael Musenbrock Cc: net-snmp-users@lists.sourceforge.net Subject: Re: create table with pass directive On 8 April 2010 18:12, Michael Musenbrock <redea...@gmx.net> wrote: > If I do a snmpwalk on that oid, it looks quite ok for me: > > ##### start Snmpwalk output ########## > > # snmpwalk -mALL -v2c -c public -Os localhost .1.3.6.1.4.1.232.6.2.7.2 > cpqHePostMsgIndex.1 = INTEGER: 1 > cpqHePostMsgIndex.2 = INTEGER: 2 > cpqHePostMsgIndex.3 = INTEGER: 3 > cpqHePostMsgCode.1 = INTEGER: 2 > cpqHePostMsgCode.2 = INTEGER: 2 > cpqHePostMsgCode.3 = INTEGER: 2 > cpqHePostMsgDesc.1 = STRING: "test 1" > cpqHePostMsgDesc.2 = STRING: "test 2" > cpqHePostMsgDesc.3 = STRING: "test 3" > > ##### end Snmpwalk output ########## Yup - that looks fine. (To be picky, the MIB object cpqHePostMsgIndex should be defined as "not-accessible", and omitted from the script. But that shouldn't cause the problems you are seeing). > For me it looks like that there is some index or count > information missing?! I don't think so - though it's not really possible to tell from the above. You might try running the query with '-Of' (or '-On') instead of '-Os' to check that the full OIDs being returned are correct. > But if i going to to a snmptable, it says 'no entries': > > ##### start Snmptable output ########## > > # snmptable -mALL -v2c -c public -Os localhost .1.3.6.1.4.1.232.6.2.7.2 > cpqHePostMsgTable: No entries > > ##### end Snmptable output ########## The only other thing that springs to mind is to use SNMPv1, or the flag '-CB', so that the table is retrieved using GETNEXT rather than GETBULK Dave ------------------------------------------------------------------------ ------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ 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 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ 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