Created attachment 199594 [details]
File contains output of ifconfig -s on a system used multiple interfaces.
Hi FreeBSD team,
This is an enhancement request. Just wondering what is your view on adding a new flag/feature to ifconfig to provide a summary of the network interfaces including admin state, media status, description and maybe something else in a table based format ( Yes like a cisco "show interface status" or any of those..).
If I'm not wrong at the moment there is not such feature and when working with many interfaces (like 10's of jails using Vimage) it becomes quite difficult to track interface and bridges status.
I been playing around with ifconfig and put together a status_summary() function that generates the following, but is too poor in code quality and features. So just wondering if somebody is interested on coding it or maybe point me in the right direction to code it.
I've included a file with the current output of the -s (summary) function I added. It can be used with the existing flags ( -d -u $ifname).
Maybe you can write a small program to do what you want using libifconfig? https://github.com/freebsd/freebsd/tree/master/lib/libifconfig