• No results found

Suppose the original EMS was installed under the /opt/Unitrans directory.

Note: It is recommended to back up the /opt directory.

1. Back up the following critical configuration files:

¾ /opt/unitrans/gui/etc/mgrcfg.ini

¾ /opt/unitrans/db/cfg

¾ /opt/unitrans/manager/cfg

For example, to back up the configuration files to the /opt/cfg_bak directory, execute the following commands:

# c d / o p t

# m k d i r c f g _ b a k

# m k d i r c f g _ b a k / d b

# m k d i r c f g _ b a k / m a n a g e r

# c p / o p t / u n i t r a n s / g u i / e t c / m g r c f g . i n i c f g _ b a k

# c p / o p t / u n i t r a n s / d b / c f g c f g _ b a k / d b

# c p / o p t / u n i t r a n s / m a n a g e r / c f g c f g _ b a k / m a n a g e r

Warning: The backup files cannot be saved under the EMS installation directory.

2. Map the CD ROM file system

i. Log into the Unix workstation as the root user. Insert the installation CD into the CD ROM.

ii. Execute the following commands to search for the device name of the CD ROM, as shown in Figure 3.

# c d /

# i o s c a n - f n k C d i s k

FI G U R E 3SE A R C H I N G F O R DE V I C E NA M E O F C DR O M

The result shows that the device name of CD ROM is /dev/dsk/c0t0d0.

iii. Execute the # m k d i r / c d r o m to create the cdrom directory.

iv. Execute the # m o u n t - o c d c a s e / d e v / d s k / c 0 t 0 d 0 / c d r o m command to mount the CD ROM to the system.

3. Choose one of the following three methods to back up the database:

¾ Use the backup.sh script

¾ Use the DBMAN tool

¾ Use the database backup function provided by EMS

Note: To backup not only the current data but also the history data, use the DBMAN tool.

To backup database using the backup.sh script i. Execute the following commands:

# c d / o p t / u n i t r a n s / d b

# v i c f g

//Check the database server name. Suppose it is h p 9 a s e. Check if it is correct in the cfg file. Then exit v i.

# . / b a c k u p . s h h p 9 a s e

//Back up the data to the /opt/unitrans/db/backup directory.

ii. Copy the /opt/unitrans/db/backup directory to a directory which is not used for EMS installation, such as / o p t / d a t a _ b a k directory.

iii. Execute the following commands:

# c d / o p t

# m k d i r d a t a _ b a k

# c p - R / o p t / u n i t r a n s / d b / b a c k u p d a t a _ b a k

Note: The database backed up using this method cannot be used for the new EMS. It is only a preventive measure, so that once the EMS upgrade fails, the old data can be restored by running the restore.sh script after the old EMS has been restored.

To backup database using the DBMAN tool

i. Run the DBMAN tool. Suppose DBMAN is located under the /opt/unitrans/db directory, execute the following commands to run DBMAN:

# c d / o p t / u n i t r a n s / d b / d b m a n

# e x p o r t L A N G = C

# . / d b m a n

The DBMAN interface may vary with the EMS version. Taking the ZXONM E300 V3.19R2 in Unix as example, the DBMAN main interface is shown in Figure 4.

FI G U R E 4D B M A N MA I N IN T E R F A C E I N UN I X

ii. Enter 4 which represents for Backup and Restore in Figure 4 to enter the BACKUP AND RESTORE interface, as shown in Figure 5.

FI G U R E 5B A C K U P A N D R E S T O R EIN T E R F A C E O F D B M A N I N UN I X

iii. Enter 1 which represents for Backup database to enter the BACKUP DATABASE interface, as shown in Figure 6.

FI G U R E 6B A C K U P D A T A B A S EIN T E R F A C E O F D B M A N I N UN I X

iv. Enter 1 which represents for Backup directory. Then input the database backup directory, e.g. /opt/data_bak. Press ENTER.

v. In Figure 6, enter 4 which represents for Backup to back up the database.

vi. Exit DBMAN once database backup is completed.

Note: For operation details of DBMAN, refer to Appendix A DBMAN Operations.

