tabprune - Deletes records from the eventlog,auditlog,isnm_perf,isnm_perf_sum tables.
tabprune [eventlog | auditlog] [-V] [-i recid | -n number of records | -p percentage | -d number of days | -a]
tabprune tablename -a
tabprune [-h|--help] [-v|--version]
The tabprune command is used to delete records from the auditlog, eventlog, isnm_perf, isnm_perf_sum tables. As an option, the table header and all the rows pruned from the specified table will be displayed in CSV (comma separated values) format. The all records options (-a) can be used on any xCAT table.
Display usage message.
Verbose mode. This will cause tabprune to display the records that are being deleted from the table, in case you want to redirect them to a file to archive them.
Remove all records from the input table name. This option can be used on any xCAT table.
Remove the records whose recid is less than the input recid number.
Remove the number of records input.
Remove the number of records input.
Remove all records that occurred >= than number of days ago.
tabprune eventlog -a
tabprune eventlog -V -a > eventlog.csv
tabprune auditlog -i 200
tabprune auditlog -V -n 400
tabprune eventlog -p 50
tabprune eventlog -d 5
/opt/xcat/sbin/tabprune