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

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

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    kbuser likes this.
Loading...

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