From owner-freebsd-hackers@freebsd.org Fri May 29 19:01:35 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 75B8933F5A0 for ; Fri, 29 May 2020 19:01:35 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49YYnp1GXKz4Fxk for ; Fri, 29 May 2020 19:01:33 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id 04TJ1WNS099678; Fri, 29 May 2020 12:01:32 -0700 (PDT) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id 04TJ1WPc099677; Fri, 29 May 2020 12:01:32 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <202005291901.04TJ1WPc099677@gndrsh.dnsmgr.net> Subject: Re: Request: show interfaces In-Reply-To: To: joe mcguckin Date: Fri, 29 May 2020 12:01:32 -0700 (PDT) CC: Freebsd hackers list X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 49YYnp1GXKz4Fxk X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd-rwg@gndrsh.dnsmgr.net has no SPF policy when checking 69.59.192.140) smtp.mailfrom=freebsd-rwg@gndrsh.dnsmgr.net X-Spamd-Result: default: False [1.85 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.33)[0.332]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[dnsmgr.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.54)[0.536]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.08)[0.077]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13868, ipnet:69.59.192.0/19, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 May 2020 19:01:35 -0000 > It?s always bugged me that Unix doesn?t show as much information as a typical router > does about ethernet interface statistics. > > What we really need is the equivalent of Cisco ?show interface? One could write that, or enhance bird or frr to have additional output in there show interfaces command. Bird is a bit sparse: rgrimes {1001}% birdc show interfaces BIRD 1.5.0 ready. vmx0 up (index=1) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 64.62.249.151/27 (Primary, scope univ) vmx1 DOWN (index=2) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 vmx2 up (index=3) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 10.4.0.4/24 (Primary, scope site) Infact an ifconfig -a gives you at least the negotiated interface rate in addition to some other fields. > > This shows the bit rate, packet rate, count, all the various type of errors, etc. By bit rate do you mean interface configured bit rate, or bit rate over last short interval? Cisco shows both, short interval being 5 minutes. BSD ifconfig shows former. Adding some of the Cisco like stats would not be hard, and possibly useful, especially for me the Input queue size/max/drops/flushes, though much of that may be very device specific due to offload. > > Cisco allows a description field to be set for each interface, and that shows up also in a ?show int? output. That feature already exists, see ifconfig(8) "description value". > I think these would be great features, considering how ofter FreeBSD is used for routers and firewalls. ifconfig --format=cisco -a ?? > Thanks, > Joe > Joe McGuckin -- Rod Grimes rgrimes@freebsd.org