Active IQ Unified Manager Discussions

reading content of a volume through cli

grocanar
7,884 Views

Hi

I m using ontap 9.7P11 and i would like how i can see the content of a volume through the cli? 

I have read some old post on that subject but didin't succéed in it. 

1 ACCEPTED SOLUTION

Ontapforrum
7,838 Views

As Paul already mentioned.  Ideally, content should be read using 'data protocol' via their respective clients. But, if you want to see/list what's there in the volume (dir/file) you can always use 'ls' command from advanced mode at the node shell level.

 

From Cluster shell:

::> node run -node <node>
Type 'exit' or 'Ctrl-D' to return to the CLI
node-01> priv set advanced
Warning: These advanced commands are potentially dangerous; use
them only when directed to do so by NetApp
personnel.


For example: On node-01, there is a volume called cifs_shre, if I want to list what's in it. I can use this cmd:
node-01*> ls /vol/cifs_share
.
..
document.txt

View solution in original post

5 REPLIES 5

paul_stejskal
7,843 Views

This is not possible through the cluster shell.

grocanar
7,842 Views

then how can i see the content?

my problem is that two nfs client didn't see the same thing and i would like to know who is right 

paul_stejskal
7,841 Views

You don't with cluster commands. You do it from the client end. Maybe you could try browsing from a Windows client over CIFS.

Ontapforrum
7,839 Views

As Paul already mentioned.  Ideally, content should be read using 'data protocol' via their respective clients. But, if you want to see/list what's there in the volume (dir/file) you can always use 'ls' command from advanced mode at the node shell level.

 

From Cluster shell:

::> node run -node <node>
Type 'exit' or 'Ctrl-D' to return to the CLI
node-01> priv set advanced
Warning: These advanced commands are potentially dangerous; use
them only when directed to do so by NetApp
personnel.


For example: On node-01, there is a volume called cifs_shre, if I want to list what's in it. I can use this cmd:
node-01*> ls /vol/cifs_share
.
..
document.txt

grocanar
7,833 Views

Thanks for your answer.

I had already seen this and it failed.

 

But it was only because i didn't use the node on which the volume was attached but a node in an other HA PAIR 

thanks for your help 

Public