#Ontap filters via cli

1 messages · Page 1 of 1 (latest)

tight lotus
#

I know through some places within the CLI I've gotten conditional formats to work properly such as '>=' and volume sizing.
I can't seem to get the formatting right for != And node/aggregate filters through vol show.

Working with a 16n cluster, it gets unwieldy quickly.

Is there a guide on how these are used appropriately within the CLI or is there something I can do differently?

Thanks

weary bough
worldly mortar
#

Vol show -volume !root,!mirror -aggregate ssd*

Show me all volumes on any aggregate that starts with ssd and does not have root or mirror in the name of the volume

#

When using ! you need to use a comma to do multiple queries.

I’m typically using it when looking at “event log show” output.

First I’ll do the show then I’ll progress:

Event log show -message !wafl*,!secd*

And so on

tight lotus
#

Ooo
I was adding != Not just !

#

Because I realized >=15Tb worked for vol sizing, so I got creative with the rest

#

TMAC I appreciate the help.

Are these documented anywhere or just kinda gotta figure it out?

weary bough
#

I recommend reading through the entire section of "Use the ONTAP command-line interface". There are a lot of tricks in there that aren't well known or immediately obvious.