start:tabprune_h description:tabprune -h cmd:tabprune -h check:rc==0 check:output=~Usage end start:tabprune_v description:tabprune -v cmd:tabprune -v check:rc==0 check:output=~Version end start:tabprune_a_eventlog description:tabprune eventlog -a cmd:tabprune eventlog -a check:rc==0 check:output!~not a valid xCAT object type end start:tabprune_V_a_eventlog description:tabprune eventlog -V -a > /tmp/eventlog.csv cmd:tabprune eventlog -V -a > /tmp/eventlog.csv check:rc==0 cmd:ls /tmp/eventlog.csv check:rc==0 check:output=~eventlog.csv cmd:rm -f /tmp/eventlog.csv end start:tabprune_p_auditlog description:to remove 50% of the auditlog table,if the original number is odd number,the final result is 1;or else the final number is 0; #cmd:n1=`lsdef -t auditlog|wc -l`;tabprune auditlog -p 50;n2=`lsdef -t auditlog|wc -l`;echo $((n1-($n2-2)*2)) cmd:n1=`lsdef -t auditlog|wc -l`;tabprune auditlog -p 50;n2=`lsdef -t auditlog|wc -l`;echo $($n2