• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved It is possible to update a Service- or Reseller-Plan on CLI using XML?

Guido De Gobbis

New Pleskian
It is possible to update a Service- or Reseller-Plan on CLI using a XML file?

I tested with

# plesk bin reseller_plan --update "My Reseller Plan" < my_updated_reseller_plan.xml

Response is succsessfully updated, but it doesn't.
 
Thank you for your answer.

In the end, I worked out my own little workflow.
With search and replace I reworked the XML so that I had the parameters for the call.

  1. I Export my reseller plan as XML with
    # plesk bin reseller_plan --xml-info "My Reseller Plan" > my_reseller_plan.xml
  2. Remove lines:
    <reseller-service-plan name="reseller_config_server6_10.10.2018">
    <service-plan-item name="sbnet-user">false</service-plan-item>
    <service-plan-item name="shared">false</service-plan-item>
    <ip-pool><ip-address>...</ip-address>...</ip-pool>
    <service-plan-item name="num_excl_ips">0</service-plan-item>
    <service-plan-item name="num_excl_ipv6s">0</service-plan-item>
    </reseller>
  3. Then replace
    <service-plan-item name=" with -
    "> with [SPACE]
    and finaly replace </service-plan-item> with [EMPTY]
  4. Save as your_global_reseller_plan.txt file an call
    # plesk bin reseller_plan --update "Your reseller plan" -ip-pool add:IPv4,IPv6 `cat your_global_reseller_plan.txt`
So I can set my own global reseller plan and update all my servers with one file, changing adding the IP's in my call. For me it works fine.
 
Back
Top