Hello,
Like cPanelMichael said, you can use the API commands from the SSH/Command Line:
After that, you can parse the output from the API command and look for the "reason:" part.
Code:
[root@server1 suspended]# whmapi1 listsuspended
---
data:
account:
-
is_locked: 0
owner: owner1
reason: Overdue on Payment
time: Mon May 8 09:28:31 2017
unixtime: '1494224911'
user: suspendeduser1
-
is_locked: 0
owner: owner1
reason: User transferred to another server.
time: Wed Feb 15 20:30:00 2017
unixtime: '1487183400'
user: suspendeduser2
metadata:
command: listsuspended
reason: OK
result: 1
version: 1
Alternatively, you can use the files in /var/cpanel/suspended/ and look into those files for the reason.
For example, after a user is transferred to another server using the Transfer Tool, the file from /var/cpanel/suspended/ for that user contains the reason of the suspension:
Code:
User transferred to another server.
Good luck.