This is what I did and it worked great, all qtrees set up in no time, with all appropriate perms.
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
Or you can put all commandis into a single file and go like
toaster> source /home/createallneededcifs.txt
:-)
I like this one more then directly touching configuration file...
________________________________________
From: owner-toasters@mathworks.com [owner-toasters@mathworks.com] On Behalf Of Kevin Davis [kdavis@mathworks.com]
Sent: Monday, March 01, 2010 5:16 PM
To: David McWilliams
Cc: NetApp list
Subject: Re: 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?
It's easy, but like any scripting task, you just need to know what you want
ahead of time. If these shares are of the most basic sort (share name, path,
everyone/full control access), then all you need to do is dump all the commands
into a file and execute them on the filer or via SSH. If you can handle a
reboot, just append all of the new shares into <root>/etc/cifsconfig_share.cfg.
The syntax is straightforward, and the shares will be created upon next boot. I
suspect the same would happen if you just restarted CIFS, but I haven't tried
it. Take a look at it - it's simple - and you can just as easily set different
access to each share if you have that information too.
*------------------------------------------*-----------------------*
| Kevin Davis (UNIX/Storage Sysadmin) | Natick, Massachusetts |
| 508.647.7660 | 01760-2098 |
| mailto:kevin.davis@mathworks.com *-----------------------*
| http://www.mathworks.com | |
*------------------------------------------*-----------------------*