How to export a list of all domains in Plesk with their status, service plan, disk usage, traffic and expiration date to an Excel file

Comments

6 comments

  • Avatar
    Manuel Costa

    Queries output incomplete lists. At least domains that are redirected don't show up in the output list.

    1
  • Avatar
    Alessio De Simone

    The query also does not extract domain aliases

    0
  • Avatar
    Alcor WALTER

    Can you give me the literal statuses for the values in the “status” field? I have values like 0, 16, 64, etc for which I'd like to know if it's “active”, “disabled”, “suspended”.

    0
  • Avatar
    Gilson Siqueira

    Walter, the list of domain code statuses can be found here: https://support.plesk.com/hc/en-us/articles/12377968989463-What-do-the-domain-status-codes-in-Plesk-mean 

    0
  • Avatar
    Frank Heilmann

    How to extract full list of domains including alias, regards and thanks.

    0
  • Avatar
    Gilson Siqueira

    Hi Frank Heilmann , if you literally need a list of domains and aliases with no differentiation between each other, here's how you do it:

    plesk db "SELECT name FROM domains UNION SELECT name FROM domain_aliases ORDER BY name"

    Now, if you need to know which is which, the query is slightly different:

    plesk db "SELECT name, 'Main' AS type FROM domains UNION SELECT name, 'Alias' AS type FROM domain_aliases ORDER BY name"

    Where "Main" is a domain and "Alias" is an alias. Feel free to change such words in the query if necessary.

    If you want just a list of aliases you can run this:

    plesk db "select name from domain_aliases"

    If you need further clarification or assistance, please submit a ticket to Plesk Support.

    1

Please sign in to leave a comment.

Have more questions? Submit a request