ONTAP Discussions

Whether Cmode query command has sorting function

wzndragon1
2,331 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
2,324 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
2,325 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”



 

TMACMD
2,264 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