Start a Conversation

Unsolved

This post is more than 5 years old

2717

November 6th, 2015 12:00

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

8.6K Posts

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

8.6K Posts

November 9th, 2015 03:00

And of course download the CLI guide while you’re at support.emc.com

19 Posts

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

8.6K Posts

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

8.6K Posts

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:


Add-LG   :    cmdlet to add a new local group on a server name

Add-LGMember   :    cmdlet to add a member in a given local group on a server name

Add-Share   :    cmdlet to create a share on a server name

Add-ShareAcl   :    cmdlet to add an ACE in a share's ACL on a server name

Add-SharePerms   :    cmdlet to add an access in share's permissions on a server name

Remove-LG   :    cmdlet to delete a local group on a server name

Remove-LGMember   :    cmdlet to delete a member of a Local Group on a server name

Remove-Session   :    cmdlet to delete a session open on a server name

Remove-Share   :    cmdlet to remove a share on a server name

Remove-ShareAcl   :    cmdlet to remove an ACE in a share's ACL on a server name

Remove-SharePerms    :    cmdlet to remove an access in share's permissions on a server name

Set-ShareFlags   :    cmdlet to set share flags on a given server name

Show-AccountSid   :    cmdlet to display SID of a given user

Show-ACL   :    cmdlet to display the share's ACL on a server name

Show-LG   :    cmdlet to enumerate local group on a server name

Show-LGMembers   :    cmdlet to enumerate members of a local group 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

Show-Sessions   :    cmdlet to enumerate open sessions on a server name

Show-ShareAcl   :    cmdlet to display the share's ACL on a server name

Show-ShareFlags   :    cmdlet to show share's flags values on a server name

Show-SharePerms   :    cmdlet to enumerate access contain in a share's permissions on a server name
No Events found!

Top