#RM command in diag mode

1 messages · Page 1 of 1 (latest)

viral spoke
#

I have the following challenge, i must remove al lot of files in the following directory /etc/log/autosupport/retransmit . When i go to the CLI in diag mode i can use the following command:

system node run -node ********** -command rm /etc/log/autosupport/retransmit/. or *.tgz

i got the following error : No such file or directory

I can use: system node run -node ********** -command rm /etc/log/autosupport/retransmit/test.tgz

Is it not possible to use wildcards ?????? Is there another option availble ??

Thanks

fiery whale
#

it's not possible with the nodeshell, no. Your best bet is to use node run ... -command ls /etc/log/autosupport/retransmit, then copy that to notepad and add node run ... -command rm in front of it, then copy/paste it back.
Yes, there is another way, but I wouldn't recommend it for deleting files, especially not with wildcards, as you can destroy your entire cluster by something like a misplaced "space" character