Configuring the eZDeploy utility
This topic describes how to configure the eZDeploy utility.
This topic covers the following:
Before you begin
Before you configure the eZDeploy utility, ensure that all of the following conditions are met:
- Install Java Runtime Environment (JRE) 1.6 or later on the machine on which you will run the eZDeploy utility.
- Set JAVA_HOME.
For Windows, go to Advanced System Settings > Environment Variables; then click New System Variables and add JAVA_HOME as the variable name and <JRE Path> as the value.
For Linux, export JAVA_HOME=<JRE Path>. - Download and install the BMC Server Automation console on the machine on which you will run the eZDeploy utility.
- Ensure that the version of the BMC Server Automation console matches the version of the target BMC Server Automation Server from the BMC Coud Lifecycle Management setup. Also ensure that Network Shell (NSH) is installed along with the BMC Server Automation console.
- Ensure that the BMC Server Automation user assigned the Bladelogic Administrator role is used to create the eZDeploy authentication profile in BMC Server Automation.
Ensure that you have NSHDIR set in the environment variables.
Windows
Linux
Open Advanced Properties; then, from the Environment Variables section, create a new environment variable with the following specifications:
Name: NSHDIRValue: C:\Program Files\BMC Software\BladeLogic\NSH
$ export NSHDIR = /opt/bmc/BladeLogic/NSH
Check the following file: /usr/lib/rsc/HOME
The contents of this file should also match the NSH install directory; for example:
C:\Windows\rsc>more HOME
/cygdrive/C/Program Files/BMC BladeLogic/OM/NSHCheck the following file:
/usr/lib/rsc/HOME[root rsc]# pwd
/usr/lib/rsc
[root rsc]# more HOME
/usr/nsh/NSH
Creating an eZDeploy profile
You must create an eZDeploy profile before you start using the import and export functionality of the eZDeploy utility. You can create a profile using the profile command on the command-line interface (CLI). Before you create eZDeploy profiles, the CLI requires the Enterprise AR server details. It automatically gets the BMC Cloud Lifecycle Management Platform Manager details, the associated BMC Server Automation details, and the BMC Atrium Orchestrator details from the BMC Cloud Lifecycle Management configuration files.
To create an eZDeploy profile, perform the following steps:
Run the following command:
eZDeploy> profile add -name <PROFILE_NAME> -host <AR_HOST/IP> -port <AR_PORT> -user <AR_USER>
The following table lists the inputs that you must provide to run the command:
Field name
Input
Name
eZDeploy profile name
Host
BMC Cloud Lifecycle Management Enterprise AR host name or IP address
User
BMC Cloud Lifecycle Management Enterprise AR Admin username
Note: Ensure that the BMC AR System server user has the Administrator and Cloud Administrator privileges.
Port
BMC Cloud Lifecycle Management Enterprise AR port
Password
(Optional) BMC Cloud Lifecycle Management Enterprise AR Admin password
- Press Enter.
The eZDeploy profile is created and eZDeploy stores the BMC Server Automation Server and Atrium Orchestrator Server details. - Verify that the eZDeploy profile is created correctly:
- Use the profile list command to view the profile details. See To view eZDeploy profiles for details.
- Navigate to your eZDeploy environment's BMC Server Automation console and ensure that the prefix "eZProfile-" is appended with the BMC Server Automation Server Name in the newly created BMC Server Automation Authentication Profile.
If you cannot view the profile, relaunch the BMC Server Automation console.
Accepting the BSA Authentication Service X509 certificate
You must accept the BMC Server Automation Authentication Service X509 certificate by using one of the following methods:
- Log in with the new BMC Server Automation authentication profile that is created and accept the certificate.
- If you are running eZDeploy on a Linux system and you do not have a user interface for the BMC Server Automation console, run the following command and press Enter:
Viewing eZDeploy profiles
To view the list of eZDeploy profiles that you created, run the following command:
eZDeploy> profile list and press Enter.
A list of profiles is displayed.
Deleting an eZDeploy profile
To delete a particular eZDeploy profile, run the following command:
eZDeploy> profile delete -name <Profile Name> and press Enter.
The profile is deleted.
For example: eZDeploy> profile delete -name Source
Where to go from here