• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

How to obtain list of all domain with argument enabled or disabled ?

Status
Not open for further replies.

stevefigueras

Basic Pleskian
How to obtain list of all domain with argument enabled or disabled ? [RESOLVED]

Hello all

I know the command in ssh
/usr/local/psa/bin/domain -u domain.com -status enabled
/usr/local/psa/bin/domain -u domain.com -status disabled

but i want to know how can i do to obtain a complete list with all domains on servers wich indicate me which domains are disabled or not ?

Thanks you so much :)
 
Last edited:
You can obtain list of all enabled domains with following SQL query in Plesk database:

mysql> select name from domains where status=0;

and for disabled domains:

mysql> select name from domains where status=16;
 
Hello
mysql> use psa
mysql> mysql> select name from domains where status=0;

Works great but

mysql> use psa
mysql> select name from domains where status=16;
Empty set (0.00 sec)


don't work :(
 
What is your Plesk version? You can just temporary disable domain and check status of this domain in domains table. Maybe ID was changed. I have checked it on Plesk 12.
 
What is your Plesk version? You can just temporary disable domain and check status of this domain in domains table. Maybe ID was changed. I have checked it on Plesk 12.


mysql -h localhost -u admin -p`cat /etc/psa/.psa.shadow`
usa psa
select name from domains where status=0; for enabled domains
select name from domains where status=2; for disabled domains

It's ok Thanks you all :)
 
Status
Not open for further replies.
Back
Top