如何监视ASA 5505上的端口状态

在Cisco 路由器上,当从接口拔下电缆时,我通常会看到debug“int fa0 / 3 line up”等等

有没有一些命令在ASA 5505上看到这个? 我SSH进入它,我需要使用控制台来看到这个输出?

我有一个设备和端口保持橙色,我想看看为什么从命令行发生了什么事情,其设置为自动/汽车,也许它需要强制为100 /双工或soemthing。

谢谢

根据我的经验,端口连接事件显示在console / ssh视图中,没有特别的configuration,虽然不一定与您可能想到的细节级别相关。

debug switch iplmdebug switch manager都带有errors选项提供特定于端口的信息,但似乎是特定于PoE和VLAN事件,这可能不会给你你所需要的。

ASDM有一些graphics视图,但是这些视图仅针对VLAN而不是特定的端口 – 但是,有些东西可能会给您提供一些线索。

ASDM还为您提供了过滤的实时日志logging,虽然filter实际上是为防火墙活动而devise的,但这可能会有所帮助。 如果你知道什么syslog ID可能会感兴趣,你可以过滤这些。

show interface <intf_name>工作正常…你只需要确保你已经进入启用模式的ASA,否则,它不会parsing…

 mpenning-fw# show interface Ethernet 0/0 Interface Ethernet0/0 "", is up, line protocol is up Hardware is 88E6095, BW 100 Mbps, DLY 100 usec Auto-Duplex(Full-duplex), Auto-Speed(100 Mbps) Description: TIME WARNER CABLE MODEM Available but not configured via nameif MAC address 0019.0726.4a39, MTU not set IP address unassigned 3255327 packets input, 1519248664 bytes, 0 no buffer Received 2070725 broadcasts, 0 runts, 0 giants 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 0 L2 decode drops 6346 switch ingress policy drops 865668 packets output, 124791799 bytes, 0 underruns 0 output errors, 0 collisions, 0 interface resets 0 babbles, 0 late collisions, 0 deferred 0 lost carrier, 0 no carrier 0 rate limit drops 0 switch egress policy drops mpenning-fw# 

如果你想在控制台上看到日志消息,你可以从你的ssh会话中调查terminal monitor

ASA OS将向任何configuration为严重级别4(警告)或更高级别的日志logging目标发送接口向上/向下日志消息。 也就是说,ASA会将接口向上/向下日志消息发送到为警告(4),通知(5),信息(6)和debugging(7)设置的日志logging目标。

要在控制台上查看,必须启用日志logging,然后将控制台日志logging目标设置为4或更高。

 logging enable logging console warnings 

要在VTY(Telnet / SSH)上查看,必须启用日志logging,将terminal日志logging目标设置为4或更高,然后将terminal设置为监视器。

 logging enable logging monitor terminal monitor 

请注意, terminal monitor不会进入运行configuration。 它仅为从中input的VTY设置,并在从该VTY注销时到期。

要卸下terminal监视器,请使用terminal no monitor