Start a Conversation

Solved!

Go to Solution

1 Rookie

 • 

108 Posts

557

November 9th, 2022 08:00

Accessing CIFS Shares via CLI

Hello All,

Is there a way to access UNITY5300 CIFS shares and folders via CLI or using service user.

Is it possible, or only way to do that is via \\CIFS_Server\Folder way to acces it.

This was possible to do in old Celerra/VNX arrays. Not sure about UNITY.

Best

1 Rookie

 • 

14 Posts

November 9th, 2022 21:00

Hi,

I think you just use the Ops, like Windows or Linux to mount the shared directory with the privilege of administrators only.

You can also refer the following information.
[Dell EMC Unity/VNX: How to connect to Standalone CIFS Server using MMC Computer Management](https://www.dell.com/support/kbdoc/en-us/000022486/dell-emc-unity-vnx-how-to-connect-to-standalone-cifs-server-using-mmc-computer-management-user-correctable)

I use the following scripts to test my UnityVSA last week. Also FYR.

```

## Unity
unity='10.7.150.110'
admin_user='admin'
admin_new_pass='password'

## Create NAS Server nas_name="NasServer_CIFS" nas_spOwner='spa' nas_enablePackerReflect='yes' pool_id='pool_2' pool_name='vPool_02' uemcli -sslPolicy accept -noHeader -d ${unity} -u ${admin_user} -p ${admin_new_pass} /net/nas/server create -name "${nas_name}" -poolName "${pool_name}" -sp ${nas_spOwner} -enablePacketReflect ${nas_enablePackerReflect} ## Create NAS Interface nas_ifPort='spa_eth2' nas_ifIp='10.7.155.89' nas_ifNetmask='255.255.255.0' nas_ifGateway='10.7.155.254' nas_ifRole='production' uemcli -sslPolicy accept -noHeader -d ${unity} -u ${admin_user} -p ${admin_new_pass} /net/nas/if create -serverName "${nas_name}" -port ${nas_ifPort} -addr ${nas_ifIp} -netmask ${nas_ifNetmask} -gateway ${nas_ifGateway} -role ${nas_ifRole} ## Create SMB/CIFS Server smb_name='CIFSserver1' smb_workgroup='unity' smb_netbiosname='CIFSserver1' smb_adminPasswd='VMware1!' uemcli -sslPolicy accept -noHeader -d ${unity} -u ${admin_user} -p ${admin_new_pass} /net/nas/cifs create -serverName "${nas_name}" -name "${smb_name}" -netbiosName "${smb_netbiosname}" -workgroup ${smb_workgroup} -adminPasswd ${smb_adminPasswd} ## Create File System for SMB/CIFS filesystem_name="CIFS_FS01" filesystem_descr='SMB File System 01 for Test' ## nfs, cifs, multiprotocol filesystem_type='cifs' filesystem_size='50G' filesystem_thin='yes' #filesystem_cifsSyncWrites='no' #filesystem_cifsOpLocks='yes' #filesystem_cifsNotifyOnWrite='no' #filesystem_cifsNotifyOnAccess='no' #filesystem_cifsNotifyDirDepth='512' filesystem_fastvpPolicy='auto' filesystem_eventProrocols='cifs' uemcli -sslPolicy accept -noHeader -d ${unity} -u ${admin_user} -p ${admin_new_pass} /stor/prov/fs create -name "${filesystem_name}" -descr "${filesystem_descr}" -serverName "${nas_name}" -poolName "${pool_name}" -size ${filesystem_size} -thin ${filesystem_thin} -type ${filesystem_type} -fastvpPolicy ${filesystem_fastvpPolicy} ## Create SMB/CIFS Share smb_share_name='CIFSshare' smb_share_descr='CIFS Share for Test' smb_share_path='/' smb_share_continousAvailability='yes' uemcli -sslPolicy accept -noHeader -d ${unity} -u ${admin_user} -p ${admin_new_pass} /stor/prov/fs/cifs create -name "${smb_share_name}" -descr "${smb_share_descr}" -fsName "${filesystem_name}" -path "${smb_share_path}" -enableContinuousAvailability ${smb_share_continousAvailability}

```

No Events found!

Top