The returns described under Return are only returned if the function was executed successfully.
The MC-CLI functions do not return a return code specifying whether the function was executed successfully. If a function cannot be executed then an exception from the package com.fujitsu.ts.jca.tools.mc.cli
is thrown (see
Exceptions ). Such exceptions can be caught in the script and processed appropriately.
Actions started using the function perform()
usually correspond to the actions that open an action dialog box in the graphical user interface. The action dialog box outputs a table with the description, status and results of all the subactions. In the MC-CLI, the function perform()
normally returns an object of class BcObject
with object type BcObjectType.ACTION
. The functions of the module BcAdminAction
can be used to extract this information from this object.