• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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