• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/
  • On Plesk for Linux mod_status is disabled on upgrades to improve Apache security.
    This is a one-time operation that occurs during an upgrade. You can manually enable mod_status later if needed.

List clients through CLI

M

magnusl

Guest
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.
 
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"
 
Well, it was worth a shot. I will do it the way you described, Bender. Thank you.
 
Back
Top