From owner-freebsd-net@FreeBSD.ORG Sun Sep 16 22:00:29 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7BDC4106566B for ; Sun, 16 Sep 2012 22:00:29 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1-6.sentex.ca [IPv6:2607:f3e0:0:1::12]) by mx1.freebsd.org (Postfix) with ESMTP id 3D3338FC0C for ; Sun, 16 Sep 2012 22:00:29 +0000 (UTC) Received: from [192.168.43.26] (pyroxene.sentex.ca [199.212.134.18]) by smarthost1.sentex.ca (8.14.5/8.14.5) with ESMTP id q8GM0JeQ013762; Sun, 16 Sep 2012 18:00:20 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <50564BE9.6050104@sentex.net> Date: Sun, 16 Sep 2012 18:00:09 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Ivan Alexandrovich References: In-Reply-To: X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.72 on 64.7.153.18 Cc: freebsd-net@freebsd.org Subject: Re: getting counters for a plenty of vlan ifaces X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Sep 2012 22:00:29 -0000 On 9/16/2012 10:41 AM, Ivan Alexandrovich wrote: > Hi > > We are running freebsd9.0 on a router with > more than 1000 of subscriber's vlan interfaces. > Outgoing packet rate is approximately 40 kpps. > > There's a need to collect bytes and packets > counters for all those vlan interfaces every > minute (or even twice a minute) and store them Hi, We approach it a little differently and collect all the data via netflow, or in this case argus. I sample the parent interface and save all the flow data which argus is smart enough to parse out at the vlan level. You can then run all sorts of fine grained reports this way. We use it on a system with about 900 ng interfaces. ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/