?
Solved

new to SNMP, need some hand-holding

Posted on 2008-11-18
10
Medium Priority
?
235 Views
Last Modified: 2012-05-05
So I'm setting up an SNMP monitor for a RAID array.  The manager/agent suite has already been installed on the remote server.  Next step is testing it, and figuring out how/what to monitor.  I'm looking for a piece of software that can generate packets from my local machine to the server to browse the remote MIB, get information, etc., so on.

The end goal is to monitor the RAID array for failures from a monitoring server.  Any advice towards that end is welcome.
0
Comment
Question by:Steve Bink
  • 6
  • 4
10 Comments
 
LVL 23

Expert Comment

by:that1guy15
ID: 22987817
snmpwalk is a simple command that will pull all available OIDs and their values from a remote computer

snmpwalk -Oav -v1 -c public <ip address> <OID>

there are also lots of good free tools out there that will pull the same info for you. just google search mib browser.

0
 
LVL 51

Author Comment

by:Steve Bink
ID: 22988671
I found the net-snmp suite, and have it installed on my workstation.  I was trying to use snmptranslate to show information about the MIB file, which I copied over from the server (MEGARAID.MIB).  I put the MIB in c:\usr\share\snmp\mib, where I noticed the rest of the MIB files.  When I tried loading the file, it said it could not be found.  I think I finally got it to load by putting the full path/filename in the snmp.conf file.  At least, it stopped giving me the message that it couldn't be loaded, but I still can't be sure...

And that's because I need a server reboot.  We found a handy-dandy GUI tool to walk the whole SNMP spectrum offered by the server, and the RAID values were nowhere to be found.  We're assuming it needs a reboot after installing the agent because of that, and the fact that it told us to reboot and we didn't.  :)  That will happen this evening.  I'll catch back up with you on this tomorrow.
0
 
LVL 51

Author Comment

by:Steve Bink
ID: 22988689
In the meantime, what would be the command line to get a tree view from snmpwalk?  I've tried multiple options, but can't seem to nail it.  If not a tree view, then at least a view where the entire OID chain is printed for each new object.  Like this:

1 iso
1.3 another desc
1.3.6 yet another

instead of this:

1 iso
3 another desc
6 yet another
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 23

Expert Comment

by:that1guy15
ID: 22988796
snmpwalk -Oav -v1 -c public 10.0.0.100 .1.3.6.1.4.1.2021.8.1.101

will give you values for all OID's under 1.3.6.1.4.1.2021.8.1.101 that are on the server
0
 
LVL 51

Author Comment

by:Steve Bink
ID: 22988986
I understand that part of it.  But when it prints out the results, it only provides the single level of OID.  I'd like to see an entire tree view for how the different objects relate.  Is there an easy switch to make that happen?
0
 
LVL 23

Accepted Solution

by:
that1guy15 earned 2000 total points
ID: 22989083
If you use snmpwalk without any switches then it should give you what you want.

snmpwalk -v 1 -c public 10.0.0.1
0
 
LVL 51

Author Comment

by:Steve Bink
ID: 22994584
So far, that looks like what I want, but we still can't do a proper test today since the server was not rebooted last night.  Or maybe it attempted to reboot and stopped...we're not sure yet.

Anyways, when I query the SNMP agent, I still see none of the RAID items described in the MIB file, but it does seem to be parsed by snmpwalk.  So far so good, I suppose.  Waiting until tomorrow...again.
0
 
LVL 51

Author Comment

by:Steve Bink
ID: 23004018
ARGH!  Night shift failed to reboot again.  SysAdmin manager should be on tonight, though...thanks for your patience.
0
 
LVL 23

Expert Comment

by:that1guy15
ID: 23004607
:) no problem
0
 
LVL 51

Author Comment

by:Steve Bink
ID: 23031602
My apologies for the late return.

We finally got the server rebooted.  It turned out the SNMP agent never really got installed.  We had to go through another installation process (and subsequent reboot) before it started replying with anything near expectations.  Once it was in, though, everything was coming up as expected.

So, I was doing it right...the server was "doing it wrong"..  :)  Thanks for your assistance.

0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Wildcard Certificate means all of your sub-domains will resolve to the same location, regardless of the non-SSL Document-Root specification. A user will need to purchase a wildcard SSL from a vendor or a reseller that supplies them. Similar to ha…
This article is in response to a question (http://www.experts-exchange.com/Networking/Network_Management/Network_Analysis/Q_28230497.html) here at Experts Exchange. The Original Poster (OP) requires a utility that will accept a list of IP addresses …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question