From owner-freebsd-questions@freebsd.org Thu Nov 23 14:37:55 2017 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 4F81BDEE5A2 for ; Thu, 23 Nov 2017 14:37:55 +0000 (UTC) (envelope-from zgreenfelder@gmail.com) Received: from mail-qk0-x230.google.com (mail-qk0-x230.google.com [IPv6:2607:f8b0:400d:c09::230]) (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 06B986DBE9 for ; Thu, 23 Nov 2017 14:37:55 +0000 (UTC) (envelope-from zgreenfelder@gmail.com) Received: by mail-qk0-x230.google.com with SMTP id w125so21213772qkb.6 for ; Thu, 23 Nov 2017 06:37:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=qKXS/1dMEyVMSP3SQsOvZDboPbhl9IuhtKWeMmD2glA=; b=N3NsTKh0lXoXcPUmjjwNZgC8qTxmO71fuIQ9zeGvfIPOkHOiLj9Y++Jg8idc4jWbUY 2hyrpEdIEw0P2g0wB0OBnLVqChu9DFunub/+h4JI2pItR5lSoAaPHZOXKIKKPCRP0054 oeqRxY3UmSbSX1NRlurDnvNiUrI2BRlEFBFDpL/IRTeGqFo/3g/7CkjIesrojWCKtXeU tZKd3FZhLKfO16yCjwcGCpNhVbnFL08N42Q6c/LnXYRhz/x9/YQb6zwYMleJV3zfk0Me OmBCTQ6VwVE1WWWVsJDrvOU8jSAGVdf7X/9DkP5TXHRrNsT+Dyfbm/CL3WCs2gY7aiH8 f1oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=qKXS/1dMEyVMSP3SQsOvZDboPbhl9IuhtKWeMmD2glA=; b=d7JlxDiZeAXFrdyH7zc8DCvQqwrxc4FBXphuEBwNd0fpz9hoGwvHlqMJeh9je9osuh V9n5Q9UP8QlfH0HjTSbSmzQl4S/vMUexsri5WPbmVKDpxuEopH92EsissYqqX9hWroRL F3Ai8kudx8hcWzNKdFMvZcQmTJdzyOdilIEpnSIauuj97X1DfJISi9EeSkTorW25ok+0 DZULhUk0elnVUXQ9HlplqSaPvppWVDCoh5skmOilOIJ0ooQ++NE2E0bZpyNcxeV3i5LB oZGLNzZd1xarf4lveyvq3urudWfgVSHbMuz6olze/moDh1Z3hTtWzBfWIH+ysc0RwjXS 2J6w== X-Gm-Message-State: AJaThX46MLePkZF/eW20Ep2lNiyb3smRyv2DYEmh7haU6iozdd5rxHS5 sZ9+RWqWaP35yIta4lVAdggk5r2P X-Google-Smtp-Source: AGs4zMaLb/FdjVOcytjxFuCGMRM4OXpHW7Ih30FbYLcHuwdlX26F/qcTgrNFo6PyN1rfsa09L/9q0w== X-Received: by 10.233.239.211 with SMTP id d202mr36988714qkg.165.1511447873618; Thu, 23 Nov 2017 06:37:53 -0800 (PST) Received: from [192.168.10.31] (pool-71-178-8-115.washdc.fios.verizon.net. [71.178.8.115]) by smtp.gmail.com with ESMTPSA id p74sm12936582qkl.22.2017.11.23.06.37.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Nov 2017 06:37:52 -0800 (PST) Subject: Re: Network interface status: command To: freebsd-questions@freebsd.org References: <5A16D9A8.3080303@gmail.com> From: zep Message-ID: <4244add0-e809-7de6-2438-62447e49ba4f@gmail.com> Date: Thu, 23 Nov 2017 09:37:50 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <5A16D9A8.3080303@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Nov 2017 14:37:55 -0000 On 11/23/2017 09:22 AM, Ernie Luzar wrote: > In the daily run status report I see a "Network interface status:" > display. > > What console command is generating it? > tl;dr -- netstat with a couple options i & d. I'd never really noticed it; it probably would be helpful to put the output just to make sure things are lining up, and rather than just hand you what I think is going on, this seems like a good time to teach people what little I know of fishing. if the email you're seeing is part of a daily run, it's set by the system and not something you put in as root user (you can do crontab -l as root to verify it's not there), then there's the system cron file in /etc/crontab # Perform daily/weekly/monthly maintenance. 1    3    *    *    *    root    periodic daily 15    4    *    *    6    root    periodic weekly 30    5    1    *    *    root    periodic monthly that seems like a pretty good suspect, man on 'periodic'  -      If an argument is an absolute directory name it is used as is, otherwise      it is searched for under /etc/periodic and any other directories speci-      fied by the local_periodic setting in periodic.conf(5) (see below). check the directories root@nexus:/etc/periodic/daily # ls 100.clean-disks        330.news        440.status-mailq 110.clean-tmps        400.status-disks    450.status-security 120.clean-preserve    401.status-graid    460.status-mail-rejects 130.clean-msgs        404.status-zfs        480.leapfile-ntpd 140.clean-rwho        406.status-gmirror    480.status-ntpd 150.clean-hoststat    407.status-graid3    500.queuerun 200.backup-passwd    408.status-gstripe    510.status-world-kernel 210.backup-aliases    409.status-gconcat    800.scrub-zfs 300.calendar        420.status-network    999.local 310.accounting        430.status-rwho that 420.status-network seems like a good candidate root@nexus:/etc/periodic/daily # sh -x 420.status-network ... + echo 'Network interface status:' Network interface status: + flags=-d + netstat -i -d Name    Mtu Network       Address              Ipkts Ierrs Idrop    Opkts Oerrs  Coll  Drop em0    1500       XXX  22874340     0     0   574773     0     0     0 em0       - 192.168.XX.0/ nexus              1172609     -     -   540898     -     -     - lo0   16384                             3749     0     0     3749     0     0     0 lo0       - localhost     ::1                      0     -     -        0     -     -     - lo0       - fe80::1%lo0   fe80::1%lo0              0     -     -        0     -     -     - lo0       - your-net      localhost             3749     -     -     3749     -     -     - + rc=0 and I think you'd find that's a decent match for what you get in your email. ... --