Switch log collection fails due to SCP configuration errors
Applies to
- ONTAP 9
- Cisco cluster switch
- switch health monitor log collection
Issue
- Switch Log Collection is configured for Cisco Cluster Switches as per NetApp documentation
- When attempting to run switch log collection the following error is observed:
Log Collection Enabled: true
Index Switch Log Timestamp Status
------ ------------------------------------ ------------------- -------------
1 CISCO-CS-01(FOCXXXXXXXX) - switch password error
2 CISCO-CS-02(FOCYYYYYYYY) - switch password error
2 entries were displayed.
- Troubleshooting is performed to enable SCP and SSH on switch
- Attempting switch log collection after enabling SCP and SSH on switch shows the following error:
CLUSTER::> system switch ethernet log show
Log Collection Enabled: true
Index Switch Log Timestamp Status
------ ------------------------------------ ------------------- -------------
1 CISCO-CS-01(FOCXXXXXXXX) - switch log scp error
2 CISCO-CS-02(FOCYYYYYYYY) - switch log scp error
2 entries were displayed.
- After reconfiguring log collection, the system shows the error "Pre-existing log found":
CLUSTER::> system switch ethernet log show
Log Collection Enabled: true
Index Switch Log Timestamp Status
------ ------------------------------------ ------------------- -------------
1 CISCO-CS-01(FOCXXXXXXXX) - pre-existing log found
2 CISCO-CS-02(FOCYYYYYYYY) - pre-existing log found
2 entries were displayed.
- After deleting the pre-existing logs, the "
switch log scp error
" remains.