• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Resolved List domains and plans on Windows

AlexFlores

New Pleskian
Hey guys
Is there any way to get a list of domains with the plan associated?

I have seen some commands like
"%plesk_bin%\dbclient.exe" --direct-sql --sql="select status,name from domains;"

But i havent seen any way to get the plan associated to the website.

Any help?
 
SQL query is a more complicated here. Try to use something like that:

SELECT dom.id as domain_id, dom.name as domain, ps.plan_id, t.name as plan_name from domains dom LEFT JOIN Subscriptions s ON (dom.id=s.object_id AND s.object_type='domain') LEFT JOIN PlansSubscriptions ps ON ps.subscription_id=s.id LEFT JOIN Templates t ON t.id=ps.plan_id;
 
Last edited:
Back
Top