Network and Storage Protocols
Network and Storage Protocols
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.
Solved! See The Solution
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.
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.
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.
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! 🙂