• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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