The transition to NetApp MS Azure AD B2C is complete. If you missed the pre-registration, you will be invited to reigister at next log in.
Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

ONTAP Discussions

using conditional execution in CLI


Is there a way to use conditional logic on the OnTap CLI between different fields? Like if I wanted to get all users that are over 1TB OR using more than 1million files? E.g. something like

quota report (-disk-used >1TB | -files-used >1000000)


I don't have access to a cluster that has quotas enabled, so I wasn't able to get any real results, but I was able to successfully execute a CLI command similar to what you provided:

quota report -disk-used >1tb -files-used > 1000000


Have you tried running a similar command?


Hi @Girton ,


i think he wishes to make an OR statement rather an AND - that your example will result.

i tried to find a way as well. but the only thing worked for me is just to execute the command twice...

quota report -disk-used >100g;quota report -files-used >500



Gidi Marcus (Linkedin) - Storage and Microsoft technologies consultant - Hydro IT LTD - UK


Thank you for the reply. You are correct; that's what I was going for. I guess I'll just have to settle for looking for similarities between two separate commands.

NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner