Anyway to access /scripts2/listparked ?
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.
-
Hello :) This command should help get you started: 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.0
Please sign in to leave a comment.
Comments
1 comment