Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

perform() - Start administrative actions

Function:

BcAdminCommunicationService.perform()

Starts the specified action for the communication server.

Parameters:

bc_object (BcObject of type BcObjectType.COMMUNICATION_SERVICE)

Communication service for which the action is to be started.

action (String)

Action that is to be started for the specified communication service. Possible values are (see BcDef.ACTION_xxx in the MC-CLI-JavaDoc)

check-adm

Checks the administrability of the communication service.

check-avail

Checks the availability of the communication service

save

Saves the changes that have been made for this communication service in the current session.

start

Starts the communication service.

stop

Stops the communication service.

Return:

(BcObject of type BcObjectType.ACTION):
Contains all information about the started action and all its subactions. To obtain more detailed information, you can call a function of the BcAdminAction module with this object as parameter.

Exceptions:

BcObjectException, BcParameterException, BcToolException

Example:

...
import BcAdminCommunicationSecvice
...
getProps={"host": "bchost01", "install-path": "/opt/ibm/sna/bin"} 
cs_obj=BcAdminCommunicationService.getObject(getProps) 
actResult=BcAdminCommunicationService.perform(cs_obj, "check-avail") 
if BcAdminAction.isFinishedSuccessfully(actResult):
  resultString=BcAdminAction.getResults(actResult)[0]["result"]
  print "communication service is " +resultString
...