search cancel

How to prepare for a DX NetOps Spectrum Upgrade by running the preUpgradeBackup Script

book

Article ID: 239419

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

How to prepare for a DX NetOps Spectrum Upgrade by running the preUpgradeBackup Script

Environment

Release: All Supported Releases

Component: SPCINS - Installation/Upgrade

Resolution

Attached is a preUpgradeBackup.sh script that users can run before a Spectrum upgrade to backup all recommended files and directories into a single zip file. This file should be stored outside of the Spectrum installation directory before the upgrade is started. It is recommended that the script be run on all SpectroSERVERs and OneClick Servers within the environment. Below are the steps on how to execute the script.

 

Windows

1. Unzip and place the script in the <SPECROOT>/bin/support directory.

2. Open a command prompt as the install user and run the following commands:

    bash -login

    ./bin/support/preUpgradeBackup.sh

3. Once complete, a <SPECROOT>/preUpgrade-<Hostname>-<Date>.tar.gz file will be created containing all of the information.

 

Linux

1. Unzip and place the script in the <SPECROOT>/bin/support directory.

2. Login as the install user and run the following commands:

    cd <SPECROOT>/bin/support

    chmod +x preUpgradeBackup.sh

    cd <SPECROOT>

    ./bin/support/preUpgradeBackup.sh

3. Once complete, a <SPECROOT>/preUpgrade-<Hostname>-<Date>.tar.gz file will be created containing all of the information.

 

NOTES:

- Also attached is a lite version of this script. This will collect the same files but will not run the perfCollector script. This may be more desirable in larger environments.

- This script does not include the SpectroSERVER, Archive Manager and Report Manager database backups. These need to be done separately and should always be backed up before completing an upgrade.

Additional Information

Below is a list of the files and directories the script will collect:

It will first run perfCollector and grab the <SPECROOT>/Performance/ directory, then collect:

/opt/SPECTRUM/*.env
app-defaults/*
<SPECROOT>/.hostrc
<SPECROOT>/.corbarc
<SPECROOT>/.jcorbarc
<SPECROOT>/.installrc
<SPECROOT>/Install-Tools/.history
<SPECROOT>/custom/
<SPECROOT>/mysql/my-spectrum.cnf
<SPECROOT>/mysql/slow-queries.log
<SPECROOT>/lib/SDPM/processd_log*
<SPECROOT>/lib/SDPM/partslist/*.idb
<SPECROOT>/lib/SDPM/runtime/*.rtt
<SPECROOT>/LS/.locrc and LOCSERV.OUT*
<SPECROOT>/SS/.vnmrc , VNM.OUT* ,.VNMDB.LOCK , SSdbload.log , dbmigrate.log , RCPD.OUT*
<SPECROOT>/SS/*.log , .moot.* , ADiscDebug* , pstack.out , event_disp_error_file.txt
<SPECROOT>/SS/DDM/.configrc , ARCHMGR.OUT*
<SPECROOT>/SS/support/SpectroSERVER.info
<SPECROOT>/NCM/NCMSERV*
<SPECROOT>/PolicyMgmt/*.xml*
<SPECROOT>/PolicyMgmt/Spectrum/*.xml*
<SPECROOT>/Notifier/*
<SPECROOT>/SSLOGGER/.ssloggerrc , SSLOGGER.OUT* , model* , *.dat, Sync_SRG.conf
<SPECROOT>/SSLOGGER/SRG/*.conf
<SPECROOT>/SS/CsVendor/Cisco_Router/Rtr.txt , EventDisp 
<SPECROOT> /SS/CsVendor/Ctron_CAT/Switch.txt , EventDisp
<SPECROOT> /SS/CsVendor/CiscoPIX/Pix.txt , EventDisp
<SPECROOT>/SDM/sdmLog* , sdm.config
<SPECROOT>/SDM/Logs/*
<SPECROOT>/vnmsh/.vnmshrc , VNMSHD.OUT*
<SPECROOT>/tomcat/logs/*
<SPECROOT>/tomcat/conf/server.xml
<SPECROOT>/tomcat/webapps/axis2/META-INF/context.xml
<SPECROOT>/tomcat/webapps/spectrum/WEB-INF/web.xml
<SPECROOT>/tomcat/webapps/spectrum/META-INF/*.xml
<SPECROOT>/tomcat/bin/OneClickService.conf tomcat/bin/64enabled*
<SPECROOT>/tomcat/bin/catalina.sh
<SPECROOT>/webtomcat/logs/*
<SPECROOT>/webtomcat/conf/server.xml
<SPECROOT>/webtomcat/webswing/webswing.config
<SPECROOT>/webtomcat/bin/webswing.properties
<SPECROOT>/webtomcat/bin/webswing-admin.properties
<SPECROOT>/UninstallerData/installvariables.properties

Attachments

1655932874291__preUpgradeBackupLite.zip get_app
1649869244551__preUpgradeBackup.zip get_app