ONTAP Discussions

report ksh

NgAlpha
2,978 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
2,929 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
2,930 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
2,905 Views

thanks very much.

it's perfect

NgAlpha
2,892 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
2,887 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