can't extract contact email for domain

santouras

Registered
May 26, 2006
3
0
151
Hi all,

I'm connecting into WHM and am trying to pull down a list of all accounts on our server. The URL that I'm getting the info from is

/scripts2/listaccts?nohtml=1&viewall=1

The problem is that it doesn't show all of the information that is available, it only has
Code:
username=domain,package,owner
I also tried using the fetchcsv script

/scripts/fetchcsv

which seems to export a whole lot more info, including setup date, the server its on, etc etc, but it still doesn't have the contact email. I could do a regex on the contents of "/scripts2/listaccts" but I don't really want to do that. Is there another script I can hit to see these contact emails?

cheers

as an addendum to this request, is there a way of extracting the secondary email that can be added in cpanel? I've had a look through WHM and I can't see reference to it, it appears to only be available in CPanel
 
Last edited:

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
Hi all,

I'm connecting into WHM and am trying to pull down a list of all accounts on our server. The URL that I'm getting the info from is

/scripts2/listaccts?nohtml=1&viewall=1

The problem is that it doesn't show all of the information that is available, it only has
Code:
username=domain,package,owner
I also tried using the fetchcsv script

/scripts/fetchcsv

which seems to export a whole lot more info, including setup date, the server its on, etc etc, but it still doesn't have the contact email. I could do a regex on the contents of "/scripts2/listaccts" but I don't really want to do that. Is there another script I can hit to see these contact emails?

cheers

as an addendum to this request, is there a way of extracting the secondary email that can be added in cpanel? I've had a look through WHM and I can't see reference to it, it appears to only be available in CPanel
You may wish to use the XML-API for this :)2086/xml-api/listaccts) as it is the preferred method for retrieving this data. Additionally, as it is an API, it is unlikely to change significantly without notice (unlike /scripts via WHM).

However, I will note that the API does not list the secondary contact email either (only the primary if it is set). Perhaps you may wish to submit an official feature request for the API to include this information?