steve.arvixe

Registered
Aug 19, 2010
2
0
51
Hello,

There is a file located at /var/cpanel/someuser.accts that usually lists all of the accounts associated with the reseller someuser. This has worked great in the past, and I've used it to build scripts for various tasks. However, just recently I've found a reseller file that is completely out of sync with what WHM (meaning there are missing entries for various users). I know they're out of sync because WHM correctly lists all of the user's accounts under reseller center.

Can anyone suggest what may be wrong or why the information from both sources is not the same?

Regards,

EDIT:
My system information.

cPanel 11.25.0-R46156 - WHM 11.25.0 - X 3.9 CENTOS 5.5 x86_64 standard
 
Last edited:

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
Hello,

There is a file located at /var/cpanel/someuser.accts that usually lists all of the accounts associated with the reseller someuser. This has worked great in the past, and I've used it to build scripts for various tasks. However, just recently I've found a reseller file that is completely out of sync with what WHM (meaning there are missing entries for various users). I know they're out of sync because WHM correctly lists all of the user's accounts under reseller center.

Can anyone suggest what may be wrong or why the information from both sources is not the same?

Regards,

EDIT:
My system information.

cPanel 11.25.0-R46156 - WHM 11.25.0 - X 3.9 CENTOS 5.5 x86_64 standard
The .accts files are not used by the system and should not be relied upon as authoritative. They are generated for a reseller by that reseller visiting the List Accounts interface in WHM. They are the data file served when a the user clicks the Fetch CSV link in List Accounts.

To obtain authoritative information on resellers and accounts they own, you should use an API call.

For example to retrieve a list of Resellers: ListResellerAccounts < AllDocumentation/AutomationIntegration < TWiki

To list accounts owned by a Reseller: ListResellersAccountsInformation < AllDocumentation/AutomationIntegration < TWiki