Skip to content

Shell one-liner to parse NetApp user quota data

Assuming you have a dump of quota report from the filer in question at /tmp/toaster.quota, and want to see the top twenty disk users:

egrep '^user' /tmp/toaster.quota | awk '{ print $5, $2 }' | sort -rn | head -20

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*