• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

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