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

List clients through CLI

Discussion in 'Plesk for Linux - 8.x and Older' started by magnusl, Nov 16, 2007.

  1. magnusl

    magnusl Guest

    0
     
    Anobody know of a way to retrieve a list of all client accounts through the Plesk CLI? Seems like a basic functionality, but I just can't find it.

    Of course, the information has to be in a MySQL table somewhere, but I'd like to find a way of doing this in a bash script without having to query MySQL directly.
     
  2. Bender

    Bender Guest

    0
     
    Hi,

    I did not find such an ability in the Plesk utilities also(client.sh do not have such option).

    Looks like you will have to use mysql queries.

    For example, clients names can be retrieved thus:
    mysql -uadmin -p`cat /etc/psa/.psa.shadow ` psa -e"select pname from clients"
     
  3. magnusl

    magnusl Guest

    0
     
    Well, it was worth a shot. I will do it the way you described, Bender. Thank you.
     
Loading...