We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it by the end of 2024. Read more about it: https://vestacp.com/docs/vesta-2-development
Obtain the list of system domains
-
- Posts: 21
- Joined: Thu Jun 04, 2015 9:22 am
Obtain the list of system domains
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.
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
Try
Code: Select all
v-list-web-domains admin |cut -d " " -f1
-
- Posts: 21
- Joined: Thu Jun 04, 2015 9:22 am
Re: Obtain the list of system domains
This will return all domains of only admin.
i want to list all domains without detailed information.
i want to list all domains without detailed information.
Re: Obtain the list of system domains
Remove admin from comand:
Code: Select all
v-list-web-domains |cut -d " " -f1
-
- Posts: 21
- Joined: Thu Jun 04, 2015 9:22 am
Re: Obtain the list of system domains
Not working
Code: Select all
root@master:~# v-list-web-domains |cut -d " " -f1
Error:
Usage:
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Obtain the list of system domains
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
API documentation and examples:
http://vestacp.com/docs/API.pdf
CLI commands list and descriptions:
http://vestacp.com/docs/CLI.txt
http://vestacp.com/docs/API.pdf
CLI commands list and descriptions:
http://vestacp.com/docs/CLI.txt