Unsolved
1 Rookie
•
9 Posts
0
900
March 3rd, 2020 15:00
Create batch CIFS/SMB shares on VNX
Hi, When we did windows server migrations for data, we had a script/batch file which we could run to create local shares. Basically, there is a top level folder usually called something like "Data", and within that top folder, there are the subfolders for which we would create the shares. Examples of subfolder names would be Finance, HR, Software, etc. Basically we would run the script against the Data folder and it would read the names of each subfolder and create a local share with the same name but with an "$" appended to the local share name to make it hidden. So it would creat local shares Finance$, HR$, Software$ and so forth, and also set the share permissions to change permissions for Authenticated Users. This batch file does not work on the VNX since we usually run it locally on the destination Windows file server and requires windows WMI. Is there a way to automatically create local CIFS shares on the VNX similar to this menthod. The reason being is that we are migrating data from the VNX to the Isilon, and when we cut over, I'd like to shut down all the shares on the VNX so I can do the final differential copy. Rather than individually setting each share to no access, I'd like to remove all shares. The problem is that if I have to fall back and re-establish the shares on the VNX, I'd like a quicker way to recreate the shares. Thanks!
No Events found!
SteveK821
2 Intern
•
149 Posts
0
March 4th, 2020 05:00
Have you considered using EMC CIFS Utilities like sharedup?
This can duplicate shares between different CIFS/SMB Servers. For more details just search for "CIFS Utilities" or "Isilon sharedup" on the main support site.
You can run it with the /FO switch (file-out) to create an output file with the paths from the VNX, then edit that file to make the path formats compliant with Isilon and use the /FI switch (file-in) to apply it to the Isilon.