• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 238
  • Last Modified:

new to SNMP, need some hand-holding

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
Steve Bink
Asked:
Steve Bink
  • 6
  • 4
1 Solution
 
that1guy15Commented:
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
 
Steve BinkAuthor Commented:
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
 
Steve BinkAuthor Commented:
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
Worried about phishing attacks?

90% of attacks start with a phish. It’s critical that IT admins and MSSPs have the right security in place to protect their end users from these phishing attacks. Check out our latest feature brief for tips and tricks to keep your employees off a hackers line!

 
that1guy15Commented:
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
 
Steve BinkAuthor Commented:
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
 
that1guy15Commented:
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
 
Steve BinkAuthor Commented:
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
 
Steve BinkAuthor Commented:
ARGH!  Night shift failed to reboot again.  SysAdmin manager should be on tonight, though...thanks for your patience.
0
 
that1guy15Commented:
:) no problem
0
 
Steve BinkAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Worried about phishing attacks?

90% of attacks start with a phish. It’s critical that IT admins and MSSPs have the right security in place to protect their end users from these phishing attacks. Check out our latest feature brief for tips and tricks to keep your employees off a hackers line!

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now