Warning: The backup files should be placed under a directory other than the EMS installation directory, since the installation directory will be deleted when removing the EMS.

To backup database using the EMS database backup function i. In the EMS client operation window, click the System -> System

Data Management -> DB Backup or Restore menu item.

ii. In the Database Backup/Restore dialog box, click the DB Backup/Restore tab.

iii. Select the Backup option button. Input or select the backup file directory, and input the backup file folder name.

iv. Click the Backup DB button to start backing up the data.

4. Remove the old version EMS

i. Execute the following commands:

# c d / o p t / u n i t r a n s

# . / u n i s t a l l

ii. Check if the /opt/unitrans directory is empty. If not, follow the steps below to delete it manually:

# p s - e f | g r e p d a t a s e r v e r

//Obtain the d a t a s e r v e r process ID. Suppose it is 2 0 0 2.

# k i l l - 9 2 0 0 2

//Kill the d a t a s e r v e r process

# c d / o p t

# r m - r f / o p t / u n i t r a n s

//Delete the EMS installation directory.

5. Install the new version ZXONM E300 in Unix according to the Unitrans ZXONM E300 (V3.19R2) Unified EMS/SNMS of Optical Network Installation Manual.

6. Choose one of the following two methods to restore the data.

¾ To restore data using the EMS data restore function

¾ To restore data using the DBMAN tool

To restore data using the DBMAN tool

i. Run the DBMAN tool. Suppose DBMAN is located under the / o p t / u n i t r a n s / d b directory, execute the following commands to run DBMAN:

# c d / o p t / u n i t r a n s / d b / d b m a n

# e x p o r t L A N G = C

# . / d b m a n

The DBMAN interface may vary with the EMS version. Taking the ZXONM E300 V3.19R2 in Unix as example, the DBMAN main interface is shown in Figure 4.

ii. Enter 4 which represents for Backup and Restore in Figure 4 to enter the BACKUP AND RESTORE interface, as shown in Figure 5.

iii. Enter 2 which represents for Restore database to enter the RESTORE DATABASE interface, as shown in Figure 7.

FI G U R E 7R E S T O R E D A T A B A S E IN T E R F A C E O F D B M A N I N UN I X ( 1 )

iv. Enter 1 which represents for Backup directory. Then input the database backup directory, e.g. /opt/0603. Press ENTER, then the RESTORE DATABASE interface turns into Figure 8.

FI G U R E 8R E S T O R E D A T A B A S E IN T E R F A C E O F D B M A N I N UN I X ( 2 )

v. In Figure 8, enter 4 which represents for Restore to start to restore the data. After restoring the data successfully, the interface will prompt “database restore successfully”.

To restore data using the EMS data restore function

i. In the client operation window of the EMS software, click the System -> System Data Management -> DB Backup or Restore menu item.

ii. In the Database Backup/Restore dialog box, click the DB Backup/Restore tab.

iii. Select the Restore option button. Input or select the backup file directory, and input the backup file folder name.

iv. Click the Restore DB button to start restoring the data.

7. Execute the following commands to restore the configuration files

# c d / o p t / c f g _ b a k

# c p m g r c f g . i n i / o p t / u n i t r a n s / g u i / e t c

# c p c f g / o p t / u n i t r a n s / d b

# c p c f g / o p t / u n i t r a n s / m a n a g e r

8. Execute the following commands to set the

o p t / u n i t r a n s / g u i / e t c / t e s t file to be writable.

# c d / o p t / u n i t r a n s / g u i / e t c

# c h m o d + w t e s t

9. Execute the following commands to restart the workstation.

# c d /

# s h u t d o w n - r y 0

10. Follow the steps below to download the NE database using the new ZXONM E300.

Note: If the NCP database has been cleared when upgrading the NCP board, the NE database must be downloaded.

i. Start up the ZXONM E300 of new version.

ii. Once the EMS get able to manage NEs, select an NE, then click the System -> NCP Data Management -> DB Download menu item.

iii. Select the Select All The Files check box.

iv. Click the Apply button to start downloading the NE database.

Related documents