Hi Bart,

Net-SNMP 5.4.2.1 already has the skeleton of etherStatsTable. statistics.c,
statistics.h, agutil_api.h, agutil.c, agutil.h, row_api.h, rows.c, rows.h.
This does not have the implementation to get data from the system. I was
implementing that. I did not generate the code using mib2c. I searched in
the proc/net/dev, but did not find the values for all the parameters. Sanjay
suggested me to look at ethtool. It works. I can get all the values from it.
Thank you... :)

Cheers,
Srivardhan

On Fri, Nov 20, 2009 at 1:21 PM, Bart Van Assche
<bart.vanass...@gmail.com>wrote:

> On Fri, Nov 20, 2009 at 8:22 AM, srivardhan hebbar <
> ruinlovewit...@gmail.com> wrote:
>
>> I am trying to implement etherStatsTable of the Rmon mib. I am using
>> Net-SNMP 5.4.2.1. I am implementing it on linux kernel. I can get the values
>> of some parameters from /proc/net/dev. The following are the parameters for
>> which I could not find from where to get the values from the system.
>>
>
> Hello Srivardhan,
>
> Please have a look at the source files under
> agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable* first. Is there any
> functionality missing in these files that you need ?
>
> $ ls agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable*
> agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable.c
> agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable_data_access.c
> agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable_data_access.h
> agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable_data_get.c
> agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable_data_get.h
> agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable_data_set.c
> agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable_data_set.h
> agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable_enums.h
> agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable.h
> agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable_interface.c
> agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable_interface.h
> agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable_oids.h
>
> Bart.
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to