Cluster switch log collection initiates but fails
Applies to
- ONTAP 9
- Cisco Switches
Issue
- Cluster switch log collection is enabled and configured according to settings in How to enable periodic switch log data collection for Cisco cluster switches.
- The
system switch ethernet log show
output indicates that periodic logging isscheduled
andnever-run
:
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.
- A log request will initiate without errors:
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.
- After initiating the log collection, the
initiated
status is reflected insystem 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.
- After initiating the log collection,
Support Log
Requested
will showtrue
insystem switch ethernet log show-instance
:
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.
- After some time passes the
system switch ethernet log show
output will indicate that the log collection was afailed
:
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.