Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage

2006-02-14 Thread Oleg Polyakov
--- Gleb Smirnoff <[EMAIL PROTECTED]> wrote: > Oleg, Anders, > > can you please remove all your changes to if_bge.c and test the > attached patch. Awaiting for feedback and thanks. It works fine - bge0 connected to GIGE switch, bge1 is not connected # snmpget -c pub -v 1 localhost ifSpeed.1

Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage

2006-02-14 Thread Anders Nordby
Hi, Done. On system with bge and 100 mbps link speed, I get: IF-MIB::ifName.1 = STRING: bge0 IF-MIB::ifName.2 = STRING: bge1 IF-MIB::ifName.3 = STRING: lo0 IF-MIB::ifHighSpeed.1 = Gauge32: 100 IF-MIB::ifHighSpeed.2 = Gauge32: 0 IF-MIB::ifHighSpeed.3 = Gauge32: 0 On system with bge and gigabit li

Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage

2006-02-14 Thread Gleb Smirnoff
Oleg, Anders, can you please remove all your changes to if_bge.c and test the attached patch. Awaiting for feedback and thanks. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE Index: net/if_media.c === RCS file: /home/ncvs/src/sy

Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage

2006-02-14 Thread Harti Brandt
On Tue, 14 Feb 2006, Gleb Smirnoff wrote: GS>On Tue, Feb 14, 2006 at 11:37:23AM +0100, Anders Nordby wrote: GS>A> I should make a list of "what bsnmpd needs" to be more usable, in case GS>A> Harti is interested. ;-P GS> GS>Where is such list? I was thinking to setup such a list on my FreeBSD WiKi

Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage

2006-02-14 Thread Gleb Smirnoff
On Tue, Feb 14, 2006 at 11:37:23AM +0100, Anders Nordby wrote: A> I should make a list of "what bsnmpd needs" to be more usable, in case A> Harti is interested. ;-P Where is such list? -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE ___ freebsd-net@free

Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage

2006-02-14 Thread Anders Nordby
Hi, On Tue, Feb 14, 2006 at 11:44:59AM +0300, Gleb Smirnoff wrote: > H> The driver reports a speed of 10Mbits/sec. ifHighSpeed is ifi_baudrate > H> divided by 10^6 (and rounded). This is the default set by ether_ifattach() > H> if the driver did not set another value. It seems that bge never set

Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage

2006-02-14 Thread Oleg Polyakov
--- Oleg Polyakov <[EMAIL PROTECTED]> wrote: > --- Gleb Smirnoff <[EMAIL PROTECTED]> wrote: > > > On Tue, Feb 14, 2006 at 09:39:00AM +0100, Harti Brandt wrote: > > H> AN>I changed port to 163 cause I am actually using net-snmp snmpd on > port > > H> AN>161 still. Anyway, it seems bsnmpd insists t

Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage

2006-02-14 Thread Harti Brandt
On Tue, 14 Feb 2006, Oleg Polyakov wrote: OP>--- Gleb Smirnoff <[EMAIL PROTECTED]> wrote: OP> OP>> On Tue, Feb 14, 2006 at 09:39:00AM +0100, Harti Brandt wrote: OP>> H> AN>I changed port to 163 cause I am actually using net-snmp snmpd on port OP>> H> AN>161 still. Anyway, it seems bsnmpd insists

Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage

2006-02-14 Thread Oleg Polyakov
--- Gleb Smirnoff <[EMAIL PROTECTED]> wrote: > On Tue, Feb 14, 2006 at 09:39:00AM +0100, Harti Brandt wrote: > H> AN>I changed port to 163 cause I am actually using net-snmp snmpd on port > H> AN>161 still. Anyway, it seems bsnmpd insists these are 10 mbps > interfaces? > H> AN>Why so? > H> > H>

Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage

