Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#!/bin/ksh
query()
{
dsmadmc -id=admin -password=password "select bytes from summary where start_time>='$2 $3' and end_time<='$2 $4' and activity='$1' and entity='CMCLIENT'" | awk ' BEGIN{sum=0}; sum=sum+$1; END{print sum}' | tail -1 | xargs echo "Bytes processed: "
}
if [[ $1 != "RESTORE" && $1 != "BACKUP" ]]; then
echo; echo "qtsm <BACKUP|RESTORE> <DATE> <START_TIME> <END_TIME>"
echo "Example: qtsm RESTORE 2003-01-28 07:00 08:00"
echo "-------------------------------------------------"
exit
else
query $1 $2 $3 $4
fi
exit 0