The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    8
    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

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
    kbuser likes this.
Loading...

Share This Page