Zum Inhalt springen
Quota Nutzungs-Monitoring

Quota Nutzungs-Monitoring

Einzeiler, der alle Benutzer ausgibt, die mehr als 75% ihres Quotas beanspruchen:

repquota -a -c | tail -n +6 | while read user nothing used max nothing; do
    if [ $max -gt 0 ]; then
        pused=$(echo "scale=2; ($used/$max)*100" | bc | cut -d '.' -f1)
        if [ $pused -ge 75 ]; then
            echo "$pused% $user"
        fi
    fi
done | sort -n
Zuletzt aktualisiert am