ONTAP Discussions

Whether Cmode query command has sorting function

wzndragon1
599 Views

Hi,All:

 

       I often need to query the changes of end customer storage objects, such as Lun show and Vol show. Can I sort according to the creation time and whether ONTAP has such function?

1 ACCEPTED SOLUTION

TMACMD
592 Views

You did not indicate how you are getting your information. 
i could do something like this

 

 ssh admin@netapp “set d ; lun show -fields x,y,z -sort-by  x,z”



 

View solution in original post

3 REPLIES 3

TMACMD
593 Views

You did not indicate how you are getting your information. 
i could do something like this

 

 ssh admin@netapp “set d ; lun show -fields x,y,z -sort-by  x,z”



 

parisi
540 Views

TMACMD
532 Views

Awesome @parisi !

 

I have this page dedicated to sorting on the CLI: Ever wish you could SORT on the ONTAP CLI? | TMAC's rack (wordpress.com)

Lots of examples.

Public