Print all domains and associated subdomains along with their details on terminal
Hello,
It would be great if you have the option to print all the domains, subdomains and aliases with their owner, document root and ip address on the terminal.
I mean like the file /etc/userdatadomains in cPanel. It will help us a lot to speed up troubleshoot.
1
vote
Nidheesh H
shared this idea
You can use command:
- plesk bin domain -i domain.com
for getting all information about domain. Or
- plesk bin subdomain -i sub.domain.com
For all domains use something like:
- for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e “select name from domains”`; do /usr/local/psa/bin/domain -i $i; done
You can modify this script as you want.
—
IG