Network Storage Protocols Discussions

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

Storage6
views-count 589 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.

 

2 REPLIES 2

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

parisi
views-count 590 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

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

donny_lang
views-count 590 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! 🙂

G2 Review Banner
All Community Forums
Public