Networking Forums

Networking Forums > Computer Networking > Linux Networking > MIB for my NIC cards

Reply
Thread Tools Display Modes

MIB for my NIC cards

 
 
Damon Getsman
Guest
Posts: n/a

 
      04-29-2008, 09:06 PM
Hello; I'm trying to get regular polling of the errors, txqueue
length, and dropped packets from my ethernet cards on a machine. I've
already got snmpd set up on it serving other data just fine; it's just
that I can't seem to locate the MIB for these particular devices (and
associated subtree that would have these errors accessible) anywhere.
I've currently been trying to locate them by hardware vendor, I guess
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.

Oh not sure if this matters but the hardware device is a RealTek
RTL8139.

Thanks!

-Damon
 
Reply With Quote
 
 
 
 
h.stroph
Guest
Posts: n/a

 
      04-29-2008, 09:18 PM
"Damon Getsman" <(E-Mail Removed)> wrote in message
news:b43e726a-9b77-40ac-802f-(E-Mail Removed)...

> I've currently been trying to locate them by hardware vendor, I guess
> 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.


"man snmpwalk" might be helpful to you.


 
Reply With Quote
 
Damon Getsman
Guest
Posts: n/a

 
      04-29-2008, 09:44 PM
On Apr 29, 4:18 pm, "h.stroph" <m...@privacy.net> wrote:
> "Damon Getsman" <dgets...@amirehab.net> wrote in message
>
> news:b43e726a-9b77-40ac-802f-(E-Mail Removed)...
>
> > I've currently been trying to locate them by hardware vendor, I guess
> > 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.

>
> "man snmpwalk" might be helpful to you.


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
 
Reply With Quote
 
Allen McIntosh
Guest
Posts: n/a

 
      04-30-2008, 03:09 AM
Damon Getsman wrote:
> On Apr 29, 4:18 pm, "h.stroph" <m...@privacy.net> wrote:
>> "Damon Getsman" <dgets...@amirehab.net> wrote in message
>>
>> news:b43e726a-9b77-40ac-802f-(E-Mail Removed)...
>>
>>> I've currently been trying to locate them by hardware vendor, I guess
>>> 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.

>> "man snmpwalk" might be helpful to you.

>
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which PCI Cards? Robin Grayson Wireless Internet 0 06-01-2005 07:16 PM
Nic Cards msw Windows Networking 2 02-21-2005 02:08 PM
Network Cards / Video cards SJ Home Networking 4 01-13-2005 07:28 PM
two cards only? QW Wireless Internet 2 07-03-2004 12:11 AM
PC Cards Altar Wireless Internet 0 11-24-2003 03:40 PM



1 2 3 4 5 6 7 8 9 10 11