Certain users like to keep old image in device even after upgrade hence default value of 'YES' to delete image need to be modified.
NCM - 10.1.x
This change will need to be completed on all Device Servers (DS) and the Application Server (AS) / Combination Server (CS). 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/Combination Server and all Device Servers:
(Note: We are going to use Cisco IOS Switch device class as the example)
source /etc/voyence.conf
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)
vi $VOYENCE_HOME/custompackage/pkgxml/CiscoIOSSwitch/CiscoIOSSwitch.pkg
/Delete Old Image
<Options name="Delete Old Image After Upgrade" possible-values="yes,no" default="yes"/>
Change it to
<Options name="Delete Old Image After Upgrade" possible-values="yes,no" default="no"/>
service vcmaster restart
for NCM 10.1.6 and below systemctl restart vcmaster
for NCM 10.1.8 and abovehttps://<NCM Server IP Address>