the ucd snmp tools don't automatically know that you've dropped a MIB file into /home/zenoss/share/mibs/site
There are a few ways to get the ucd snmp tools to use those MIBS: Method 1: snmpwalk -D +/home/zenoss/share/mibs/site -m ALL -v 2c -c test_ro 10.0.0.2 1.3.6.1.4.1.4491.2.3.1.1.1.2.2 Method 2: export MIBDIRS=+/home/zenoss/share/mibs/site export MIBLIST=ALL snmpwalk -v 2c -c test_ro 10.0.0.2 1.3.6.1.4.1.4491.2.3.1.1.1.2.2 Method 3: read the man page for snmp.conf and add appropriate values for "mibs" and "mibdirs" As far as output goes, bring up the manual page for snmpcmd and read the "OUTPUT OPTIONS" section. The snmpcmd man page contains a wealth of information. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Need Help > Sent: Thursday, 13 September, 2007 11:16 > To: [email protected] > Subject: [zenoss-users] Bump? (Re: Questions about performing > a SNMP query) > > Any help provided would be apperciated. Thanks > > > Need Help <[EMAIL PROTECTED]> wrote: > > I have a device which can be queried using SNMP. A > co-worker and I are trying out the Zenoss frontend to see if > we can get it configured to perform the SNMP queries we want > for us. We are both new to SNMP. > > We are working in a WinXP environment and have > installed/started the VMWare software and then went into our > Mozilla brower and started the Zenoss core application by > going to the provided ipAddress. > > In the VMWare window we placed the required MIB files > into the "/home/zenoss/share/mibs/site" directory (which we > had to create) and ran the "zenmib run -v 10" command which > seems to have loaded all the MIB files at one time for us. > All the MIB files which have been loaded are now listed > within the "MIBs" menu page. > > > Now, we are issuing the following "snmpwalk" request to > retrieve data which has been defined within our MIB (ie: > OC-STB-HOST-MIB): > > snmpwalk -v 2c -c test_ro 10.0.0.2 > 1.3.6.1.4.1.4491.2.3.1.1.1.2.2 > > > where "1.3.6.1.4.1.4491.2.3.1.1.1.2.2" is the OID of > the main table defined in our OC-STB-HOST-MIB mib file. > > > The SNMP response data is shown below: > > SNMPv2-SMI::enterprises.4491.2.3.1.1.1.2.2.1.2.1 = OID: > SNMPv2-SMI::enterprises.4491.2.3.1.1.1.2.1.2 > SNMPv2-SMI::enterprises.4491.2.3.1.1.1.2.2.1.2.2 = OID: > SNMPv2-SMI::enterprises.4491.2.3.1.1.1.2.1.3 > SNMPv2-SMI::enterprises.4491.2.3.1.1.1.2.2.1.2.3 = OID: > SNMPv2-SMI::enterprises.4491.2.3.1.1.1.2.1.4 > SNMPv2-SMI::enterprises.4491.2.3.1.1.1.2.2.1.2.4 = OID: > SNMPv2-SMI::enterprises.4491.2.3.1.1.1.2.1.4 > SNMPv2-SMI::enterprises.4491.2.3.1.1.1.2.2.1.2.5 = OID: > SNMPv2-SMI::enterprises.4491.2.3.1.1.1.2.1.7 > SNMPv2-SMI::enterprises.4491.2.3.1.1.1.2.2.1.2.6 = OID: > SNMPv2-SMI::enterprises.4491.2.3.1.1.1.2.1.8 > SNMPv2-SMI::enterprises.4491.2.3.1.1.1.2.2.1.2.7 = OID: > SNMPv2-SMI::enterprises.4491.2.3.1.1.1.2.1.8 > SNMPv2-SMI::enterprises.4491.2.3.1.1.1.2.2.1.2.8 = OID: > SNMPv2-SMI::enterprises.4491.2.3.1.1.1.2.1.9 > SNMPv2-SMI::enterprises.4491.2.3.1.1.1.2.2.1.2.9 = OID: > SNMPv2-SMI::enterprises.4491.2.3.1.1.1.2.1.11 > SNMPv2-SMI::enterprises.4491.2.3.1.1.1.2.2.1.2.10 = > OID: SNMPv2-SMI::enterprises.4491.2.3.1.1.1.2.1.13 > SNMPv2-SMI::enterprises.4491.2.3.1.1.1.2.2.1.2.11 = > OID: SNMPv2-SMI::enterprises.4491.2.3.1.1.1.2.1.15 > > > We have two questions: > > 1) Why does the SNMP response output have the > "SNMPv2-SMI::enterprises...." text included? I would expect > the output to be indicating our "OC-STB-HOST-MIB" mib instead > the "SNMPv2-SMI" mib name instead. > > 2) Is there a way to get the SNMP response data to be > displayed in English text rather than simply displaying the > OID values? > > > This is how I would have expected the SNMP output to be > displayed: > > OC-STB-HOST-MIB::ocStbHostAVInterfaceType.1 = OID: > OC-STB-HOST-MIB::ocStbHostScte55FdcRx > OC-STB-HOST-MIB::ocStbHostAVInterfaceType.2 = OID: > OC-STB-HOST-MIB::ocStbHostScte55RdcTx > OC-STB-HOST-MIB::ocStbHostAVInterfaceType.3 = OID: > OC-STB-HOST-MIB::ocStbHostScte40FatRx > OC-STB-HOST-MIB::ocStbHostAVInterfaceType.4 = OID: > OC-STB-HOST-MIB::ocStbHostScte40FatRx > OC-STB-HOST-MIB::ocStbHostAVInterfaceType.5 = OID: > OC-STB-HOST-MIB::ocStbHostBbVideoOut > OC-STB-HOST-MIB::ocStbHostAVInterfaceType.6 = OID: > OC-STB-HOST-MIB::ocStbHostBbAudioOut > OC-STB-HOST-MIB::ocStbHostAVInterfaceType.7 = OID: > OC-STB-HOST-MIB::ocStbHostBbAudioOut > OC-STB-HOST-MIB::ocStbHostAVInterfaceType.8 = OID: > OC-STB-HOST-MIB::ocStbHostRfOutCh > OC-STB-HOST-MIB::ocStbHostAVInterfaceType.9 = OID: > OC-STB-HOST-MIB::ocStbHostSVideoOut > OC-STB-HOST-MIB::ocStbHostAVInterfaceType.10 = OID: > OC-STB-HOST-MIB::ocStbHostComponentOut > OC-STB-HOST-MIB::ocStbHostAVInterfaceType.11 = OID: > OC-STB-HOST-MIB::ocStbHostDviOut > > > > > > ________________________________ > > Check out > <http://us.rd.yahoo.com/evt=51201/*http://autos.yahoo.com/new_ > cars.html;_ylc=X3oDMTE5NWVzZGVyBF9TAzk3MTA3MDc2BHNlYwNtYWlsdGF > ncwRzbGsDYXV0b3MtbmV3Y2Fy> the hottest 2008 models today at > Yahoo! Autos. _______________________________________________ > zenoss-users mailing list > [email protected] > http://lists.zenoss.org/mailman/listinfo/zenoss-users > > > ________________________________ > > Don't let your dream ride pass you by. Make it a reality > <http://us.rd.yahoo.com/evt=51200/*http://autos.yahoo.com/inde > x.html;_ylc=X3oDMTFibjNlcHF0BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncw > RzbGsDYXV0b3MtZHJlYW1jYXI-> with Yahoo! Autos. > _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
