您的位置:首页 > 游戏 > 手游 > Cisco ACI Leaf交换机日志怎么查看

Cisco ACI Leaf交换机日志怎么查看

2024/12/22 18:09:52 来源:https://blog.csdn.net/funnycoffee123/article/details/141226850  浏览:    关键词:Cisco ACI Leaf交换机日志怎么查看

SSH命令行登录Leaf交换机后

切换到 /var/log/external这个目录下,下面的messege文件就是日志文件

ACI-93180 # cd /var/log/external
ACI-93180 # pwd
/var/log/externalACI-93180 # ls -l 
total 18100
lrwxrwxrwx 1 root root       31 Mar 30  2023 dmesg -> /mnt/pss/bootlogs/current/dmesg
-rw-rw-rw- 1 root root        0 Mar 30  2023 libfipf.22193
-rw-rw-rw- 1 root root  8024564 Aug 15 16:47 messages
-rw-rw-rw- 1 root root 10485822 May 13  2023 messages.1
-rw-rw-rw- 1 root root        3 Mar 30  2023 mgmt_port_test_result
-rw-rw-rw- 1 root root    12010 Oct 26  2023 mmode-internal-log
ACI-93180 # 

可以看到上面有2个messages文件

-rw-rw-rw- 1 root root  8024564 Aug 15 16:47 messages
-rw-rw-rw- 1 root root 10485822 May 13  2023 messages.1

当messages文件写满后,会产生1个新的文件,后面+数字

如何查看文件内容
可以通过more命令查看

ACI-93180# more messages
May 13 20:51:10 ACI-93180 %LOG_LOCAL0-4-SYSTEM_MSG [F1192][raised][config-failure][warning][sys/aggr-[po51]/rsmbrIfs-[sys/phys-[eth105/1/5]]/fau
lt-F1192] Port-channel(po51) membership configuration failure for eth105/1/5
May 13 20:51:40 ACI-93180 %LOG_LOCAL0-4-SYSTEM_MSG [F1192][raised_clearing][config-failure][warning][sys/aggr-[po51]/rsmbrIfs-[sys/phys-[eth105/
1/5]]/fault-F1192] Port-channel(po51) membership configuration failure for eth105/1/5
May 13 20:51:40 ACI-93180 %LOG_LOCAL0-4-SYSTEM_MSG [F1192][raised][config-failure][warning][sys/aggr-[po51]/rsmbrIfs-[sys/phys-[eth105/1/5]]/fau
lt-F1192] Port-channel(po51) membership configuration failure for eth105/1/5
May 13 20:52:10 ACI-93180 %LOG_LOCAL0-4-SYSTEM_MSG [F1192][raised_clearing][config-failure][warning][sys/aggr-[po51]/rsmbrIfs-[sys/phys-[eth105/
1/5]]/fault-F1192] Port-channel(po51) membership configuration failure for eth105/1/5
May 13 20:52:10 ACI-93180 %LOG_LOCAL0-4-SYSTEM_MSG [F1192][raised][config-failure][warning][sys/aggr-[po51]/rsmbrIfs-[sys/phys-[eth105/1/5]]/fau
lt-F1192] Port-channel(po51) membership configuration failure for eth105/1/5
May 13 20:52:40 ACI-93180 %LOG_LOCAL0-4-SYSTEM_MSG [F1192][raised_clearing][config-failure][warning][sys/aggr-[po51]/rsmbrIfs-[sys/phys-[eth105/
1/5]]/fault-F1192] Port-channel(po51) membership configuration failure for eth105/1/5
May 13 20:52:40 ACI-93180 %LOG_LOCAL0-4-SYSTEM_MSG [F1192][raised][config-failure][warning][sys/aggr-[po51]/rsmbrIfs-[sys/phys-[eth105/1/5]]/fau
lt-F1192] Port-channel(po51) membership configuration failure for eth105/1/5
May 13 20:53:10 ACI-93180 %LOG_LOCAL0-4-SYSTEM_MSG [F1192][raised_clearing][config-failure][warning][sys/aggr-[po51]/rsmbrIfs-[sys/phys-[eth105/
1/5]]/fault-F1192] Port-channel(po51) membership configuration failure for eth105/1/5
May 13 20:53:10 ACI-93180 %LOG_LOCAL0-4-SYSTEM_MSG [F1192][raised][config-failure][warning][sys/aggr-[po51]/rsmbrIfs-[sys/phys-[eth105/1/5]]/fau
lt-F1192] Port-channel(po51) membership configuration failure for eth105/1/5
May 13 20:53:40 ACI-93180 %LOG_LOCAL0-4-SYSTEM_MSG [F1192][raised_clearing][config-failure][warning][sys/aggr-[po51]/rsmbrIfs-[sys/phys-[eth105/
1/5]]/fault-F1192] Port-channel(po51) membership configuration failure for eth105/1/5

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com