Heh, have had this page bookmarked for a long time.
"Parisi, Justin" <justin.parisi@netapp.com> wrote:
Not real sure why it's diag level.
If you're interested in other CLI tricks:
https://whyistheinternetbroken.wordpress.com/2015/02/16/techbecome-a-clustered-data-ontap-cli-ninja/
-----Original Message-----
From: John Stoffel <john@stoffel.org>
Sent: Thursday, September 3, 2020 3:43 PM
To: Parisi, Justin <Justin.Parisi@netapp.com>
Cc: Scott Eno <cse@hey.com>; Toasters <toasters@teaparty.net>
Subject: RE: quick question
NetApp Security WARNING: This is an external email. Do not click links or open attachments unless you recognize the sender and know the content is safe.
>>>>> "Justin" == Justin Parisi <Justin.Parisi@netapp.com> writes:
So why is this a diag only command? Does it take too much CPU to sort by specific fields? Seems like a fantastic thing to have in regular mode for sure.
Justin> Just to prove it out:
Justin> ::*> aggr show -aggregate * -fields usedsize,size,percent-used
Justin> -sort-by percent-used
Justin> Error: invalid argument "-sort-by"
Justin> ::*> set diag
Justin> Warning: These diagnostic commands are for use by NetApp personnel only.
Justin> Do you want to continue? {y|n}: y
Justin> ::*> aggr show -aggregate * -fields usedsize,size,percent-used
Justin> -sort-by percent-used
Justin> aggregate percent-used size usedsize
Justin> ------------------------ ------------ ------- --------
Justin> Aggr1_SSD_2 34% 5.24TB 1.79TB
Justin> Aggr1_SSD_1 38% 5.24TB 1.99TB
Justin> Aggr2_SSD_2 42% 5.24TB 2.21TB
Justin> Aggr2_SSD_1 44% 5.24TB 2.32TB
Justin> From: Parisi, Justin
Justin> Sent: Thursday, September 3, 2020 10:32 AM
Justin> To: Scott Eno <cse@hey.com>; Toasters <toasters@teaparty.net>
Justin> Subject: RE: quick question
Justin> Use diag priv.
Justin> From: Scott Eno <cse@hey.com>
Justin> Sent: Thursday, September 3, 2020 10:13 AM
Justin> To: Toasters <toasters@teaparty.net>
Justin> Subject: quick question
Justin> Just checking, does "-sort-by" still work?
Justin> cluster::*> storage aggregate show -aggregate * -fields
Justin> usedsize,size,percent-used -sort-by percent-used
Justin> Error: invalid argument "-sort-by"
Justin> _______________________________________________
Justin> Toasters mailing list
Justin> Toasters@teaparty.net
Justin> https://www.teaparty.net/mailman/listinfo/toasters