Information
Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

ApplicationMiddleware - performAction


ApplicationMiddleware - performAction

Description :

This command performs an action on a target WebLogic or WebSphere application server.

For actionName, specify one of the following values:

  • testConnection - This action tests the connection between the BMC Server Automation system and the target WebLogic or WebSphere server.
  • takeSnapshot - This action updates the BMC Server Automation system with configuration data from the target WebLogic or WebSphere server.

For className, specify one of the following values:

  • Websphere_BLRoot - for use with WebSphere servers
  • Weblogic81_BLRoot - for use with WebLogic 8.1 servers
  • Weblogic_BLRoot - for use with all other versions of WebLogic servers

Return type : String

Command Input :

Variable Name

Variable Type

Description

serverName

String

Name of the AMO that is managing the target server.

actionName

String

Name of the action you want to take. See description above.

className

String

Name of the WebLogic or WebSphere class. See description above.

Examples :

Example

The following example shows you how to test a connection to a WebLogic Server.

Script





blcli ApplicationMiddleware performAction tlvd0411 testConnection Weblogic_BLRoot

# Success - sample return value upon success:

Application Server Connection Succeeded

Host: tlv-esx-0132

Port: 7001

User: weblogic

# Failure - sample return value upon failure:

Application Server Connection Failed

Host: tlv-esx-0132

Port: 7011

User: weblogic



Example

The following example shows you how to update the BMC Server Automation system with configuration data from a WebLogic Server.

Script





blcli ApplicationMiddleware performAction tlvd0411 takeSnapshot Weblogic_BLRoot

# Success - sample return value upon success:

'Refresh Provider Data' ended successfully

# Failure - sample return value upon failure:

'Refresh Provider Data' ended with errors: Error to take snapshot, Error: null

: on host WL 9.2 on TLV-ESX-0132 and proxy host localhost



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Server Automation Command Line Interface 8.3