Re: MIB for my NIC cards
- From: Allen McIntosh <nospam@xxxxxxxxxxxxxxxx>
- Date: Tue, 29 Apr 2008 23:09:37 -0400
Damon Getsman wrote:
On Apr 29, 4:18 pm, "h.stroph" <m...@xxxxxxxxxxx> wrote:"Damon Getsman" <dgets...@xxxxxxxxxxxx> wrote in message
news:b43e726a-9b77-40ac-802f-00e6982b4556@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I've currently been trying to locate them by hardware vendor, I guess"man snmpwalk" might be helpful to you.
that might not be the right path to be taking... Perhaps I should be
looking in subtrees of the associated device? (ie eth0, eth1)
If anybody knows where I might be able to look for this information I
would definitely appreciate it. :)
I was totally on the wrong track, as far as I can tell, with that
last .1.3.6.1.2.1.2.2.1.2 lead that I was going on.
I started looking closer to home, thinking that I'd dug through too
many conversations indexed by google in my research on this and maybe
gotten pulled a bit off track. Sure enough, I finally found what I
was looking for in some of the data available under <net-snmp/mib-
share>/IF-MIB.txt. I shouldn't have been looking for a particular
piece of hardware's attribute, I needed to look under the interface
itself. Maybe that information is available under a hardware specific
MIB as well, but this was much easier to find.
The information that I need to poll is definitely in that MIB. I just
need to figure out how to specify which interface I'm working on,
first, and then under the IfEntry sequence there are the stats I need:
ifInDiscards (13), ifInErrors (14), ifOutDiscards (19), ifOutErrors
(20), ifOutQLen (21).
SO I should just have to figure out what the full name for this MIB is
and do snmptranslate on that to convert it to a numeric OID. After I
have such, I make this available to the group that I am polling under
in snmpd.conf, and I'll have access to my data.
snmpwalk will help me a lot, I'm sure, once I know how to construct
the full string to feed to snmptranslate. I don't have a clue where
to find that just yet, only that what I need is in IF-MIB. :P
-Damon
snmpwalk -v 2c -c communityNameGoesHere localhost iftable
Look at ifdescr
.
- References:
- MIB for my NIC cards
- From: Damon Getsman
- Re: MIB for my NIC cards
- From: h.stroph
- Re: MIB for my NIC cards
- From: Damon Getsman
- MIB for my NIC cards
- Prev by Date: Re: MIB for my NIC cards
- Next by Date: Re: Slow telnet/pop3 connection
- Previous by thread: Re: MIB for my NIC cards
- Index(es):
Relevant Pages
|