From owner-freebsd-questions@freebsd.org Wed Oct 12 10:54:23 2016 Return-Path: Delivered-To: freebsd-questions@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 6C057C0DFC2 for ; Wed, 12 Oct 2016 10:54:23 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.fagskolen.gjovik.no", Issuer "Fagskolen i Gj??vik" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 01B786D5 for ; Wed, 12 Oct 2016 10:54:22 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.15.2/8.15.2) with ESMTPS id u9CAsBGW060718 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 12 Oct 2016 12:54:11 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.15.2/8.15.2/Submit) with ESMTP id u9CAsAj6060715 for ; Wed, 12 Oct 2016 12:54:11 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Wed, 12 Oct 2016 12:54:10 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: FreeBSD questions Subject: interfaces.ifTable.ifEntry.ifOutOctets always zero for xn(4) Message-ID: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail.fig.ol.no Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2016 10:54:23 -0000 Does anyone know why interfaces.ifTable.ifEntry.ifOutOctets is always zero for xn(4)? This happens on XenServer 7.0.0 with stable/11 r306639 as the guest. Running MRTG in conjunction with net-mgmt/net-snmp gives me zero for the counter for the outgoing octets, while the counter for the incoming octets ticks away as it should. Is this a bug in the xn(4) driver? -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+ From owner-freebsd-questions@freebsd.org Wed Oct 12 12:12:37 2016 Return-Path: Delivered-To: freebsd-questions@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 614EBC0ED9A for ; Wed, 12 Oct 2016 12:12:37 +0000 (UTC) (envelope-from jkeen@verizon.net) Received: from vms173025pub.verizon.net (vms173025pub.verizon.net [206.46.173.25]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 44373AB5 for ; Wed, 12 Oct 2016 12:12:37 +0000 (UTC) (envelope-from jkeen@verizon.net) Received: from vz-proxy-l001.mx.aol.com ([64.236.82.153]) by vms173025.ctn.ui.verizon.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0OEX009CALSENWA0@vms173025.ctn.ui.verizon.net> for freebsd-questions@freebsd.org; Wed, 12 Oct 2016 06:12:15 -0500 (CDT) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=EKN26xRC c=1 sm=1 tr=0 a=FJ1kTJ0/xm5uTekQe8vMdQ==:117 a=N659UExz7-8A:10 a=CH0kA5CcgfcA:10 a=dXkyNnQV6H2Towv8ym4A:9 a=pILNOxqGKmIA:10 Received: by 71.246.118.77 with SMTP id 704a2f45; Wed, 12 Oct 2016 11:12:15 GMT Subject: Re: $PS1 does not render command-line prompt in color in a FreeBSD VM To: freebsd-questions@freebsd.org References: <20161012050817.0f11b749.freebsd@edvax.de> From: James E Keenan Message-id: <8971b5d8-0e97-c1eb-711c-d9fc5628a279@verizon.net> Date: Wed, 12 Oct 2016 07:12:14 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-version: 1.0 In-reply-to: <20161012050817.0f11b749.freebsd@edvax.de> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2016 12:12:37 -0000 On 10/11/2016 11:08 PM, Polytropon wrote: > On Tue, 11 Oct 2016 21:56:05 -0400, James E Keenan wrote: >> This question concerns display of colors in the command-line prompt on >> two different FreeBSD installations. >> >> For a couple of months I have been using VirtualBox 5.1.2 to run >> FreeBSD-10.3 as a guest on an Ubuntu Linux 16.04 LTS host. When working >> in this VM I have been trying to avoid Linuxisms so as to better learn >> how to work in a BSD environment. One case: I'm using Bourne shell >> rather than Bash as the shell for my own user. > > Side note: the Bourne shell (/bin/sh) is FreeBSD's default scripting > shell, but it's a poor dialog shell, that's why this task is usually > reserved for the C shell (a tcsh in fact), which is recommended for > interactive use (and not as bad as people often assume). > > > >> In my .shrc file, I have >> this assignment for the spelling and color of my command-line prompt: >> >> PS1="[^[[31m\W^[[0m] \$ " >> >> ... where in each of two cases the '^[' is the ESCAPE character \033. >> This produces a prompt which I can verbally describe as: >> >> open-bracket in white; basename of pwd in red; close-bracket, space, >> dollar-sign, space in white >> >> ... which in the terminal looks like: >> >> [jkeenan] $ >> >> where 'jkeenan' is in red and all the rest is in white. So far so good. >> >> Yesterday I installed FreeBSD-11 as a VM on the same Linux host -- only >> this time I switched to using VMWare to house the VM. I brought over my >> .profile, .shrc, .vimrc, etc., files from the 10.3 VM to this new one. >> I expected them to Just Work. However the terminal inside the VMWare >> console seems to be unable to digest the codes for color in the >> assignment to $PS1. That value for $PS1 is rendering as: >> >> [[31mjkeenan[0m] $ >> >> ... all rendered in white; nothing in red. The control sequences to >> change from white to red and back again are simply being literally >> displayed. >> >> I should note that the VMWare console is perfectly capable of rendering >> different colors. Vim gets nice colors in syntax highlighting for both >> sh and perl. >> >> Does anyone have a clue as to why $PS1 DWIMs on FreeBSD-10.3 in >> VirtualBox while FreeBSD-11.0 does not in VMWare? > > Has there been a change to the shell, is the configuration file > somehow "damaged", or are you using some nonstandard $TERM setting > (or other setting in a relevant file) in that specific combination? > No, as stated above, I copied over the .shrc file from one FreeBSD VM to another. I did so with all the other relevant config files. So I'm trying to determine why that file is processed differently in the two environments. > Hint: It helps to "diff .shrc.works .shrc.doesnot" and look for > the PS1 setting output (which there ideally should be none). > >