• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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