ONTAP Discussions

Whether Cmode query command has sorting function

wzndragon1
1,745 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
1,738 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
1,739 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
1,678 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