NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

How to delete files in /etc/crash in cDOT

Dong_Chen
11,271 Views

Hi Gents,

 

I have a question in cDOT. 

 

 

A customer always uses pktt start x x x -d /etc/crash. So there are hundreds of files in the directory /etc/crash. That's a little messy. How can I delete some file to clean up this directory. 

1 ACCEPTED SOLUTION

coreywanless
11,263 Views

You need to be in diag mode, and enable the diag account.

 

set diag

sec log unlock diag

 

##Change the diag password if needed

sec log password diag

 

 

Get into the system shell:

systemshell -node <Node>

Log in with the diag account..

 

If you want to delete all the trc files run:

rm /mroot/etc/crash/*.trc

View solution in original post

3 REPLIES 3

coreywanless
11,264 Views

You need to be in diag mode, and enable the diag account.

 

set diag

sec log unlock diag

 

##Change the diag password if needed

sec log password diag

 

 

Get into the system shell:

systemshell -node <Node>

Log in with the diag account..

 

If you want to delete all the trc files run:

rm /mroot/etc/crash/*.trc

scottgelb
11,252 Views

From the clustershell you can also system coredump delete [-all -node * -type all] or use systemshell already listed in the first post.

Dong_Chen
11,231 Views
Cool, thanks for the advice!
Public