Locate Accounts that have values outside defined packages?

Elizabeta

Well-Known Member
Mar 21, 2018
225
31
28
Mostar
cPanel Access Level
Root Administrator
Hello,

I have cPanel & WHM version 74.0.10 . I would like to know, is there some command in the command line to list accounts who have values (number of Add On domain, bandwidth etc..) outside of defined packages?

Because, if I change values in some package, this can annul changed values from before.

Best regards,
Elizabeta
 

rpvw

Well-Known Member
Jul 18, 2013
1,101
457
113
UK
cPanel Access Level
Root Administrator
If you want to change a package or feature values for a single user, you should probably be thinking about creating a custom package/feature list, and assigning it to that individual user. That way, their values will not get annulled or reset if you change the values in another package.

I don't know of any way to get a list of accounts that have had their values changed from their assigned plan or feature list but maybe cPanel staff can suggest something.
 

Elizabeta

Well-Known Member
Mar 21, 2018
225
31
28
Mostar
cPanel Access Level
Root Administrator
Hello,

Thank you rpvw on your answer.
My situation is: I work in Internet Service Provider company, I we have defined packages for web hosting cPanel. But, if some user wants to have one additional services (like Add On domain) we can not create a new package immediately.
And if I changed some values in package, this will impact to situation that some values for account will be annulled or reset.

And because of that I would like to know is there a way to get a list of accounts that have had their values changed from their assigned package?

Best regards,
Elizabeta
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,297
1,251
313
Houston

Elizabeta

Well-Known Member
Mar 21, 2018
225
31
28
Mostar
cPanel Access Level
Root Administrator
Hello Lauren,

Thank you very much for your answer.

I looked this links you sent me, thank you.

I found command

Code:
[[email protected] log]# whmapi1 accountsummary user=paneltest
---
data:
  acct:
    -
      backup: 1
      disklimit: 2000M
      diskused: 65M
      domain: example.com
      email: eli*******@gmail.com
      inodeslimit: unlimited
      inodesused: 1541
      ip: 212.*.*.*
      ipv6: []

      is_locked: 0
      legacy_backup: 1
      mailbox_format: maildir
      max_defer_fail_percentage: unlimited
      max_email_per_hour: unlimited
      max_emailacct_quota: unlimited
      maxaddons: 2
      maxftp: 5
      maxlst: unlimited
      maxparked: 6
      maxpop: 6
      maxsql: 4
      maxsub: 6
      min_defer_fail_to_trigger_protection: 5
      outgoing_mail_hold: 0
      outgoing_mail_suspended: 0
      owner: root
      partition: home
      plan: paneltest
      shell: /usr/local/cpanel/bin/noshell
      startdate: 18 Mar 29 12:17
      suspended: 0
      suspendreason: not suspended
      suspendtime: 0
      temporary: 0
      theme: paper_lantern
      uid: 1004
      unix_startdate: '1522318638'
      user: panel
metadata:
  command: accountsummary
  reason: OK
  result: 1
  version: 1
This account have package paneltest, but this account have number of AddOn domain 2 (number of AddOn domain in package paneltest is 4).

I do not see in this output of command even a tag that this account have value for AddOn domain 2 which is different of package value. But in WHM there is:

upload_2018-11-19_14-6-44.png

I would like to to get a list account via command line that have had their values changed from their assigned package?

Best regards,
Elizabeta
 
Last edited by a moderator:

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,297
1,251
313
Houston
Hi @Elizabeta

The value for addon domains in the account summary is:

maxaddons: 2

But this isn't really telling the overrides - for package values from what I'm finding there isn't something that will pull just that information.
 

Elizabeta

Well-Known Member
Mar 21, 2018
225
31
28
Mostar
cPanel Access Level
Root Administrator
Hello Lauren,

If I change another value in package paneltest (i.e. number of maxftp) and apply to all accounts, this will annull
all previous values for this account (like maxaddons to package value).
I would like to know is there any command to show all accounts who have different values from assigned package.

Best regards,
Elizabeta
 

Elizabeta

Well-Known Member
Mar 21, 2018
225
31
28
Mostar
cPanel Access Level
Root Administrator
Hello,


[[email protected] log]# whmapi1 accountsummary user=paneltest
---
data:
acct:
-
backup: 1
disklimit: 2000M
diskused: 65M
domain: pa***.org
email: eli******@gmail.com
inodeslimit: unlimited
inodesused: 1541
ip: 212.*.*.*
ipv6: []

is_locked: 0
legacy_backup: 1
mailbox_format: maildir
max_defer_fail_percentage: unlimited
max_email_per_hour: unlimited
max_emailacct_quota: unlimited
maxaddons: 5
maxftp: 5
maxlst: unlimited
maxparked: 6
maxpop: 6
maxsql: 4
maxsub: 6
min_defer_fail_to_trigger_protection: 5
outgoing_mail_hold: 0
outgoing_mail_suspended: 0
owner: root
partition: home
plan: paneltest
shell: /usr/local/cpanel/bin/noshell
startdate: 18 Mar 29 12:17
suspended: 0
suspendreason: not suspended
suspendtime: 0
temporary: 0
theme: paper_lantern
uid: 1004
unix_startdate: '1522318638'
user: paneltest
metadata:
command: accountsummary
reason: OK
result: 1
version: 1

Now is number of maxaddons 5, and package value is 4.
There is no difference in output where some values (i.e. maxaddons) exceeded or
they do not have assigned package values.