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

SSH命令行登录Leaf交换机后

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

ACI-93180 # cd /var/log/external
ACI-93180 # pwd
/var/log/external

ACI-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

你可能感兴趣的:(前端,服务器,运维)