Reloading PCF Ops Center Configuration
This section describes the procedure involved in reloading the PCF Ops Center configuration from the backup file.
To reload the PCF Ops Center configuration:
-
Log in to the SMI console as an ubuntu user.
-
Untar the backup file created on SMI and move it into a directory.
Example:ubuntu@popcf-cm01:~$ cd ~/backups && tar –zxf popcf-cfg-backup_110219-053530.tar.gz ubuntu@popcf-cm01 :~/backups$
-
Move the backup configuration file into the newly created backups directory.
Example:
ubuntu@popcf-cm01 :~/backups$ cd popcf-cfg-backup_110219-053530 ubuntu@popcf-cm01 :~/backups/popcf-cfg-backup_110219-053530$
-
Convert the exported PCF Ops Center configuration into a clean file, which is ready for import.
Example:
ubuntu@popcf-cm01 :~/backups/popcf-cfg-backup_110219-053530$ cat pcfops*.cfg | perl -pe 's/vendor.*\[(.*)\]/vendor $1/g' | perl -pe 's/(^\s+ips).*\[(.*)\]/$1$2/g' | perl -pe 's/(\w)\s+(\w)/$1 $2/g' | perl -pe 's/^\s+//g' | grep -v "system mode run" > pcfops.txt ubuntu@popcf-cm01 :~/backups/popcf-cfg-backup_110219-053530$