• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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