I'm trying to run a manual quota report with specific parameters from a Unix box against a cDot 8.2 svm.
basically I want to go to advanced mode:
set -privilege advanced -confirmations off -units KB -rows 99 -showseparator "\,"
and then run
quota report -vserver svmservername -fields quota-type,quota-target-id,volume,tree,disk-used,disk-limit,threshold,quota-specifier
it works when I do it manually but not when I run the following script:
#!/usr/bin/bash
#Command Variables
USER="username"
SET='set -privilege advanced -confirmations off -units KB -rows 99 -showseparator "\,"'
REPORT=`quota report -vserver svmservername -fields quota-type,quota-target-id,volume,tree,disk-used,disk-limit,threshold,quota-specifier`
OUT=quota.txt
SVMSVR=192.168.1.1
case $1 in
'SVMSVR')
ssh $USER@$SVMSVR "$SET; $REPORT" >quota.txt
;;
*)
esac
exit
what am I doing wrong?
please don't suggest I do this in a powershell script. this must be run from a unix box.