Is there a way to change setting on all account in nodeworx ? I want to change the space disk and disable stat, but I don’t want to do this one by one :rolleyes:. I’ve over thousand account.
Is there a magic command in cli to do this ?
Highly recommend you read that - you can automate actions on thousands of accounts using simple bash scripting.
My guess is you’d want to do something like:
for domain in `~iworx/bin/listaccounts --domain`; do
nodeworx -unv -c Siteworx -a edit --domain $domain --OPT_STORAGE 500
done
where OPT_STORAGE specifies a new disk usage quota in megabytes. -u means since you are root user, skip authentication. -n means non-interactive. -v means “verbose” which is optional but you may want some indication that the process is running smoothly.
I’m not sure what you mean by “disable stat” - do you mean not save transfer logs? That can be done by adding --OPT_SAVE_XFER_LOGS 0 to the nodeworx command.