文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Export and import package with cbt

Export and import package with cbt

时间:2010-07-19  来源:robinkev

1. Login the servers and locate the cbt install media(/primary/packages/cbt-34c_0_0_19.zip). 2. Unzip the install media and it will install the cbt. 3. Install /primary/packages/Linux/OPSWj2sdk14-34c.0.0.0.1-1.i386.rpm package. 4. export $JAVA_HOME=xxx 5. export PATH=$PATH:/<cbt-install_dir>/bin 6. run "cbt -v"    This will display the cbt version number. 7. In my example I took folder.rdf filter and I created another filter for WSRM that I wanted to backup or create copies for further imports. 8. cat directory.rdf

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rdf:RDF [
  <!ENTITY filter "http://www.opsware.com/ns/cbt/0.1/filter#">
]>

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns="http://www.opsware.com/ns/cbt/0.1/filter#">

<FolderFilter rdf:ID="f5">
  <path>/AIS/Windows_System_Resource_Manager</path>
  <recursive rdf:resource="&filter;Yes" />
</FolderFilter>

</rdf:RDF>


9. Export WSRM directory.

[root@gradial5 filters]# cbt -c -d -e /var/opt/opsware/cbtexports/WSRM -f home.r df


A password for twist.username detuser has not been specified
Enter password for detuser: **************

A password for spike.username admin has not been specified
Enter password for admin: **************
(100%) Export Elapsed Time: 1 minute 14 seconds. ...
Saving export data, please wait ...
done.

The following objects were exported:
  Customer: Customer Independent
  Customer: Software Repository
  Folder: /AIS/Windows_System_Resource_Manager
  Folder: /AIS/Windows_System_Resource_Manager/WSRM-Windows 2008
  Folder: /AIS/Windows_System_Resource_Manager/WSRM-Windwos 2003
  Folder: /AIS/Windows_System_Resource_Manager/WSRM-Windwos 2003/WSRM-X64
  Folder: /AIS/Windows_System_Resource_Manager/WSRM-Windwos 2003/WSRM-X86
  Script: WSRM installation on Windows 2008
  Software Policy: WSRM installation
  Software Policy: WSRM installation on Widnows 2008
  Software Policy: Windows_System_Resource_Manager-X64
  Software Policy: Windows_System_Resource_Manager-X86
  Windows MSI: Windows_System_Resource_Manager-SP1-X64
  Windows MSI: Windows_System_Resource_Manager-SP1-X86
  Windows MSI: Windows_System_Resource_Manager-SP1-ism-X64
  Windows MSI: Windows_System_Resource_Manager-SP1-ism-X86
  Windows MSI: ismruntime-msi-3.6.0
  ZIP Archive: WSRM install on windows 2008.zip

10. Tar the export package.

[root@gradial5 cbtexports]# tar cvf WSRM.tar WSRM/
WSRM/
WSRM/var/
WSRM/var/cbtdiff0.log
WSRM/var/cbtexport0.log.lck
WSRM/var/cbtdiff0.log.lck
WSRM/var/cbtexport0.log
WSRM/data.rdf
WSRM/filter.rdf
WSRM/blob/
WSRM/blob/unitid_17780001.pkg
WSRM/blob/unitid_17770001.pkg
WSRM/blob/unitid_18130001.pkg
WSRM/blob/newScript_310001
WSRM/blob/unitid_17610001.pkg
WSRM/blob/unitid_17630001.pkg
WSRM/blob/unitid_17620001.pkg
WSRM/blob/unitid_17760001.pkg
[root@gradial5 cbtexports]# ls
WSRM WSRM.tar

12. Copy this tar package to another server and we will import this package to anther core server.

13. Import the package.

[root@GRADIAL1 bin]# ./cbt -i /var/opt/opsware/cbtexports/WSRM/
A password for twist.username detuser has not been specified
Enter password for detuser: **************

A password for spike.username admin has not been specified
Enter password for admin: **************
(100%) Import Elapsed Time: 3 minutes 14 seconds. ...
The following objects were imported:
  Customer: Customer Independent (overwrite)
  Customer: Software Repository (overwrite)
  Folder: /AIS/Windows_System_Resource_Manager (create)
  Folder: /AIS/Windows_System_Resource_Manager/WSRM-Windows 2008 (create)
  Folder: /AIS/Windows_System_Resource_Manager/WSRM-Windwos 2003 (create)
  Folder: /AIS/Windows_System_Resource_Manager/WSRM-Windwos 2003/WSRM-X64 (creat e)
  Folder: /AIS/Windows_System_Resource_Manager/WSRM-Windwos 2003/WSRM-X86 (creat e)
  Script: WSRM installation on Windows 2008 (create)
  Software Policy: WSRM installation (create)
  Software Policy: WSRM installation on Widnows 2008 (create)
  Software Policy: Windows_System_Resource_Manager-X64 (create)
  Software Policy: Windows_System_Resource_Manager-X86 (create)
  Windows MSI: Windows_System_Resource_Manager-SP1-X64 (create)
  Windows MSI: Windows_System_Resource_Manager-SP1-X86 (create)
  Windows MSI: Windows_System_Resource_Manager-SP1-ism-X64 (create)
  Windows MSI: Windows_System_Resource_Manager-SP1-ism-X86 (create)
  Windows MSI: ismruntime-msi-3.6.0 (create)
  ZIP Archive: WSRM install on windows 2008.zip (create)

No objects were deleted.


相关阅读 更多 +
排行榜 更多 +
胜利女神新的希望小米服手游下载

胜利女神新的希望小米服手游下载

角色扮演 下载
我要当老板伐木工厂游戏下载

我要当老板伐木工厂游戏下载

模拟经营 下载
涡轮螺旋桨最新版下载

涡轮螺旋桨最新版下载

模拟经营 下载