From owner-freebsd-cloud@freebsd.org Wed Jan 11 19:33:59 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 DAE26CAB0DE for ; Wed, 11 Jan 2017 19:33:59 +0000 (UTC) (envelope-from snakedoctr@gmail.com) Received: from mail-oi0-x234.google.com (mail-oi0-x234.google.com [IPv6:2607:f8b0:4003:c06::234]) (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 A3C091318 for ; Wed, 11 Jan 2017 19:33:59 +0000 (UTC) (envelope-from snakedoctr@gmail.com) Received: by mail-oi0-x234.google.com with SMTP id 3so598818455oih.1 for ; Wed, 11 Jan 2017 11:33:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=i/hehWrZc8cfuAcV22ZJkT61JGsiOnFaRw58YZBOe98=; b=pbUIjAlLmd6eZAu1XCcJLFe0Kt2pLmCseKWziu2Bu7Qm+bYM+E8Z6idzMjeFLzhN/N u7V7UUjSYEQcR0NMqT3453ZSokIvqJ/9egACuxTfOYTv9B6Bfda1Gyt9seBD25kIOrsP LSGHRmSRyRQM8wELK2YgIj1ruUOpoOwcjHzCLrzWBl9oIIkkmnoK7VcfgZWRuteg8vRl ADANk7XjVHc4rGvAMtcymZRUyV604CAgm013J4MlcErFDgwE72U0AbOuwFdnMGGMnbRR pyq4/H2h5bPmX+mjEOHXWPmte7R/8JLJm3cn4ijNBP0ykWvMxp5jEIVzAZESpuZrnq4f WIMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=i/hehWrZc8cfuAcV22ZJkT61JGsiOnFaRw58YZBOe98=; b=RsLSCbFsmVhZSlxpmrix6JWavwgS4GxIElVAQDfGDtU2n/OtlqxTp62wBNiCkJPcXu 4RtKFy+5FLwvAbXIVe2gpZvuAfYdKTEfg+D5QZoeCY8UstFKgd9w/TkHkb+VFoCu2Gnn oiNX1h7j40HRjzIPQBLvVYXF/r98nRcaO6aNNhhUv0Z26lWk7cjrrolCXK1ypTFvj5IG Oot5ZW+3zZSLeZbVGBCbSX6h4+P5ZhgjtSCaJtxhR5uZgVHAVDXAhquLlr+qeHnn+xs8 WoC5QeNo4DiPtkaNsny2qrnkGODYoWYnY4eLnHAR8k37EK+yvjuLI9jD7WwC6+JfwvO2 pvOQ== X-Gm-Message-State: AIkVDXI0z4P8sIsWQnOcYb3C2kjxQavAtykPLuLfcJ9y91Yb0wKWnBsmU6975FuNZ1fdwb4Sff1cOb2UjLYcIQ== X-Received: by 10.202.186.7 with SMTP id k7mr4580883oif.206.1484163238747; Wed, 11 Jan 2017 11:33:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.74.71.156 with HTTP; Wed, 11 Jan 2017 11:33:58 -0800 (PST) From: Jason Date: Wed, 11 Jan 2017 14:33:58 -0500 Message-ID: Subject: 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:34:00 -0000 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 21130240 - 3518207522 - 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!