Network and Storage Protocols

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

Storage6
4,724 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
4,711 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

3 REPLIES 3

parisi
4,712 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.

SjorsH
2,307 Views

Encapsulating the path in quotes does work, but then I can't use the wildcard character anymore:

vserver locks show -vserver DEMO -volume files -path "/files/test folder/*"

vserver locks show -vserver DEMO -volume files -path /files/test* does work, but could give more info then I want.

donny_lang
4,706 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