Just checking, does "-sort-by" still work?
cluster::*> storage aggregate show -aggregate * -fields usedsize,size,percent-used -sort-by percent-used
Error: invalid argument "-sort-by"
Use diag priv.
From: Scott Eno cse@hey.com Sent: Thursday, September 3, 2020 10:13 AM To: Toasters toasters@teaparty.net Subject: quick question
Just checking, does "-sort-by" still work?
cluster::*> storage aggregate show -aggregate * -fields usedsize,size,percent-used -sort-by percent-used
Error: invalid argument "-sort-by"
Just to prove it out:
::*> aggr show -aggregate * -fields usedsize,size,percent-used -sort-by percent-used
Error: invalid argument "-sort-by"
::*> set diag
Warning: These diagnostic commands are for use by NetApp personnel only. Do you want to continue? {y|n}: y
::*> aggr show -aggregate * -fields usedsize,size,percent-used -sort-by percent-used aggregate percent-used size usedsize ------------------------ ------------ ------- -------- Aggr1_SSD_2 34% 5.24TB 1.79TB Aggr1_SSD_1 38% 5.24TB 1.99TB Aggr2_SSD_2 42% 5.24TB 2.21TB Aggr2_SSD_1 44% 5.24TB 2.32TB
From: Parisi, Justin Sent: Thursday, September 3, 2020 10:32 AM To: Scott Eno cse@hey.com; Toasters toasters@teaparty.net Subject: RE: quick question
Use diag priv.
From: Scott Eno <cse@hey.commailto:cse@hey.com> Sent: Thursday, September 3, 2020 10:13 AM To: Toasters <toasters@teaparty.netmailto:toasters@teaparty.net> Subject: quick question
Just checking, does "-sort-by" still work?
cluster::*> storage aggregate show -aggregate * -fields usedsize,size,percent-used -sort-by percent-used
Error: invalid argument "-sort-by"
"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 -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 -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 usedsize,size,percent-used -sort-by Justin> 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
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-cluster...
-----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
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-cluster...
-----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%E2%80%9D
Yeah, it's got some great tips. I find it annoying that there are still some parts of the cDOT CLI which are not tab-completion enabled for some reason. It's jarring to run into a points.
Otherwise it's a huge imrpovement, once you wrap you mind around the policy rules and applying them to exports. It was simpler with /etc/exports on the old 7-mode setups, but this works better long run.
Scott> Heh, have had this page bookmarked for a long time. Scott> "Parisi, Justin" justin.parisi@netapp.com wrote:
Scott> Not real sure why it's diag level.
Scott> If you're interested in other CLI tricks:
Scott> https://whyistheinternetbroken.wordpress.com/2015/02/16/techbecome-a-cluster... Scott>
Scott> -----Original Message----- Scott> From: John Stoffel john@stoffel.org Scott> Sent: Thursday, September 3, 2020 3:43 PM Scott> To: Parisi, Justin Justin.Parisi@netapp.com Scott> Cc: Scott Eno cse@hey.com; Toasters toasters@teaparty.net Scott> Subject: RE: quick question
Scott> NetApp Security WARNING: This is an external email. Do not click links or open attachments Scott> unless you recognize the sender and know the content is safe.
"Justin" == Justin Parisi Justin.Parisi@netapp.com writes:
Scott> So why is this a diag only command? Does it take too much CPU to sort by specific fields? Scott> 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
Thank you sir! I'm referencing your tr-4571. I saw the asterisk, but assumed it was advanced mode.
cluster::*> storage aggregate show -aggregate aggr1* -fields usedsize,size,percent-used -sort-by percent-used aggregate percent-used size usedsize ----------- ------------ ------ --------
aggr1_node1 26% 7.86TB 2.05TB aggr1_node2 26% 7.86TB 2.02TB 2 entries were displayed.