Network Storage Protocols Discussions

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

Storage6

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

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

donny_lang

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! 🙂

parisi

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

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public