Whenever you need to exchange “payload” (that is, content) from one HP Server Automation core to another (lets say, from dev into testing, and testing into prod), HPSA includes a very handy utility to export and import. CBT or also known as DET (DCML Exchange Utility) is found in your HP Server Automation DVD.

In this blog, we will cover how to export a sample content out of HPSA so that it can be imported into another. A great reference to this utility is the SA Content Utilities Guide found with every installation DVD Media.  There is a plethora of options that can be used.

The content to be exported is displayed below in the HPSA Java GUI. It contains Software Policies, Scripts, and ZIP Packages (Sample HP OML Agent):

Configure the RDF filter

It is important to first define an RDF Filter from which the CBT utility can derive the content which should be exported. The sample RDF Filter below is used to export all items within a specific folder, without recursion:

<FolderFilter rdf:ID=”f1″>
<path>/EDC/Customers/GREENBOX/Operations Manager for Linux/9.01/Software</path>
<recursive rdf:resource=”&filter;No” />

Execute CBT Utility

Once your RDF filter is defined, you need to run the CBT command referencing:

  1. Package directory where you wish the contents to be stored on the local file system
  2. Arbitrary CBT flags (for example –clean identifies to empty the package directory before saving in it)
  3. Filter RDF file location
  4. Your CBT Core properties file (where credentials and how to access your core is stored)

The following command then exports the content bound by the RDF filter (note you must define JAVA_HOME environment path):

/opt/opsware/cbt/bin/cbt -e /opt/packages/GREENBOX-OML-LINUX-CLIENT –clean -f /opt/GREENBOX/filters/GREENBOX-OML-LINUX-CLIENT.rdf -cf /opt/dev_core.properties

Personally, I like placing such commands into a bash script so that I can re-use it many times versus remembering every flag/option every time I need to do a CBT.

Once executed, you will be presented with a summary result of what was exported, like this:

(100%) Export completed!  Elapsed Time: 22 seconds.
Saving export data, please wait …done.
The following objects were exported:
Customer: Customer Independent
Customer: Software Repository  Folder: /EDC/Customers/GREENBOX/Operations Manager for Linux/9.01/Software
Script: HP Operations Manager for Linux – OVO Agent One 8.60.501 for Linux Client
Script: HP Operations Manager for Linux- Install Operations Manager Agent for Linux Client
Software Policy: HP Operations Manager for Linux – OneAgent for Linux Client
Software Policy: HP Operations Manager for Linux – Operations Manager Agent for Linux Client
ZIP Archive: OneAgent_Linux-8.60.501.zip
ZIP Archive: linux_x64_ovopa.zip

Your payload will be stored in the package directory specified at cbt execution. In my example above, it would be /opt/GREENBOX/packages/GREENBOX-OML-LINUX-CLIENT.

You can then tar/gzip the package directory for distribution/import onto another core. We’ll cover on another blog how to Import CBT content into HPSA.


About the author:

Vinnie Lima

Vinnie Lima is the Managing Director for VVL Systems & Consulting, a small business focusing on IT Optimization for Cloud, Infrastructure, and End Users. Based out of Baltimore, Maryland, Vinnie Lima has over 21 years in IT Automation, Orchestration, and Cloud. Mr. Lima’s career has been focusing on helping customers drive value from their IT investments through the use of leading edge technologies and approaches, driving innovation in a wide spectrum of industries such as DoD, Federal, Health Care, and Financial.

facebook twitter linkedin instagram

Leave A Reply

ERROR: si-captcha.php plugin: GD image support not detected in PHP!

Contact your web host and ask them to enable GD image support for PHP.

ERROR: si-captcha.php plugin: imagepng function not detected in PHP!

Contact your web host and ask them to enable imagepng for PHP.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe to our Newsletter
Stay informed with the latest technology news, industry events, and training offered by VVL Systems for free! Fill out this form and receive our newsletter delivered straight to your inbox.

See how VVL has helped clients leverage the latest technologies and agile capabilities.

Latest VVL and Industry News

SolarWinds Breach Response

Information & Resources regarding SolarWinds Orion Incident As many are aware, SolarWinds Orion products experienced a security incident that has…

What is a Zero Trust Maturity Model?

In this article, we'll review the recent materials, standards, and guidance principles related to Zero Trust Framework with the hope…

Upcoming VVL and Industry Events