跳转到主内容

集群交换机日志收集已启动、但失败

i
Knowledge Base guidance

This article may include metadata, visibility, validation state, and related support guidance.

适用场景

  • ONTAP 9
  • Cisco 交换机

问题描述

cluster::> system switch ethernet log show
                     Periodic   Periodic   Support
Switch                  Log Enabled Log State  Log State
---------------------------------------------------- ----------- -----------
cluster.switch.1(XXXXXXXXXXX) 
                     true    scheduled never-run
cluster.switch.2(XXXXXXXXXXX) 
                     true    scheduled never-run
2 entries were displayed.

  • 将启动日志请求、并且不会出现错误:

cluster::> system switch ethernet log collect-support-log -device cluster.switch.1(XXXXXXXXXXX)
"cluster.switch.1(XXXXXXXXXXX)":Waiting for the next Ethernet switch polling cycle to begin support collection.
         
cluster::> system switch ethernet log collect-support-log -device cluster.switch.2(XXXXXXXXXXX)
"cluster.switch.2(XXXXXXXXXXX)": Waiting for the next Ethernet switch polling cycle to begin support collection.

  • 启动日志收集后,initiated  状态 将反映在 system switch ethernet log show 中:

cluster::> system switch ethernet log show
                     Periodic   Periodic   Support
Switch                  Log Enabled Log State  Log State
---------------------------------------------------- ----------- -----------
cluster.switch.1(XXXXXXXXXXX) 
                     true     scheduled initiated
cluster.switch.2(XXXXXXXXXXX) 
                     true     scheduled initiated
2 entries were displayed.

  • 启动日志收集后,Support Log Requested 将 在 system switch ethernet log show-instance 中显示true

cluster::> system switch ethernet log show-instance

          Switch Name: cluster.switch.1(XXXXXXXXXXX)
      Periodic Log Enabled: true
      Periodic Log Status: Periodic log collection has been scheduled to run every hour.
     Support Log Requested: true
       Support Log Status: Waiting for the next Ethernet switch polling cycle to begin support collection.

          Switch Name: cluster.switch.2(XXXXXXXXXXX)
      Periodic Log Enabled: true
      Periodic Log Status: Periodic log collection has been scheduled to run every hour.
     Support Log Requested: true
       Support Log Status: Waiting for the next Ethernet switch polling cycle to begin support collection.
2 entries were displayed.

  • 经过一段时间后,system switch ethernet log show 输出将指示日志收集为failed
cluster::> system switch ethernet log show      
                      Periodic   Periodic   Support
Switch                   Log Enabled Log State  Log State
----------------------------------------- ----------- ----------- -----------
cluster.switch.2(XXXXXXXXXXX) 
                      false    failed   failed
cluster.switch.2(XXXXXXXXXXX) 
                      false    failed   failed
2 entries were displayed.