Use the shell “for loop” to repeatedly execute the cvadmin command for each user. Something like:
for name in `cat FileOfUserNames`
do
cvadmin -F XSANVoumeName -e “quotas set user $name 21474836480 19327352832 10080”
done
This would take a file named FileOfUserNames which should be a plain text file with one username and nothing else on each line. It would loop for each line in the file setting that line to the variable “name.” Then it would call cvadmin to set the quota to 20Gb hard, 19Gb soft, one week warning.
Comments are closed