From owner-freebsd-cloud@freebsd.org Wed Jan 11 19:35:14 2017 Return-Path: Delivered-To: freebsd-cloud@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F339FCAB117 for ; Wed, 11 Jan 2017 19:35:14 +0000 (UTC) (envelope-from snakedoctr@gmail.com) Received: from mail-oi0-x22d.google.com (mail-oi0-x22d.google.com [IPv6:2607:f8b0:4003:c06::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B9BBE1347 for ; Wed, 11 Jan 2017 19:35:14 +0000 (UTC) (envelope-from snakedoctr@gmail.com) Received: by mail-oi0-x22d.google.com with SMTP id w204so101623744oiw.0 for ; Wed, 11 Jan 2017 11:35:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=lN7itUh8bIXrCyEgMvRPrYfR0wBE/IR0LUB8fC+QIRY=; b=bsFu8FwR+4tEhyc8NjS8s2JtEmKrBru1aZ7EuMr/imYh7OZ6mOvjDeMY5MWMeepj4p FMSjBSudhm1UzhohIlk4LqnU1xoY3o46V2V4ntWmYfj/5VGhYCz7cDTVGMRkuyh6W3xT LknNeHd/uZOIr2lAPW3ov+YjLmctVQKq9tf93RvxTGNrPNDWxy8YrM1jSiNUhDPatChg UuYX8I9Az+Tt7TOCDCGTDJb5ZG2vmP49iNFokaOAxKFCynawe3kyePnM3U9dI4UarvoB sOYzBXYRf/JS9EY+8wemcWasocdbZxnTWk7Lxe5mykAOCFpVzemQnmSKlSYbjWJGKs94 eMwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=lN7itUh8bIXrCyEgMvRPrYfR0wBE/IR0LUB8fC+QIRY=; b=jTHuD59pvNDEXfD4iES5sBAIe/WDvVEf4Rr3yF10s7CjEW7BkjlLAbrncpRlcv2aYf LTVn11HgWcxinzGJkIaWgzahHyTBIG0K/dSgOZHiOvs2tQ1pj5lfRKZiYDszqG9Zn5w9 Z5X7vqRtUd1GaDC6lnkx1Fucy4z+AEXc7RKEUcWQ9jCwv+GyjTKBYC19O8F4HDB2oBSY spLQGVAX0VH3SsPb+NYwfgl0rLh55Fcu0L11FVLpZJctrcDMT7ggSzf3IHuB98qvtt8U tHIhHGTk714wR39bJ/tHxHaJ6Ok5yYVvdV6iSgH+FhD1Gdp3DyATboMJ5OpObwUy52gB AbaA== X-Gm-Message-State: AIkVDXJXpn0ieeqbqaBWlUHWQI/ps6KW16jKuuWkMo/m5qz3VfSffXy6RIDp7M4Ce0Kan+ACsndc7K6vw1iCDw== X-Received: by 10.157.46.67 with SMTP id c3mr4745723otd.163.1484163314084; Wed, 11 Jan 2017 11:35:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.74.71.156 with HTTP; Wed, 11 Jan 2017 11:35:13 -0800 (PST) In-Reply-To: References: From: Jason Date: Wed, 11 Jan 2017 14:35:13 -0500 Message-ID: Subject: Re: xn0 interface "Obytes" not populating To: freebsd-cloud@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-cloud@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "FreeBSD on cloud platforms \(EC2, GCE, Azure, etc.\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2017 19:35:15 -0000 Sorry, I meant to say that the working machine uses the em interface (not fxp like I mentioned). On Wed, Jan 11, 2017 at 2:33 PM, Jason wrote: > Hi, > I installed vnstat, which is a bandwidth monitoring app. I noticed that > for some reason its TX bytes were 0, but the RX bytes were being tracked as > expected. I don't know how vnstat is collecting its metrics every 5 > minutes, but I'm guessing it's similar to how 'netstat -I xn0 -bn' would > collect its details. After running 'netstat -I xn0 -bn', I notice that > "Obytes" for "" is 0, which may be the problem. However, the > "Obytes" for the actual IP address seems to be working: > > # netstat -I xn0 -bn > Name Mtu Network Address Ipkts Ierrs Idrop > Ibytes Opkts Oerrs Obytes Coll > xn0 1500 22659117 0 0 > 2579194762 21221967 0 0 0 > xn0 - 10.0.10.0/24 10.0.10.40 22567359 - - > 2258113267 <(225)%20811-3267> 21130240 - 3518207522 <(351)%20820-7522> > - > > On a different machine that command works fine. It is running BSD 11 as > well, but it's not using the xn driver -- it uses the fxp driver. It's > output is: > > # netstat -I xn0 -bn > Name Mtu Network Address Ipkts Ierrs Idrop > Ibytes Opkts Oerrs Obytes Coll > em0 1500 1507204306 0 0 > 1567750969110 100389817 0 80619546746 0 > em0 - 192.168.10.0/ 192.168.10.10 1506281038 - - > 1548639235291 100283723 - 79211140098 - > > I'm running FreeBSD 11 on both instances, except the one that's having > difficulty is running on AWS, so is on Xen. > > Any insight into how to fix this so "Obytes" populates for "Link#2"? > > Thanks! >