Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Nov 2009 23:05:14 +0500
From:      "Dmitriy Zamuraev" <gigabyte.tmn@gmail.com>
To:        <freebsd-net@freebsd.org>
Subject:   bsnmpd HighCounters on if_lagg
Message-ID:  <001201ca66e7$5a3e20a0$1e010a0a@in72.ru>

next in thread | raw e-mail | index | archive | help
I have BRAS based on FreeBSD 7.2 and mpd 5.3 and three NIC's grouped =
into if_lagg with LACP,
I need to monitor bandwidth with bsnmpd and cacti, by default lagg =
interface baud rate is 10Mbitps,
so bsnmpd can't collect Counter64 on this interface.

I'm modify if_lagg.c file:
function lagg_link_state():
u_long new_baudrate;
SLIST_FORAECH(lp, &sc_ports, lp_entries)
    if (lp->lp_link_state =3D=3D LINK_STATE_UP)
        new_baudrate +=3D lp->lp_ifp->if_baudrate;
sc->sc_ifp->if_baudrate =3D new_baudrate;

So, bsnmpd shows ifHighSpeed and ifHC(In|Out)Octets. I'm happy.

Also i have if_vlan interfaces over the if_lagg, and vlan interfaces =
have baud rate 10Mbitps too.
I don't need Counter64 functionality on vlan interfaces, but i think =
develop this functionality is difficult.

Please, tell me who needs this functionality.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001201ca66e7$5a3e20a0$1e010a0a>