Page MenuHomeVyOS Platform

Show command for interface messages
In progress, WishlistPublicFEATURE REQUEST

Description

It would be nice to have a simple command to show the up/down status of an interface, afaik you have to go do sudo dmesg -T | grep <interface> to see it.

It could be something as simple as show interface ethernet eth0 messages or show interface ethernet eth0 log

user@router:~$ show interfaces ethernet eth0 log
[Tue Aug  6 23:29:24 2024] igb 0000:02:00.2 eth2: igb: eth2 NIC Link is Down
[Tue Aug  6 23:29:32 2024] igb 0000:02:00.2 eth2: igb: eth2 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
[Tue Aug  6 23:29:35 2024] igb 0000:02:00.2 eth2: igb: eth2 NIC Link is Down
[Tue Aug  6 23:29:48 2024] igb 0000:02:00.2 eth2: igb: eth2 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX

Details

Difficulty level
Easy (less than an hour)
Version
1.5-rolling-202409160007
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Feature (new functionality)

Event Timeline

yzguy changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
yzguy changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
yzguy changed Issue type from Unspecified (please specify) to Feature (new functionality).
Viacheslav triaged this task as Normal priority.Aug 7 2024, 5:20 PM
Viacheslav lowered the priority of this task from Normal to Wishlist.

Showing all logs for interface might print more information than it's needed. Maybe a different approach:

show interfaces ethernet eth0 log link-status

Or since it's about printing logs, similar command under show log, although currently there is no node for show log interfaces.

I can implement it but we need to agree about the command

@n.fort I like the interface log sub command, gives us a nice way to take on additional logging things later, but for now log link-status seems good to me.

n.fort changed the task status from Open to In progress.Wed, Sep 18, 3:18 PM
n.fort claimed this task.
n.fort changed Version from - to 1.5-rolling-202409160007.