If the shares you want to create are for each user home
directory then, yes, there’s an automated way to do it in Data ONTAP called the
cifs.homedir feature.
Basically you give the controller a set of paths where the
homedirs live. The paths should contain directories that match the username of
the user. Then, when the feature is activated a share of the name of the user
will automatically be made available when that user connects to the storage via
CIFS.
So, for example. User ‘bob’ connects via CIFS, say by using \\netapp (where netapp is the name of the
controller). Along with any other shares manually created there will be an
extra share called ‘bob’ as well and that share will automatically point to a
directory called ‘ bob’ in one of the defined paths. Consequently when user ‘mary’
connects, she will see a share called ‘mary’, but not a share called ‘bob’.
Is that what you are trying to do?
-- Adam Fox
Systems Engineer
adamfox@netapp.com
From: David McWilliams
[mailto:davidkmcw@gmail.com]
Sent: Monday, January 18, 2010 3:41 PM
To: NetApp list
Subject: NetApp scripting question
I am putting in a new filer to replace three Windows servers
and in the process I will have to create approx 110 shares. I have heard that
there is a way of scripting the process. does anyone have any information that
they could provide for me on this process?
Sláinte,
David
"Build a man a fire he'll be warm for a day, set a man on fire and he'll
be warm for the rest of his life" - Terry Pratchett
Checkout my photos - http://www.panoramio.com/user/1113507