vps command line usage
Hi,
Some vps command line usage commands:
Add a domain from the command line
/script/add –class=domain –name=testdomain4.com v-docroot=testdomain.com/curent/public –v-password=xyz –v-dnstemplate_name=default.dnst
Delete a client who has no domains:
/script/update –class=client –name=testclient –action=delete
Vps that uses the maximum traffic by using this:
/script/filter/vps-sort-traffic | head -1
Vpses that have gone overquota re traffic.
/script/filter/vps-overquota-traffic
To add a simple cron job, that’s executed either ‘every-hour’ every-day with an cron_day_hour also specified.
/script/add –parent-class=client –parent-name=admin –class=cron –v-ttype=simple –v-simple_cron=every-day –v-cron_day_hour=6 –v-command=”ls -al”
Categories: Articles