Skip to content

Instantly share code, notes, and snippets.

@gowatana
Created January 26, 2022 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gowatana/00e25ab74a1c7279f59a9906ee67cba6 to your computer and use it in GitHub Desktop.
Save gowatana/00e25ab74a1c7279f59a9906ee67cba6 to your computer and use it in GitHub Desktop.
cat ./share01_quota_list.txt | while read L
do
AD_USER=`echo $L | cut -d "," -f 1`
QUOTA_GB=`echo $L | cut -d "," -f 2`
MAIL=`echo $L | cut -d "," -f 3`
ssh -n -o StrictHostKeyChecking=false nutanix@lab-nxce-01.go-lab.jp \
/home/nutanix/prism/cli/ncli fs add-quota-policy \
uuid=$FS_UUID share-uuid=$SHARE_UUID \
principal-type=user \
principal-value=$AD_USER \
quota-size-gib=$QUOTA_GB \
quota-enforcement-type=Hard \
send-quota-notifications-to-user=true \
notification-recipients=$MAIL 2> /dev/null
done
@gowatana
Copy link
Author

下記の投稿むけ。
Nutanix Files の Quota Policy を ncli で作成してみる。(続編2)
https://blog.ntnx.jp/entry/2021/12/13/003244

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment