From owner-freebsd-hackers@freebsd.org Fri May 29 21:24:09 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 6355D2F147C for ; Fri, 29 May 2020 21:24:09 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound2k.ore.mailhop.org (outbound2k.ore.mailhop.org [54.148.219.64]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49YcyJ6hkwz4Qw8 for ; Fri, 29 May 2020 21:24:08 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1590787447; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=FKrIOX9e96sF8Oqlcp+iXQRloAwwZVFPcFxc9xz23a0bPU9+0Ki5LSRPt3idFMgZuBmkqIR4dnXmX +E1Ils1Z/r9cH9rz/zqRRvIsS5sgkFE5o0t7g0CiYiVHWA1Tj66lt3kNJHBhtwiokoHjsyQpJ/aJb+ 9+G2657HuCbB3icG90P7PUXD8KQt0xcVDWUDLGNs5cHT2vVY6c+t2gUQvaX0sqIUf1QA9n+/gbwojS UIjp5XItYVhWRDOgdHWt7lqoFRl/tfHnkX/qo9qs1o4Hqx3DOHkDEZ3WaUz7wlSW24/Za10dqTvsQD F2Q/b1iPpufjqkkZYK/FQIwdxK6l+vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:dkim-signature:from; bh=ksntLtjLejpkNQJLt5z+97Lgrf1M4OV7ad3RvxDg3/I=; b=fm7fOgX70wFv1uMXJ0ScRl1tGOg5QNjHVSIeCT5SyzMJlQKqDpBaK8kf5nsaEi0Den8aBsPqp1yH6 sHvlkcESnINqgLJHE88KDVYdMhwT/f6BJ6HwKqxW+vsnTBjfLGmSLQQgKrtqDtP3xOQ7pVT1jPO4LG Zl77/G8SYYTUqO1wQeVlZYbgM0UpekZEXR041Qn/7q+b5duYy0FTHljINXJfVOaYNvOiZXevs9qrOa n97vHNtl9zaew/mZpBHqHQgKkTsKiwjo7J3IWYwFkm++n5VeeHDI8KK51RQpH53PgpMBaZKcYaFD+h NGLy+J2rrwC7HOzfv7XDMd+4MBe3HkQ== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:from; bh=ksntLtjLejpkNQJLt5z+97Lgrf1M4OV7ad3RvxDg3/I=; b=MRjZsxSgWTUsPKQXX+33eJrxiYr5PbNZu4Pyrr4UoHID4sKC+2DSZiAQYT4gVuWYLW9qop4v8vf/Z pQ3oweGRTuGaTmNQs1ijrLlggltiWeE4niqrhAGylHYxVhK6OZaavTTuDJmR5xsxGOFFMU3ALCmT3b OyiiMYMfCfKT3kYGLBnxJWxVipNWbSfVKZk0WGnZDB3WX1pAxTe8iNSv/oGGTZqJC+gDcrpr6p5A9z XxYNu7ethAE6B6ABkdSkEGGG5D824p8Q5jPRc/Ee9mDkeMPVBw79/grLxY6KlwoyIS1PP+5hLo7hBZ gFCBTlJxSCJOQIahVqdcCv/kY2HjM9A== X-MHO-RoutePath: aGlwcGll X-MHO-User: b8d1c681-a1f2-11ea-a067-6d02e42e573a X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (c-67-177-211-60.hsd1.co.comcast.net [67.177.211.60]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id b8d1c681-a1f2-11ea-a067-6d02e42e573a; Fri, 29 May 2020 21:24:05 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id 04TLO4Z1050085; Fri, 29 May 2020 15:24:04 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <432af2b7b4c0b9f2314a62a600818ea3b5ea6c00.camel@freebsd.org> Subject: Re: Request: show interfaces From: Ian Lepore To: "Rodney W. Grimes" , joe mcguckin Cc: Freebsd hackers list Date: Fri, 29 May 2020 15:24:04 -0600 In-Reply-To: <202005291901.04TJ1WPc099677@gndrsh.dnsmgr.net> References: <202005291901.04TJ1WPc099677@gndrsh.dnsmgr.net> Content-Type: text/plain; charset="ASCII" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49YcyJ6hkwz4Qw8 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; local_wl_from(0.00)[freebsd.org]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US] 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 21:24:09 -0000 On Fri, 2020-05-29 at 12:01 -0700, Rodney W. Grimes wrote: > > 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 > > Doesn't "netstat -i" already provide all the statistical info except bitrate in the last short period? Maybe it could be enhanced with a different output format that provides a set of info more like the cisco show interface output (maybe when invoked with -I as oppposed to -i). -- Ian