Created
January 26, 2022 12:26
-
-
Save gowatana/00e25ab74a1c7279f59a9906ee67cba6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
下記の投稿むけ。
Nutanix Files の Quota Policy を ncli で作成してみる。(続編2)
https://blog.ntnx.jp/entry/2021/12/13/003244