NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform.
You will still be able to view content, but posting and replying will be temporarily disabled.
To learn more, please review the information in this blog post.

ONTAP Discussions

report ksh

NgAlpha
5,252 Views

hello

i would like on one command line to gather somes informations like this :

volume name / ip or policy export / used / total

did anyone know how to do it  on one command line or severals  with sh  or ksh

 

Regards

 

 

 

1 ACCEPTED SOLUTION

MKELLYSCSC
5,203 Views

You would need to have a user account on the cluster with ssh access and a public ssh key added to the cluster to avoid having to provide the password every time.

See the man page for "security login publickey" for more details.

 

To get the information you want, just run a command like:

 

ssh <clustername> volume show -volume <volumename> -fields policy, used, total

 

and parse the output.

 

Hope this helps.

View solution in original post

4 REPLIES 4

MKELLYSCSC
5,204 Views

You would need to have a user account on the cluster with ssh access and a public ssh key added to the cluster to avoid having to provide the password every time.

See the man page for "security login publickey" for more details.

 

To get the information you want, just run a command like:

 

ssh <clustername> volume show -volume <volumename> -fields policy, used, total

 

and parse the output.

 

Hope this helps.

NgAlpha
5,179 Views

thanks very much.

it's perfect

NgAlpha
5,166 Views

HI @MKELLYSCSC

I would like to have @IP client match (from export policy) for each volume with used and total capacity on one command line

it is possible ?

MKELLYSCSC
5,161 Views

I don't believe it is.

You can use the 'volume show ...' command to get the name of the export policy applied to the volume.

However, in order to get details of the rules in the policy, you need to use the 'vserver export-policy rule show ...' command.

It shouldn't be too difficult to script this if you have password-less access to the cluster sorted out.

 

Regards.

Public