ONTAP Discussions

How to delete files in /etc/crash in cDOT

Dong_Chen
8,928 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
8,920 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
8,921 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
8,909 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
8,888 Views
Cool, thanks for the advice!
Public