Unsolved
This post is more than 5 years old
19 Posts
0
2717
Script CIFS shares in new VNXe 3200?
Good afternoon,
I am setting up our new VNXe 3200 which is replacing an old Celerra NS20. We have about 275 CIFS shares and I would like to script their creation in the VNXe if at all possible. I know this was possible to do in the Celerra, but I'm not sure if it's possible in the VNXe.
Thank you
Rainer_EMC
8.6K Posts
1
November 9th, 2015 03:00
Hi,
yes its possible – its just a different CLI.
VNXe3200 uses a remote CLI similar to navicli – meaning you install the CLI on another system and use it from there.
You need to download the “VNXe Unisphere CLI” from support.emc.com
Available for Solaris, VMware, Suse Linux, Linux or Windows.
Then you can use the scripting language of your choice on that system.
If the shares are similar than you can also sharedup.exe
i.e dump shares from the old system to a file, edit and apply to the new system.
Other generic tools that use the Win32 CIFS API’s like rmtshare should also work if you have the proper authentification
Rainer
Rainer_EMC
8.6K Posts
0
November 9th, 2015 03:00
And of course download the CLI guide while you’re at support.emc.com
CKnapp1
19 Posts
0
November 9th, 2015 12:00
Thank you Rainer. I am looking at the User guide and see a wealth of information. I am curious what the syntax would be to script the CIFS creation from say a .csv
The below is the example for creating a CIFS share in command line.
uemcli -d 10.0.0.1 -u Local/joe -p MyPassword456! /stor/prov/fs/cifs
create –name CIFSshare -descr “My share” –fs fs1 -path ”cifsshare” -
enableContinuousAvailability yes -enableCIFSEncryption yes
Rainer_EMC
8.6K Posts
0
November 10th, 2015 03:00
That really depends on your choice of OS and what scripting language you are comfortable with.
If not I suggest to look into sharedup.exe
Rainer_EMC
8.6K Posts
0
November 8th, 2016 11:00
Other option is to use some PowerShell cmdlets that we provide
Should work on VNX1/VNX2/VNXe/Unity
downloadable here https://download.emc.com/downloads/DL46698_EMC-CMDLETS-Powershell-for-Windows-1.0.exe?source=OLS
list of cmdlets included:
Remove-SharePerms : cmdlet to remove an access in share's permissions on a server name
Show-RootDirMembers : cmdlet to list the root directory contain of a server name
Show-SecurityEventLog : cmdlet to display the eventlogs of a server name