This post is more than 5 years old

1 Rookie

 • 

17 Posts

3465

April 28th, 2017 15:00

uemcli script for CIFS share

I keep getting an error on the path.  Anybody have any ideas?

uemcli -d 192.168.1.2 -u admin -p password /stor/prov/fs/cifs create –name shrename -descr "share-description" –fs res_2 -path "/sharename" -enableContinuousAvailability yes

this is the error I'm getting.

the filesystem is there, am i missing something?

The system could not find the specified path. Please use an existing path. (Error Code:0x900a002)

169 Posts

May 1st, 2017 17:00

Example :

00:16:44 service@spa:~> uemcli -no /stor/prov/fs create -name fs02 -server nas_34 -pool pool_2 -size 3G -type cifs

ID = res_82

Operation completed successfully.

00:17:51 service@spa:~> uemcli -no /stor/prov/fs/cifs create -name sharefs01 -fs res_82 -path /fs02

Operation failed. Error code: 0x900a002

The system could not find the specified path. Please use an existing path. (Error Code:0x900a002)

Job ID = N-2687

00:18:23 service@spa:~> uemcli -no /stor/prov/fs/cifs create -name sharefs01 -fs res_82 -path /

ID = SMBShare_76

Operation completed successfully.

After creating the /fs02 under the FS by accessing the above mapping :

00:26:51 service@VIRT1647BL5L3F-spa spa:~> uemcli -no /stor/prov/fs/cifs create -name sharefs02 -fs res_82 -path /fs02

ID = SMBShare_77

Operation completed successfully.

169 Posts

April 30th, 2017 15:00

Did you create that "sharename" as a directory, under the FS?. If not, create using the hidden c$ share first (or create the cifs share as "/" root of the FS and then create a dir).

uemcli cannot create that sharename as a directory, as it can export only what is there.

4 Operator

 • 

8.6K Posts

May 1st, 2017 08:00

BTW your name and path differ by an "a" - not that it matters as long as the directory exists

4 Operator

 • 

4.5K Posts

May 2nd, 2017 09:00

Was your question answered correctly? If so, please remember to mark your question Answered when you get the correct answer and award points to the person providing the answer. This helps others searching for a similar issue.

glen

2 Posts

October 6th, 2017 13:00

Hi maniemc


You said hidden C$, is there a way to protect that?. everything is there.


Regards,

Michael.

4 Operator

 • 

8.6K Posts

October 9th, 2017 04:00

just like on Windows only users that are in the local Administrators group of the CIFS server are allowed access

No Events found!

Top