2006-02-14 Thread Gleb Smirnoff
On Tue, Feb 14, 2006 at 09:50:58AM +0100, Harti Brandt wrote: H> GS>On Tue, Feb 14, 2006 at 09:39:00AM +0100, Harti Brandt wrote: H> GS>H> AN>I changed port to 163 cause I am actually using net-snmp snmpd on port H> GS>H> AN>161 still. Anyway, it seems bsnmpd insists these are 10 mbps interfaces?

Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage

2006-02-14 Thread Harti Brandt
On Tue, 14 Feb 2006, Gleb Smirnoff wrote: GS>On Tue, Feb 14, 2006 at 09:39:00AM +0100, Harti Brandt wrote: GS>H> AN>I changed port to 163 cause I am actually using net-snmp snmpd on port GS>H> AN>161 still. Anyway, it seems bsnmpd insists these are 10 mbps interfaces? GS>H> AN>Why so? GS>H> GS>H

Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage

2006-02-14 Thread Gleb Smirnoff
On Tue, Feb 14, 2006 at 09:39:00AM +0100, Harti Brandt wrote: H> AN>I changed port to 163 cause I am actually using net-snmp snmpd on port H> AN>161 still. Anyway, it seems bsnmpd insists these are 10 mbps interfaces? H> AN>Why so? H> H> The driver reports a speed of 10Mbits/sec. ifHighSpeed is if

Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage

2006-02-14 Thread Harti Brandt
On Tue, 14 Feb 2006, Anders Nordby wrote: AN>On Tue, Feb 14, 2006 at 09:07:42AM +0100, Harti Brandt wrote: AN>>>It seems ifHCInOctets and ifHCOutOctets are missing. How come? Do I need AN>>>to use SNMP v3? Another query tool? AN>> 10 bits/seconds seems utterly wrong for bge interfaces :-) The HC c

Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage

2006-02-14 Thread Anders Nordby
On Tue, Feb 14, 2006 at 09:07:42AM +0100, Harti Brandt wrote: >>It seems ifHCInOctets and ifHCOutOctets are missing. How come? Do I need >>to use SNMP v3? Another query tool? > 10 bits/seconds seems utterly wrong for bge interfaces :-) The HC counters > appear only for speeds >= 20Mbit/sec accordi

Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage

2006-02-14 Thread Harti Brandt
On Mon, 13 Feb 2006, Anders Nordby wrote: AN>Hi, AN> AN>On Tue, Feb 07, 2006 at 05:11:31PM +0300, Gleb Smirnoff wrote: AN>>> Is there any way to have 64-bit SNMP counters in FreeBSD? Especially for AN>>> ifInOctets/ifOutOctets. It seems the built-in bsnmpd only has AN>>> Counter32, and net-snmpd t

Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage

2006-02-13 Thread Gleb Smirnoff
On Mon, Feb 13, 2006 at 06:30:08PM +0100, Anders Nordby wrote: A> On Tue, Feb 07, 2006 at 05:11:31PM +0300, Gleb Smirnoff wrote: A> >> Is there any way to have 64-bit SNMP counters in FreeBSD? Especially for A> >> ifInOctets/ifOutOctets. It seems the built-in bsnmpd only has A> >> Counter32, and ne

Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage

2006-02-13 Thread Anders Nordby
Hi, On Tue, Feb 07, 2006 at 05:11:31PM +0300, Gleb Smirnoff wrote: >> Is there any way to have 64-bit SNMP counters in FreeBSD? Especially for >> ifInOctets/ifOutOctets. It seems the built-in bsnmpd only has >> Counter32, and net-snmpd the same (--enable-mfd-rewrites, which is >> supposed to help,

Re: 64-bit SNMP counters for FreeBSD && graphing bandwidth usage

2006-02-07 Thread Gleb Smirnoff
On Mon, Feb 06, 2006 at 10:24:44AM +0100, Anders Nordby wrote: A> Is there any way to have 64-bit SNMP counters in FreeBSD? Especially for A> ifInOctets/ifOutOctets. It seems the built-in bsnmpd only has A> Counter32, and net-snmpd the same (--enable-mfd-rewrites, which is A> supposed to help, seem