request paragon storage cleanup
Syntax
request paragon storage cleanup
Description
Deletes all core files and sub directories, local_host
core files,
logs, traces, and all files under /var/log and
/var/crash directories.
Options
none |
Clears up storage files. |
dry-run |
Lists all the files to be cleared up on all cluster nodes but does not remove them. |
extra-path path |
Extra path on the nodes (if the path exists), separated by a space and enclosed in quotes. For example: "/foo /bar/zot". |
Required Privilege Level
configure
Sample Output
request paragon storage cleanup dry-run
user@node> request paragon storage cleanup dry-run warning: *** operating on 10.1.2.3 *** contents to clean up Node: node List of all core files to be cleared: Size Date Name List of local_host core files to be cleared: Size Date Name List of core sub directory files to be cleared: Size Date Name Clears all logs, traces, /var/log/*, and /var/crash/* Size Date Name 60K Fri Apr 12 13:58 /var/log/action.log 8.0K Wed Apr 3 22:27 /var/log/alternatives.log 0 Wed Apr 3 21:58 /var/log/btmp 16K Thu Apr 11 10:23 /var/log/cscript.log 12K Wed Apr 3 22:27 /var/log/dpkg.log 0 Wed Apr 3 22:27 /var/log/license 0 Tue Apr 9 09:54 /var/log/messages 0 Tue Apr 9 09:54 /var/log/security 4.0K Fri Apr 12 13:06 /var/log/wtmp -rw-r--r-- 1 root root 404226909 Apr 4 04:05 /root/epic/3rdparty.tar.gz -rw-r--r-- 1 root root 455199761 Apr 4 04:05 /root/epic/davinci.tar.gz /root/epic/temp/: total 0 dry-run was enabled, nothing was removed dry run docker system prune warning: *** operation on 10.1.2.3 succeeds *** warning: *** operating on 10.1.2.4 *** contents to clean up Node: node2 List of all core files to be cleared: Size Date Name List of local_host core files to be cleared: Size Date Name List of core sub directory files to be cleared: Size Date Name Clears all logs, traces, /var/log/*, and /var/crash/* Size Date Name 8.0K Tue Apr 9 10:38 /var/log/action.log 8.0K Wed Apr 3 22:27 /var/log/alternatives.log 0 Wed Apr 3 21:58 /var/log/btmp 12K Thu Apr 11 10:23 /var/log/cscript.log 12K Wed Apr 3 22:27 /var/log/dpkg.log 0 Wed Apr 3 22:27 /var/log/license 0 Thu Apr 11 10:23 /var/log/messages 0 Thu Apr 11 10:23 /var/log/security 0 Wed Apr 3 21:58 /var/log/wtmp -rw-r--r-- 1 root root 404226909 Apr 4 04:05 /root/epic/3rdparty.tar.gz -rw-r--r-- 1 root root 455199761 Apr 4 04:05 /root/epic/davinci.tar.gz <output snipped>
Release Information
Command introduced in Paragon Automation Release 2.0.0.