Installing and Migrating to Cisco Prime LAN Management Solution 4.2
Appendix F: Syntax and Usage for Restore Script

Table Of Contents

Syntax and Usage for Restore Script


Syntax and Usage for Restore Script


You can use the restorebackup.pl script to restore the LMS data you have backed up.

For a successful restoration of backed up data, ensure that all services and processes are up and running. Stop the daemons and then run restorebackup.pl.


Note Cross platform restore is supported only from Solaris/Window to Soft Appliance.


The syntax for restorebackup.pl is as follows:

Solaris and Soft Appliance

NMSROOT/bin/perl NMSROOT/bin/restorebackup.pl -d BKP [-t temporary_directory] [-h] [-gen generationNumber]

Windows

NMSROOT\bin\perl NMSROOT\bin\restorebackup.pl -d BKP [-t temporary_directory] [-h] [-gen generationNumber]

The following table lists the explanation for the syntax:

Syntax
Explanation
NMSROOT—(Required)
LMS installation directory (by default, /opt/CSCOpx in 
Solaris and Soft Appliance, and C:\Program Files\CSCOpx 
in Windows where C: is the System Drive)
-t temporary_directory—(Optional)
This is the directory or folder used by the restore program to 
store its temporary files. By default this directory is 
NMSROOT/tempBackupData. You can customize this by 
specifying your own temporary directory to avoid 
overloading NMSROOT
-gen generationNumber—(Optional)
This is the generation number. -gen now is the latest 
generation. If generations 1 through 5 exist, then 5 is the 
latest. 
-d BKP—(Required)
This is the absolute directory or folder used by the restore 
program to store the backup.
-h—(Optional) 
Displays help. When used with -d BackupDirectory, show s 
correct syntax along with available suites and generations

Examples

To restore...
Enter this command in Solaris and Soft Appliance
Enter this command in Windows

The latest version of data

opt/CSCOpx/bin/perl 
opt/CSCOpx/bin/restorebackup.p
l -d BKP -gen now
C:\Progra~1\CSCOpx\bin\perl 
C:\Progra~1\CSCOpx\bin\ 
restorebackup.pl -d BKP -gen now

The 12th generation of data

opt/CSCOpx/bin/perl 
opt/CSCOpx/bin/restorebackup.p
l -d BKP -gen 12
C:\Progra~1\CSCOpx\bin\perl 
C:\Progra~1\CSCOpx\bin\ 
restorebackup.pl -d BKP -gen 12

Data from the forced auto backup during the CS upgrade process

opt/CSCOpx/bin/perl 
opt/CSCOpx/bin/restorebackup.p
l 
-d DB_BKP1 /automaticbackup/c
mfbackup -gen now
C:\Progra~1\CSCOpx\bin\perl 
C:\Progra~1\CSCOpx\bin\ 
restorebackup.pl -d 
DB_BKP\automaticbackup\cmfbackup 
-gen now

1 DB_BKP is the backup directory created by the user.