Use resource plan modification when you want to modify a resource plan using a script.
This package contains the EGO CLI Resource Plan Modification feature, which allows you to modify your resource plan using the command line interface (CLI). Use this feature when you want to modify a resource plan using a script. Benefits of using this feature include triggering the update of resource plan by means of a script. Without this feature, you must log on to the Platform Management Console (PMC) to modify the resource plan.
Only the Cluster Administrator or the Consumer Administrator of the top-level consumer can update the resource plan using egosh.
Validates the applied resource plan against the schema.
The applied resource plan must be a valid resource plan XML file.
Checks for conflicts between the applied resource plan and the backend resource plan.
The consumer in the applied resource plan must exist in the backend resource plan.
Delivers the applied resource plan to the backend and makes it take effect.
Calls the EGO API to deliver the applied resource plan to the backend.
Log on as a cluster administrator in egosh.
The credential are saved in a temp directory. Over the next 8 hours, egosh uses this credential to execute commands and does not need the user's password.
In your script, call egosh applyconsumer -e C:\ C:\ResourcePlan.xml and egosh applyconsumer -e C:\ C:\ResourcePlan_new.xml to switch resource plans when some event occurs.