CV Backup and Restore Using Moshell
CV Backup and Restore Using Moshell
The document gives the procedure to backup and restore a CV using moshell, which can be used for cello based node, e.g. RNC, RBS and MGW.
Although it is more visually to use EMAS [1][2] , it is a alternate method to use moshell for CV backup and restore.
1. CV backup
Use command cvget
RNC13> cvget Fi_CXP9013831_R9TB_091020_1028
Download the following 1 CV's to /home/eweiwli/moshell_logfiles/logs_moshell/cv/RNC13/091020_184757?
========================================================================================================
==
Fi_CXP9013831_R9TB_091020_1028
2009-10-20 10:28 CXP9013831_R9TB
CPP
Final CV autocreated at SU
========================================================================================================
==
Are you Sure [y/n] ? y
Downloading CV 1 of 1: Fi_CXP9013831_R9TB_091020_1028
facc configurationversion=1 putToFtpServer Fi_CXP9013831_R9TB_091020_1028 /d/usr RNC13_Fi_CXP9013831_R9TB_091020_1028.zip 127.0.0.1 moshelluser $password
========================================================================================================
=========
Proxy MO
Action
Nr of Params
========================================================================================================
=========
7054 ConfigurationVersion=1
putToFtpServer
6
>>> Return value = 104835539
========================================================================================================
=========
Total: 1 MOs attempted, 1 MOs actioned
Waiting 20 seconds before starting to poll...
ConfigurationVersion=1 ElapsedTime
currentMainActivity
ConfigurationVersion=1 0s
EXPORTING_BACKUP_CV
ConfigurationVersion=1 10s
EXPORTING_BACKUP_CV
ConfigurationVersion=1 20s
EXPORTING_BACKUP_CV
ConfigurationVersion=1 30s
EXPORTING_BACKUP_CV
ConfigurationVersion=1 40s
EXPORTING_BACKUP_CV
ConfigurationVersion=1 50s
EXPORTING_BACKUP_CV
ConfigurationVersion=1 60s (01m00s) IDLE
Waiting 20 seconds before checking result...
CV action result: EXECUTED
currentDetailedActivity
CREATING_BACKUP
CREATING_BACKUP
CREATING_BACKUP
CREATING_BACKUP
TRANSFERING_BACKUP_TO_REMOTE_SERVER
TRANSFERING_BACKUP_TO_REMOTE_SERVER
IDLE
additionalInfo : CV_BACKUP_NAME
Get /d/usr/RNC13_Fi_CXP9013831_R9TB_091020_1028.zip
/home/eweiwli/moshell_logfiles/logs_moshell/cv/RNC13/091020_184757/RNC13_Fi_CXP9013831_R9TB_091020_1028.zip ... OK
Dele /d/usr/RNC13_Fi_CXP9013831_R9TB_091020_1028.zip ... OK
Successful storage of Fi_CXP9013831_R9TB_091020_1028 to
/home/eweiwli/moshell_logfiles/logs_moshell/cv/RNC13/091020_184757/RNC13_Fi_CXP9013831_R9TB_091020_1028.zip
2. Restore a CV
Put the CV to the node
RNC13> cvput /home/eweiwli/Fi_CXP9013831_R9TB_090831_1449.zip
Put /home/eweiwli/Fi_CXP9013831_R9TB_090831_1449.zip /d/usr/Fi_CXP9013831_R9TB_090831_1449.zip ... OK
facc configurationversion=1 getFromFtpServer /d/usr/Fi_CXP9013831_R9TB_090831_1449.zip 127.0.0.1 moshelluser $password
========================================================================================================
=========
Proxy MO
Action
Nr of Params
========================================================================================================
=========
7054 ConfigurationVersion=1
getFromFtpServer
4
>>> Return value = 105907793
========================================================================================================
=========
Total: 1 MOs attempted, 1 MOs actioned
Waiting 20 seconds before starting to poll...
ConfigurationVersion=1 ElapsedTime
currentMainActivity
currentDetailedActivity
ConfigurationVersion=1 0s
IMPORTING_BACKUP_CV
UNPACKING_RETREIVED_BACKUP
ConfigurationVersion=1 10s
IMPORTING_BACKUP_CV
UNPACKING_RETREIVED_BACKUP
ConfigurationVersion=1 20s
IDLE
IDLE
Waiting 20 seconds before checking result...
CV action result: EXECUTED
additionalInfo : t[0] =
Dele /d/usr/Fi_CXP9013831_R9TB_090831_1449.zip ... OK
The CV Fi_CXP9013831_R9TB_090831_1449 was successfully transferred.
Proxy MO
Action
Nr of Params
========================================================================================================
=========
7054 ConfigurationVersion=1
verifyRestore
1
Parameter 1 of 1, cvName (string): Fi_CXP9013831_R9TB_090831_1449
>>> Return value = 120953557
========================================================================================================
=========
Total: 1 MOs attempted, 1 MOs actioned
From the result information, forced restore is allowed for the CV.
Because the CV is got from another node, the IP address will be changed after restore. On site configuration is needed to change the IP back.
Restore the CV
RNC13> acc ConfigurationVersion forcedRestore
Call Action forcedrestore on following MOs ?
===================================================================================
7054 SwManagement=1,ConfigurationVersion=1
===================================================================================
Are you Sure [y/n] ? y
========================================================================================================
=========
Proxy MO
Action
Nr of Params
========================================================================================================
=========
7054 ConfigurationVersion=1
forcedRestore
2
Parameter 1 of 2, cvName (string): Fi_CXP9013831_R9TB_090831_1449
Parameter 2 of 2, autoconfigurationOn (enumRef-CVAutoConfigurationInformation):
Enter one of the following integers: 0:OFF, 1:ON, 2:AS_CONFIGURED: 1
>>> Return value = 110124651
========================================================================================================
=========
Total: 1 MOs attempted, 1 MOs actioned
If restore successfully, the node will restart with the restored CV.
RNC13> cvcu
========================================================================================================
===========
091020-22:01
CV Name
Upgrade Package
Release
========================================================================================================
===========
Startable:
Fi_CXP9013831_R9TB_090831_1449
CXP9013831_R9TB
P7.1
Loaded:
Fi_CXP9013831_R9TB_090831_1449
CXP9013831_R9TB
P7.1
Executing:
Fi_CXP9013831_R9TB_090831_1449
CXP9013831_R9TB
P7.1
Last created:
RR_CXP9013831_R9TB_091020_1330
CXP9013831_R9TB
P7.1
------------------------------------------------------------------------------------------------------------------Current UpgradePkg:
UpgradePackage=CXP9013831_R9TB
CXP9013831_R9TB
P7.1
AutoCreatedCV:
Enabled
Rollback status:
Rollback is on
Rollback init timer: 2880
Rollback init counter: 2
Rollback counter:
0
Rollback list:
s[17] = RR_CXP9013831_R9TB_091020_1330 RR_CXP9013831_R9TB_091020_1235 Fi_CXP9013831_R9TB_091020_1028
Rb_CXP9013831_R9TB_091020_0949 PGU_CXC1724152_P99ZZ90_090910_094153 Rb_CXP9012995_R6DB%5_091019_1309 CXP9012842_R3BC_10_before_57384
CXP9012123_R9AS%Z_addprog CXP9012123_R9AS%Z_090928_for_61316 Rb_CXP9012123_R10H%19_090925_1205 Fi_CXP9012123_R9AS%Z_090130_1050
Fi_CXP9012842_R3BC%10_090811_2007 Rb_CXP9013831_R9SB_090814_1401 CXP9012842_R3BB Rb_CXP9012842_R3BC%21_090728_1344
Rb_CXP9012842_R3BC_090202_1432 Fi_CXP9012842_R3BB_081208_1400
10602 SwManagement=1,ConfigurationVersion=1
===================================================================================
Are you Sure [y/n] ? y
========================================================================================================
=========
Proxy MO
Action
Nr of Params
========================================================================================================
=========
10602 ConfigurationVersion=1
confirmRestore
0
>>> Return value = 140056542
========================================================================================================
=========
Total: 1 MOs attempted, 1 MOs actioned
3. References
[1]117/1543-CRX 901 49/1, Saving a Configuration Version Backup
[2] 118/1543-CRX 901 49/1, Restoring a Configuration Version Backup