How to change the default option "Delete old image after Upgrade" from 'Yes' to 'No' in Update OS Image.
This change will need to be completed on all Device Servers and the Application Server. This only affects the device class specified in the package file your editing.
For example if you modify the CiscoIOSSwitch.pkg file the changes will only affect the Cisco IOS switches.
Complete the following directions on the Application Server and all Device Servers: (Note: We are going to use Cisco IOS Switch device class as the example)
- We want to source the NCM variables.
- We want to copy the CiscoIOSSwitch.pkg from the package directory to the customerpackage directory to ensure any future Dsr upgrades don't over write the changes we make. Plus its always good practice to copy all changes to the custompackage directory to ensure you have a backup.
- cp $VOYENCE_HOME/package/pkgxml/CiscoIOSSwitch/CiscoIOSSwitch.pkg $VOYENCE_HOME/custompackage/pkgxml/CiscoIOSSwitch/CiscoIOSSwitch.pkg
- NOTE: (If the $VOYENCE_HOME/custompackage/pkgxml/CiscoIOSSwitch/ directory doesn't exist then create it)
- We will now want to edit the CiscoIOSSwitch.pkg file and search for the line we are going to edit.
- vi $VOYENCE_HOME/custompackage/pkgxml/CiscoIOSSwitch/CiscoIOSSwitch.pkg
- /Delete Old Image
- Edit the following line to correct the adjustment.
- <Options name="Delete Old Image After Upgrade" possible-values="yes,no" default="yes"/>
- We changed it to
- <Options name="Delete Old Image After Upgrade" possible-values="yes,no" default="no"/>
- Save changes you have made
- Do a complete restart of the services on both the Application Server and the Device Servers.
- Make sure to download a new Java client and do not reuse Java Short-Cut on your desktop. The best way to complete this is to go the NCM Application Server in your browser https://<NCM Server IP Address>