Setting up the integration between BMC Server Automation and BMC TrueSight Infrastructure Management
To integrate BMC Server Automation with Infrastructure Management, you must perform the following tasks:
- Install and license the BMC Server Automation RSCD Agent on the BMC TrueSight Infrastructure Management Server. (For instructions, see the BMC Server Automation documentation). This is required only for the pw blade create packages command. RSCD agent is required by BladeLogic even for job execution.
- To create a dedicated BMC Server Automation administrator user account for the BMC Server Automation Application Server
- To set up credentials with the UDDI registry on the BMC TrueSight Infrastructure Management Server for accessing BMC Server Automation from Infrastructure Management
- Restart the BladeLogic Application Server service.
- To test your credentials on the BMC TrueSight Infrastructure Management Server for accessing BMC Server Automation
To create a dedicated BMC Server Automation administrator user account for the BMC Server Automation Application Server
- Create a new user for the BMC Server Automation Application Server.
Assign that user to a single BLAdmins role. No other role must be assigned to this user.
To enable web services on the BMC Server Automation Application Server
- Log on to the BMC Server Automation Application Server by using the BLAdmins account.
- Start the BMC Server Automation Application Server Administration utility as appropriate for your operating system:
- For Windows, choose Start > Programs > BMC Software
> BMC BladeLogic Server Automation Suite > Utilities > Application Server Administration. - For UNIX, Access the /opt/bmc/bladelogic/NSH/br directory. From the command line, enter blasadmin.
- For Windows, choose Start > Programs > BMC Software
- From the Application Server Administration utility, run the following command:
set AppServer EnableTomcatService true - (Optional) To configure the registration of web services in the BMC Atrium UDDI Server, enter the following commands:
- set WebServices RegistryServer //registryServerHostName //
{{id name="SettinguptheintegrationbetweenBMCServerAutomationandBMCTrueSightInfrastructureManagement-p68"/}} - set WebServices RegistryServerPort registryServerPort
- set WebServices RegistryServerUserName registryServerUserName
- set WebServices RegistryServerPassword registryServerPassword
The default Registry Server port is 8080.
- set WebServices RegistryServer //registryServerHostName //
To set up credentials with the UDDI registry on the BMC TrueSight Infrastructure Management Server for accessing BMC Server Automation from Infrastructure Management
- Log on to the BMC TrueSight Infrastructure Management Server as administrator.
Access a command line and enter:
pw blade setup -use_uddi -uddiuser uddiUserName -uddipass uddiPassword -host hostName[-port portNumber] -user userName -pass password
pw blade setup with UDDI registry command option descriptionsOption
Description
-use_uddi
Specifies to use the UDDI registry to obtain BMC Server Automation web services host and port information
-uddiuser uddiUserName
User name to connect to UDDI server
-uddipass uddiPassword
Password to connect to UDDI server
-host hostName
Host name or IP address of the UDDI server
-port portNumber
Port number of the UDDI server
-user userName
User name to connect to the BMC Server Automation Application Server
Note: This must be the user account created for the BLAdmins role.-pass password
Password to connect to the BMC Server Automation Application Server
For example, pw blade setup -use_uddi -uddiuser udaman -uddipass uopensesame -host server.domain.com -port 8080 -user pronet -pass opensesame
If the connection is successful, a message Info: Connection to BladeLogic server succeeded. is displayed.- Follow the appropriate instructions based on the return code that you receive:
- If the command returns 0, the credentials were created successfully. You can now test your credentials on the BMC TrueSight Infrastructure Management Server for accessing BMC Server Automation.
- If the command returns 1, there is a syntax error. Reenter the pw blade setup command.
- If the command returns a number other than 0 or 1, an execution error has occurred. An error message is displayed indicating which error occurred.
To set up credentials without the UDDI registry on the BMC TrueSight Infrastructure Management Server for accessing BMC Server Automation from Infrastructure Management
- Log on to the BMC TrueSight Infrastructure Management Server as administrator.
Access a command line and enter:
pw blade setup -hosthostName [-portportNumber] -useruserName-passpassword
pw blade setup without UDDI registry command option descriptionsOption
Description
-host hostName
Host name or IP address of the application server hosting BMC Server Automation Web Services
-port portNumber
Port number of the BMC Server Automation Web Services
-user userName
User name to connect to the BMC Server Automation Application Server
Note: This must be the user account created for the BLAdmins role.-pass password
Password to connect to the BMC Server Automation Application Server
For example, pw blade setup -host server.domain.com -port 9843 -user pronet -pass opensesame
If the connection is successful, a message Info: Connection to BladeLogic server succeeded is displayed.- Follow the appropriate instructions based on the return code that you receive:
- If the command returns 0, the credentials were created successfully. You can now test your credentials on the BMC TrueSight Infrastructure Management Server for accessing BMC Server Automation.
- If the command returns 1, there is a syntax error. Re-enter the pw blade setup connection command correctly.
- If the command returns a number other than 0 or 1, an execution error has occurred. An error message is displayed indicating which error occurred.
To test your credentials on the BMC TrueSight Infrastructure Management Server for accessing BMC Server Automation
- Log on to the BMC TrueSight Infrastructure Management Server as administrator.
Access a command line and enter the pw blade test command.
If the connection is successful, a message Info: Connection to BladeLogic server succeeded. is displayed.
If the connection is unsuccessful, a message Error: BladeLogic connection information has not been setup. is displayed.- Follow the appropriate instructions based on the return code that you receive:
- If the command returns 0, then the credentials that you set up are working correctly. If desired, you can now To create packages to deploy local agents from the BMC TrueSight Infrastructure Management Server to BMC Server Automation managed systems.
- If the command returns 1, there is a syntax error. Reenter the pw blade test connection command.
- If the command returns a number other than 0 or 1, an execution error has occurred. An error message is displayed indicating which error occurred. Depending on the error message displayed, you may need to clear the connection to BMC Server Automation that you created on the BMC TrueSight Infrastructure Management Server and set up credentials with the UDDI registry on the BMC TrueSight Infrastructure Management Server for accessing BMC Server Automation from Infrastructure Management again.
To clear the connection to BMC Server Automation that you created on the BMC TrueSight Infrastructure Management Server
- Log on to the BMC TrueSight Infrastructure Management Server as administrator.
- Access a command line and enter: pw blade clear connection Unknown macro: confluence_id. Click on this message for details.
If the connection is successful, a message {{code language="none"}}
Info: Clearing of BMC BladeLogic connection information succeeded.
{{/code}} is displayed. If the connection is unsuccessful, a message {{code language="none"}}
Warning: BladeLogic connection information has not been setup. Warning: Clearing of BladeLogic connection information failed.
{{/code}} is displayed. - Follow the appropriate instructions based on the return code that you receive:
- If the command returns 0, the credentials that you set up are no longer available. If desired, you can set up credentials with the UDDI registry on the BMC TrueSight Infrastructure Management Server for accessing BMC Server Automation from Infrastructure Management from a different user.
- If the command returns 1, there is a syntax error. Reenter the pw blade clear connection command.
- If the command returns a number other than 0 or 1, an execution error has occurred. An error message is displayed indicating which error occurred.