Anyway to access /scripts2/listparked ?

kbuser

Well-Known Member
Aug 25, 2008
66
2
58
I need a scripted way to list all the parked domains on my servers. I don't want to write a script to loop through each account and do it using Park::listparkeddomains. The function available in the WHM interface (Account Information / List Parked Domains [/scripts2/listparked]) is exactly what I need. Is there anyway to access this function using either the API or a system call of some sort?

If not, my next approach is a cURL request and parsing the results.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,218
463
Hello :)

This command should help get you started:

Code:
grep parked /etc/userdatadomains
You would need to modify it to manipulate and clean up the output so that it only lists the domain names.

Thank you.
 
  • Like
Reactions: kbuser