Cisco Systems 1 manual Importing the archived files, Gunzip -c archivefilenamecpio -icvB *switch

Models: 1

1 66
Download 66 pages 6.09 Kb
Page 58
Image 58

$archive –p <tadwop password> -f <archive file location> [-I] [-[{TH}]C] {startstop}

The I flag runs the archive process immediately instead of scheduling it. If the I flag is not specified, the archive process will be scheduled as a cron job which runs daily at 3:00 AM.

The H flag indicates to Cisco PVM to include historical information in the archive.

The T flag indicates to Cisco PVM to include transactional (raw statistics) information in the archive.

The C flag indicates to Cisco PVM to include configuration information in the archive.

Note:

1.To archive the NAM and DSG configurations, use the flag TC, and to archive the OLAP configuration information use the flag HC. Specifying just the C flag is equivalent to specifying both.

2.The archive is done using the standard Oracle export utility. The exported data is compressed for data storage.

Importing the archived files

Data that has been archived can be re-imported. To import the archive, you have to first unzip it using the command:

gunzip -c archive_filenamecpio -icvB “*[switch]*”

where the switch is the type of archive.

Once unzipped, the archive can be imported using the command:

imp tadwop@{cnam spdw} file=/directory/filename ignore=y full=y

where:

cnam is used for transaction archives

spdw is used for historical archives

the directory is the location used for the original backup

the file name is from the unzipped list of files containing.dmp extensions

Example:

If you want to re-host PVM from Host A to Host B, the following procedure would enable you to export and import the configuration information:

On Host A:

$ su – pvmadm

$ cd /<PVM_INSTALL_DIR>/server/bin

$ archive –p <Operator password> -f < filename> -TCI start

On Host B:

$ su – pvmadm

$ imp file=<filename> userid=tadwop/tadwop@CNAM ignore=y full=y

For more information about database related information, see the Cisco PVM User Guide.

Cisco Internal Use Only

Copyright © 2006 Cisco Systems, Inc. All rights reserved.

Page 58 of 66

Page 58
Image 58
Cisco Systems 1 manual Importing the archived files, Gunzip -c archivefilenamecpio -icvB *switch