Page 1 of 1
Obtain the list of system domains
Posted: Wed Mar 09, 2016 2:11 pm
by www.rinku31
I can see, their are two commands available to display domain:
1. v-list-web-domain
2. v-list-web-domains
i need to pass user name to retrieve domain list.
I want to obtain the list of system domains without detailed information.
As v-list-sys-users retrieve system users without detailed information.
Just similarly, i want to obtain the list of system domains without detailed information.
Please help.
Re: Obtain the list of system domains
Posted: Wed Mar 09, 2016 6:58 pm
by skamasle
Try
Code: Select all
v-list-web-domains admin |cut -d " " -f1
Re: Obtain the list of system domains
Posted: Thu Mar 10, 2016 3:47 pm
by www.rinku31
This will return all domains of only admin.
i want to list all domains without detailed information.
Re: Obtain the list of system domains
Posted: Thu Mar 10, 2016 8:59 pm
by skamasle
Remove admin from comand:
Code: Select all
v-list-web-domains |cut -d " " -f1
Re: Obtain the list of system domains
Posted: Thu Mar 17, 2016 5:59 am
by www.rinku31
Not working
Code: Select all
root@master:~# v-list-web-domains |cut -d " " -f1
Error:
Usage:
Re: Obtain the list of system domains
Posted: Thu Mar 17, 2016 8:47 am
by tjebbeke
Try something with this:
Code: Select all
v-list-users | tail -n +3 | awk '{print "v-list-web-domains "$1" | tail -n +3"}' | bash
or
v-list-users | tail -n +3 | awk '{print "v-list-web-domains "$1" | tail -n +3"}' | bash | awk '{ print $1}'
Re: Obtain the list of system domains
Posted: Fri Sep 23, 2016 12:47 pm
by skurudo
API documentation and examples:
http://vestacp.com/docs/API.pdf
CLI commands list and descriptions:
http://vestacp.com/docs/CLI.txt