簡介
本文說明如何使用災難恢復系統(DRS)通過命令列介面(CLI)在Cisco Unified Communications Manager(CUCM)上進行備份和還原操作。
由Joy Pal創作,由Alexander Levichev和Deepak Kumar編輯
必要條件
本檔案沒有先決條件。
需求
本文件沒有特定需求。
採用元件
本文件所述內容不限於特定軟體和硬體版本。
背景資訊
管理員通常通過災難恢復系統(DRS)Web圖形使用者介面(GUI)執行備份和恢復操作。
在許多情況下,由於網路問題或Cisco Tomcat服務未運行,管理員無法登入到Disaster Recovery System(DRS)網頁。
在這些情況下,管理員可以使用Disaster Recovery System(DRS)和Command Line Interface(CLI)命令執行備份或還原操作。
備份過程
1.新增備份裝置。
語法:
utils disaster_recovery device add network <backup device name> <path> <ip-address of remote server> <username> [備份數]
範例:
admin:utils disaster_recovery device add network linuxbox ./ 10.48.53.123 ccmadmin
Please enter password to connect to network server 10.48.53.123:****
drfCliMsg: Backup Device has been saved successfully.
2.檢查新增的裝置。
語法:
utils disaster_recovery device list
範例:
admin:utils disaster_recovery device list
Device Name Device Type Device Path
--------------------------------------------------------------
linuxbox NETWORK ./
3.進行備份。
語法:
utils disaster_recovery backup network <featurelist> <backup device name>
Featurelist — 要備份的功能的逗號分隔清單。使用「utils disaster_recovery show_registration <servername>」顯示已註冊功能的清單。
範例:
admin:utils disaster_recovery backup network UCM,CDR_CAR,PLM linuxbox
drfCliMsg: Backup initiated successfully. Please run 'utils disaster_recovery status backup' command to see the status
<p style="background-image: url('http://www.cisco.com/en/US/i/templates/warn.gif'); background-repeat: no-repeat; background- position: 2px 4px;
height: auto; width: auto; padding: 10px 5px 10px 35px; margin-top: 10px; margin-bottom: 10px; border-top: 1px solid #ccc; border-bottom: 1px
solid #ccc; overflow-x: hidden;"><strong>Warning</strong>: {The DRS Backup archive encryption depends on the current security password (Provided at the time of install). During a restore, you could be prompted to enter this security password if this password has been changed.}</p>
4.檢查備份的狀態。
語法:
utils disaster_recovery status backup
範例:
admin:utils disaster_recovery status backup
Status: SUCCESS :Backup Completed...
Tar Filename: 2017-08-18-12-17-19.tar
Storage Location: NETWORK
Operation: backup
Percentage Complete: 100
PLM CUCM160 ELM-AGENT SUCCESS Fri Aug 18 12:17:19 CEST 2017 activelog/platform/drf/log/2017-08-18-12-17-19_b_cucm160_plm_elm-agent.log
PLM CUCM160 ELM-SERVER SUCCESS Fri Aug 18 12:17:21 CEST 2017 activelog/platform/drf/log/2017-08-18-12-17-19_b_cucm160_plm_elm-server.log
CDR_CAR CUCM160 CAR SUCCESS Fri Aug 18 12:17:27 CEST 2017 activelog/platform/drf/log/2017-08-18-12-17-19_b_cucm160_cdr_car_car.log
UCM CUCM160 BAT SUCCESS Fri Aug 18 12:19:23 CEST 2017 activelog/platform/drf/log/2017-08-18-12-17-19_b_cucm160_ucm_bat.log
UCM CUCM160 CCMPREFS SUCCESS Fri Aug 18 12:19:25 CEST 2017 activelog/platform/drf/log/2017-08-18-12-17-19_b_cucm160_ucm_ccmprefs.log
UCM CUCM160 PLATFORM SUCCESS Fri Aug 18 12:19:30 CEST 2017 activelog/platform/drf/log/2017-08-18-12-17-19_b_cucm160_ucm_platform.log
UCM CUCM160 TCT SUCCESS Fri Aug 18 12:19:34 CEST 2017 activelog/platform/drf/log/2017-08-18-12-17-19_b_cucm160_ucm_tct.log
UCM CUCM160 SYSLOGAGT SUCCESS Fri Aug 18 12:19:35 CEST 2017 activelog/platform/drf/log/2017-08-18-12-17-19_b_cucm160_ucm_syslogagt.log
UCM CUCM160 CDPAGT SUCCESS Fri Aug 18 12:19:36 CEST 2017 activelog/platform/drf/log/2017-08-18-12-17-19_b_cucm160_ucm_cdpagt.log
UCM CUCM160 CLM SUCCESS Fri Aug 18 12:19:37 CEST 2017 activelog/platform/drf/log/2017-08-18-12-17-19_b_cucm160_ucm_clm.log
UCM CUCM160 CCMDB SUCCESS Fri Aug 18 12:19:37 CEST 2017 activelog/platform/drf/log/2017-08-18-12-17-19_b_cucm160_ucm_ccmdb.log
UCM CUCM160 TFTP SUCCESS Fri Aug 18 12:20:15 CEST 2017 activelog/platform/drf/log/2017-08-18-12-17-19_b_cucm160_ucm_tftp.log
UCM CUCM160 ANN SUCCESS Fri Aug 18 12:21:33 CEST 2017 activelog/platform/drf/log/2017-08-18-12-17-19_b_cucm160_ucm_ann.log
UCM CUCM160 MOH SUCCESS Fri Aug 18 12:21:34 CEST 2017 activelog/platform/drf/log/2017-08-18-12-17-19_b_cucm160_ucm_moh.log
還原過程
- 檢查遠端sftp伺服器上存在的備份檔案。
語法:
utils disaster_recovery show_backupfiles <備份裝置名稱>
範例:
admin:utils disaster_recovery show_backupfiles linux123
2017-08-18-14-45-38
2017-08-18-12-17-19
2.從備份還原系統
從先前的輸出中選擇一個備份檔案。
語法:
utils disaster_recovery restore network <ip-address of remote server> <tarfilename> <backup device name>
範例:
admin:utils disaster_recovery restore network 10.48.53.160 2017-08-18-14-45-38 linux123
drfCliMsg: WARNING! There are nodes in current production cluster but NOT present in the backup. These nodes will be removed if you restore the Publisher. If you want to keep these nodes, you will need to manually re-add them after the restore.
Do you want DRS to perform a SHA-1 File Integrity Check of your backup archives y/n ?(n) : y
Please enter the comma seperated features you wish to restore. Valid features for server CUCM160 are PLM,CDR_CAR,UCM:PLM,CDR_CAR,UCM
Do you want to restore database from the subscriber y/n ?(n) : n
drfCliMsg: Restore initiated successfully. Please run 'utils disaster_recovery status restore' command to see the status
ALERT: Please restart the server(s) before performing the next restore for changes to take effect. In case of a cluster, restart the entire cluster.
<p style="background-image: url('http://www.cisco.com/en/US/i/templates/note.gif'); background-repeat: no-repeat; background- position: 2px 4px;
height: auto; width: auto; padding: 10px 5px 10px 35px; margin-top: 10px; margin-bottom: 10px; border-top: 1px solid #ccc; border-bottom: 1px
solid #ccc; overflow-x: hidden;"><strong>Note</strong>: {If you are restoring the system to be in FIPS mode, please note that it will be enabled during this restore, but will not take effect until the next reboot..}</p>
- 檢查還原狀態
還原過程可能需要一些時間,這取決於資料庫大小。
語法:
utils disaster_recovery status restore
範例:
admin:utils disaster_recovery status restore
Status: SUCCESS :Restore Completed...
Tar Filename: 2017-08-18-14-45-38.tar
Storage Location: NETWORK
Operation: restore
Percentage Complete: 100
CDR_CAR CUCM160 CAR SUCCESS Fri Aug 18 15:20:15 CEST 2017 activelog/platform/drf/log/2017-08-18-15-20-01_r_cucm160_cdr_car_car.log
PLM CUCM160 ELM-AGENT SUCCESS Fri Aug 18 15:24:34 CEST 2017 activelog/platform/drf/log/2017-08-18-15-20-01_r_cucm160_plm_elm-agent.log
PLM CUCM160 ELM-SERVER SUCCESS Fri Aug 18 15:24:34 CEST 2017 activelog/platform/drf/log/2017-08-18-15-20-01_r_cucm160_plm_elm-server.log
UCM CUCM160 BAT SUCCESS Fri Aug 18 15:27:06 CEST 2017 activelog/platform/drf/log/2017-08-18-15-20-01_r_cucm160_ucm_bat.log
UCM CUCM160 CCMPREFS SUCCESS Fri Aug 18 15:27:06 CEST 2017 activelog/platform/drf/log/2017-08-18-15-20-01_r_cucm160_ucm_ccmprefs.log
UCM CUCM160 PLATFORM SUCCESS Fri Aug 18 15:27:13 CEST 2017 activelog/platform/drf/log/2017-08-18-15-20-01_r_cucm160_ucm_platform.log
UCM CUCM160 TCT SUCCESS Fri Aug 18 15:32:15 CEST 2017 activelog/platform/drf/log/2017-08-18-15-20-01_r_cucm160_ucm_tct.log
UCM CUCM160 SYSLOGAGT SUCCESS Fri Aug 18 15:34:39 CEST 2017 activelog/platform/drf/log/2017-08-18-15-20-01_r_cucm160_ucm_syslogagt.log
UCM CUCM160 CDPAGT SUCCESS Fri Aug 18 15:34:39 CEST 2017 activelog/platform/drf/log/2017-08-18-15-20-01_r_cucm160_ucm_cdpagt.log
UCM CUCM160 CLM SUCCESS Fri Aug 18 15:37:03 CEST 2017 activelog/platform/drf/log/2017-08-18-15-20-01_r_cucm160_ucm_clm.log
UCM CUCM160 CCMDB SUCCESS Fri Aug 18 15:37:05 CEST 2017 activelog/platform/drf/log/2017-08-18-15-20-01_r_cucm160_ucm_ccmdb.log
UCM CUCM160 TFTP SUCCESS Fri Aug 18 15:45:12 CEST 2017 activelog/platform/drf/log/2017-08-18-15-20-01_r_cucm160_ucm_tftp.log
UCM CUCM160 ANN SUCCESS Fri Aug 18 15:46:38 CEST 2017 activelog/platform/drf/log/2017-08-18-15-20-01_r_cucm160_ucm_ann.log
UCM CUCM160 MOH SUCCESS Fri Aug 18 15:46:39 CEST 2017 activelog/platform/drf/log/2017-08-18-15-20-01_r_cucm160_ucm_moh.log
相關文章
思科統一通訊解決方案命令列介面參考指南
Cisco Unified Communications Manager和IM & Presence服務的災難恢復系統管理指南