Network and Storage Protocols

How does NetApp in Cluster Mode, treat spaces in the command for path parameter

Storage6
1,734 Views

Hi All,

 

How does NetApp in Cluster Mode, treat spaces in the command for path parameter. 

For example - cluster::> vserver locks show -vserver svm -path /vol/volume_name/qtree_name/01 abcd/xyz.xls

Here the directory "01 abcd" space between 01 and abcd causing incorrect path. Any options to mitigate this. Please help.

 

1 ACCEPTED SOLUTION

parisi
1,721 Views

Encapsulate the path in quotes.

 

Example:

 

ontap9-tme-8040::*> vserver locks show -vserver DEMO -volume files -path "/files/test folder/test.txt"

Vserver: DEMO
Volume Object Path LIF Protocol Lock Type Client
-------- ------------------------- ----------- --------- ----------- ----------
files /files/test folder/test.txt
data2 cifs share-level 10.193.67.236
Sharelock Mode: read-deny_delete
op-lock 10.193.67.236
Oplock Level: batch
2 entries were displayed.

View solution in original post

2 REPLIES 2

parisi
1,722 Views

Encapsulate the path in quotes.

 

Example:

 

ontap9-tme-8040::*> vserver locks show -vserver DEMO -volume files -path "/files/test folder/test.txt"

Vserver: DEMO
Volume Object Path LIF Protocol Lock Type Client
-------- ------------------------- ----------- --------- ----------- ----------
files /files/test folder/test.txt
data2 cifs share-level 10.193.67.236
Sharelock Mode: read-deny_delete
op-lock 10.193.67.236
Oplock Level: batch
2 entries were displayed.

donny_lang
1,720 Views

You can put quotes around the path like this: 

 

vserver locks show -vserver svm -path "/vol/volume_name/qtree_name/01 abcd/xyz.xls"

 

EDIT: @parisi beat me to it! 🙂

Public