The NetApp Community is moving to a new platform and is in Read-Only mode. Click to learn more.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

How to list shares inside the volume

balaji_chitiraivel
10,574 Views

Hi All,

 

Is there any command to list the shares inside the volume?

 

We have command to list the luns inside the volume likewise any commands to list the shares ? Please advise.

1 ACCEPTED SOLUTION

georgevj
10,565 Views

I Dont see a straight forward command to do this, however, you may be able to do this by filtering the output of "cifs shares" command from a Linux workstation , like this:

# grep "/vol/volname" <output_of_cifs_shares>

If you are familiar with programming, you could also use the NetApp SDK to create your own program to do this.

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Cannot find the answer you need? No need to open a support case - just CHAT and we’ll handle it for you.

View solution in original post

2 REPLIES 2

georgevj
10,566 Views

I Dont see a straight forward command to do this, however, you may be able to do this by filtering the output of "cifs shares" command from a Linux workstation , like this:

# grep "/vol/volname" <output_of_cifs_shares>

If you are familiar with programming, you could also use the NetApp SDK to create your own program to do this.

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Cannot find the answer you need? No need to open a support case - just CHAT and we’ll handle it for you.

balaji_chitiraivel
10,523 Views

Thanks George

Public