Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Anyway to access /scripts2/listparked ?

Discussion in 'General Discussion' started by kbuser, May 8, 2014.

  1. kbuser

    kbuser Well-Known Member

    Aug 25, 2008
    Likes Received:
    Trophy Points:
    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.
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    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.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    kbuser likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice