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 | | *------------------------------------------*-----------------------*