显示接口链接等效项

网络工程 思科 转变 思科命令
2022-02-11 08:54:38

在 Catalyst 4500 上,有命令 show int link 输出:

    Fa1/1    UPS               00 secs
    Fa1/2    Data & Voice      00 secs
    Fa1/3    Data & Voice      00 secs
    Fa1/4    Data & Voice      00 secs

<output continues>....
    Fa3/18   Data & Voice      13 hours, 13 minutes 58 secs      13:47:23  Tue Mar 25 2014

但是当我在 3560 上尝试这个命令时,我得到:

Switch#show int link
                 ^
% Invalid input detected at '^' marker.

在 3560 或 3750 交换机上是否有类似的信息来查找端口上次活动时间等信息?我的目标是找出哪些交换机端口很长时间没有处于活动状态,并且可以将它们的电缆从交换机端口断开,以节省空间供其他设备将来使用。

1个回答

你可以试试

show int | i Ethernet|Last input

GigabitEthernet6/1 is up, line protocol is up (connected)
  Last input 00:00:03, output 00:00:52, output hang never
GigabitEthernet6/2 is up, line protocol is up (connected)
  Last input 00:00:26, output 00:00:00, output hang never
GigabitEthernet6/3 is up, line protocol is up (connected)
  Last input 00:00:08, output 00:00:08, output hang never
GigabitEthernet6/4 is up, line protocol is up (connected)