Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
hcur
Participant
Participant
Jump to solution

sp_upgrade script

Can anyone please confirm or point me in right direction what is exactly sp_upgrade script does?

0 Kudos
1 Solution

Accepted Solutions
Tom_Kendrick
Employee
Employee

It's a script used during the upgrade process of maestro systems. Have a look here for some background: 

https://sc1.checkpoint.com/documents/R81.20/WebAdminGuides/EN/CP_R81.20_Maestro_AdminGuide/Content/T...

 

If you look for a copy of it - for example /opt/CPsmo-R81.20/bin/sp_upgrade you can open it in a text editor, look for the section called usage, and you will see a description - which defines the options it provides like this (this is taken from the script on an appliance in the lab, so be aware it may look different when run interactively:

Usage: sp_upgrade [options]
If no options are provided:
1. The script will continue the upgrade process.
2. The script will only be executed on Security Group Member that were already upgraded via CPUSE upgrade.
Options:
--h | --help Print this built-in help.
--revert Start the downgrade procedure, provides instructions.
--revert --NO-MVC Start the downgrade procedure with Multi-Version Cluster mode disabled.
--cleanup Perform a cleanup after the upgrade.
--continue Resume last run of $prog.
--post-downgrade-cleanup Perform a cleanup after the downgrade.
--cancel-revert Cancel the downgrade (revert) procedure. Use this flag only if no member has been reverted to previous version.
--NO-MVC Start the upgrade procedure with the Multi-Version Cluster mode disabled.
--fetch_from_tmp Fetch Policy from $FWDIR/state/__tmp - per sk178045
--continue --fetch_from_tmp Resume last run of $prog, Fetch Policy from $FWDIR/state/__tmp - per sk178045
--verify Run the Pre-Upgrade Verifier.

View solution in original post

0 Kudos
2 Replies
Tom_Kendrick
Employee
Employee

It's a script used during the upgrade process of maestro systems. Have a look here for some background: 

https://sc1.checkpoint.com/documents/R81.20/WebAdminGuides/EN/CP_R81.20_Maestro_AdminGuide/Content/T...

 

If you look for a copy of it - for example /opt/CPsmo-R81.20/bin/sp_upgrade you can open it in a text editor, look for the section called usage, and you will see a description - which defines the options it provides like this (this is taken from the script on an appliance in the lab, so be aware it may look different when run interactively:

Usage: sp_upgrade [options]
If no options are provided:
1. The script will continue the upgrade process.
2. The script will only be executed on Security Group Member that were already upgraded via CPUSE upgrade.
Options:
--h | --help Print this built-in help.
--revert Start the downgrade procedure, provides instructions.
--revert --NO-MVC Start the downgrade procedure with Multi-Version Cluster mode disabled.
--cleanup Perform a cleanup after the upgrade.
--continue Resume last run of $prog.
--post-downgrade-cleanup Perform a cleanup after the downgrade.
--cancel-revert Cancel the downgrade (revert) procedure. Use this flag only if no member has been reverted to previous version.
--NO-MVC Start the upgrade procedure with the Multi-Version Cluster mode disabled.
--fetch_from_tmp Fetch Policy from $FWDIR/state/__tmp - per sk178045
--continue --fetch_from_tmp Resume last run of $prog, Fetch Policy from $FWDIR/state/__tmp - per sk178045
--verify Run the Pre-Upgrade Verifier.

0 Kudos
hcur
Participant
Participant

Thanks Tom

0 Kudos