1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

listing domains on CLI

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by MykelS, May 13, 2010.

  1. MykelS

    MykelS Guest

    0
     
    hi,

    apologies if this question has been asked before, i cannot find a response here or on google (or even the documentation) and im stumped.

    does anyone know how to get a list of domains currently hosted?

    i need just the domain names and it needs to be on the CLI - not through the web interface.

    thanks,
    mykel
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,244
    Location:
    Novosibirsk, Russia
    # mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e "select name from domains"
     
Loading...