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:

BcAdminLu62Gateway.perform()

Starts the specified action for the openUTM-LU62 Gateway.

Parameters:

bc_object (BcObject of type BcObjectType.LU62GATEWAY)

openUTM-LU62 Gateway for which the action is to be started.

action (String)

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

check-adm

Checks the administrability of the openUTM-LU62 Gateway.

check-avail

Checks the availability of the openUTM-LU62 Gateway.

save

Saves the changes that have been made for this openUTM-LU62
Gateway in the current session.

start

Starts the openUTM-LU62 Gateway.

stop

Stops the openUTM-LU62 Gateway.

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 BcAdminLu62Gateway
...
getProps={"host": "bchost01", "install-path": "/opt/lib/utmlu62"} 
gw_obj=BcAdminLu62Gateway.getObject(getProps) 
actResult=BcAdminLu62Gateway.perform(gw_obj, "check-avail") 
if BcAdminAction.isFinishedSuccessfully(actResult):
  resultString=BcAdminAction.getResults(actResult)[0]["result"]
  print "communication service is " +resultString
...