I'm trying to use the SNMP walk wizard to query a Brocade device but when I specify an OID from the vendor provided mib I added to the system, I get no results. Additionally, if I leave the OID field blank, it does not return any OID's associated with the vendor mib. However, if I run an snmpwalk from the command line, I can show that the vendor mib is being used. Bottom line, it appears that the SNMP Walk wizard is not using the vendor mib that I added to the XI server.
The vender mib added to the system is "SSR03101-MIB.txt". Here is the command line snmpwalk command I ran with an entry point from that mib:
snmpwalk -m +all -v2c -Of -c brocade123 135.110.216.75 brcdSlbVSPortStatsTable
I have uploaded the results from that command. The vendor said this proves the mib is properly installed on the XI server. What do I need to do to get the SNMP Walk wizard to use this mib?
SNMP Walk not using vendor MIB
SNMP Walk not using vendor MIB
You do not have the required permissions to view the files attached to this post.
Re: SNMP Walk not using vendor MIB
In XI, could you go to "Admin", "Manage MIBs" and verify that the MIB file is in the list?
If not, could you upload it?
Can you try to run the SNMP Walk Wizard again but this time, change the timeout value and Max Results to a higher value?
Also, change the Force Scan to yes.
Try that and post back the results.
If not, could you upload it?
Can you try to run the SNMP Walk Wizard again but this time, change the timeout value and Max Results to a higher value?
Also, change the Force Scan to yes.
Try that and post back the results.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: SNMP Walk not using vendor MIB
I actually tried all of those before posting the question. Verified MIB is listed under the mange mibs section. I've also tried increasing the timeout value and maximum result values plus tried a force scan as well. Same results, if I specify an OID from the vendor mib, no results. If I leave the OID field blank, I get a very long list of results but still less than the maximum specified and nothing in that list is from the vendor mib like when run from the command line.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: SNMP Walk not using vendor MIB
This is a mixed issue of ours and snmp binaries. By default they will not pull in all mibs when run, additionally providing -m ALL which should import all mibs, generally causes more issues than it resolves. We do have a current feature request to add selecting a specific mib to walk within the wizard, although I believe its a ways out.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: SNMP Walk not using vendor MIB
Understand. So is there a workaround until that wizard enhancement is done? Is there a way I could force the wizard to pull in all mibs just to see if it gets the results we want?
Re: SNMP Walk not using vendor MIB
Just FYI, I may have found my own workaround. I modified the snmpwalk.inc.php script to include the '-m +all' option and now it appears I'm getting the expected results.ss6396 wrote:Understand. So is there a workaround until that wizard enhancement is done? Is there a way I could force the wizard to pull in all mibs just to see if it gets the results we want?
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: SNMP Walk not using vendor MIB
Oh interesting, would you be able to attach that here in a reply so we can take a look?
Re: SNMP Walk not using vendor MIB
What would you like, the change made to the wizard or the output from running the wizard after the change?slansing wrote:Oh interesting, would you be able to attach that here in a reply so we can take a look?
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: SNMP Walk not using vendor MIB
Just the change, such as a diff of the original, would be great! I have a feeling this parallels our changes as well.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: SNMP Walk not using vendor MIB
The only change made was to the highlighted line below in snmpwalk.inc.php. I only changed the else branch since I'm not using version 3. The below begins at line 386
if($snmpversion=="3"){
$cmdline="/usr/bin/snmpwalk -v ".escapeshellcmd($snmpversion)." ".escapeshellcmd($cmdargs)." ".escapeshellcmd($address).":".escapeshellcmd($port)." ".$useoid." > ".$resultfile." 2>&1 & echo $!";
}
else
$cmdline="/usr/bin/snmpwalk -m +all -v ".escapeshellcmd($snmpversion)." -c ".escapeshellcmd($snmpcommunity).escapeshellcmd($cmdargs)." ".escapeshellcmd($address).":".escapeshellcmd($port)." ".$useoid." > ".$resultfile." 2>&1 & echo $!";
if($snmpversion=="3"){
$cmdline="/usr/bin/snmpwalk -v ".escapeshellcmd($snmpversion)." ".escapeshellcmd($cmdargs)." ".escapeshellcmd($address).":".escapeshellcmd($port)." ".$useoid." > ".$resultfile." 2>&1 & echo $!";
}
else
$cmdline="/usr/bin/snmpwalk -m +all -v ".escapeshellcmd($snmpversion)." -c ".escapeshellcmd($snmpcommunity).escapeshellcmd($cmdargs)." ".escapeshellcmd($address).":".escapeshellcmd($port)." ".$useoid." > ".$resultfile." 2>&1 & echo $!";