This PowerShell script will help you :
- About Qtree
- Adding Qtree (you'll have to confirm deletion on the console windows)
- Deleting Qtree (you'll have to confirm deletion on the console windows)
- About Quota
- Turn on/off a Quota Volume
- If there is not quota assigned to any qtree action will be cancelled as it is not possible in real life
- If a quota is assigned to, at least one qtree, it will show a progress bar during the volume quota initialization
- Put a Quota on a Qtree (even a empty one). Mb Gb & Tb are cleary managed.
- if it's a new quota, volume quota will be reinitialise
- if it's an update of an existing quota, quota will only be refreshed
- Remove a quota on a qtree
- After this, volume quota will be reinitialized (with a cool progress bar too)
- About Ghost Quota
- If you delete a Qtree and forget to delete the Quota, you'll be able to delete them
- It also detected errors on quotas
- Report Quota
- You can easly export a quota report in a CSV file
- Massive Qtree creation
- With check on duplicate or existing quota
- DiskLimit Quota / Empty Quota / No Quota
- Error report
- Progress Bar indicate the current progress..
What you need to know before using this script
Don't forget to install the PowerShell NetAPP DataONTAP Module.
Quota is only about DiskLimit on Qtree. Other kind of quota might come later if you need so (please ask).
You must have PowerShell 3.0
I've added strong check against bad Qtree name (escape or special char)
Every Button and forms are enabled depending on the validation process to avoid any mistake
I can't warranty anything for sure. But I'm using it every day and it's working perfectly
Don't forget to update both lines with your infos
$all_ctrl = @("CtrlNetAPP1","CtrlNetAPP2","CtrlNetAPP3","CtrlNetAPP4")
$narootpasswd = "your_root_password"
I'm opened to any advices, bug fixes or suggestions.
If you like it, please share and recommand. Thanks appreciated




