Network Attached Storage​

 View Only

 Script to create a large number of shares on HNAS 5000 series cluster

George Done's profile image
George Done posted 02-24-2022 09:01
I am deploying an HNAS 5200 2-node cluster at a customer new to Hitachi NAS. They need to create about 80 CIFS shares and start migrating from NetApp and severla Windows  servers. they would like to create those shares using a script and an associated .csv file or similar  with something like

share_name, filesystem_name, vvol, quota_values, owner, etc

I was wondering if anyone have some script which could be used (with modifications) for such purpose.
William Jansen van Nieuwenhuizen's profile image
William Jansen van Nieuwenhuizen
Hello George

Have a look at our Knowledge base here, I believe you can do this with a quick shell, PowerShell or python script. 

I have some colleagues like @Johann du Toit that might have some specific examples for you.
Albert Hagopian's profile image
Albert Hagopian
You would have to look at the API for how it creates shares, etc - as it doing what is requested will take multiple calls.

Internally within our QA/dev team, we do not have anything available to fulfill this request.