JobRun - getServersStatusByJobRun


JobRun - getServersStatusByJobRun

Description :

This command gets the Server DBKey and its Status for the servers of the specified Job Run. This command returns a map of server DBKey and its status in the following format: {Server DBKey=Status, Server DBKey=Status, ...}. Statuses are: SUCESS = 0, WARNING = 1, ERROR = 2, NOT_RUN = 3

Return type : java.util.Map

Command Input :

Variable Name

Variable Type

Description

jobRunId

Integer

Job Run Id Number.

Example

The following example shows how to get the statuses of all servers for a specified job run id.

Script

blcli AgentInstallerJob getDBKeyByGroupAndName /AIJ_Fresh AIJ_Fresh
Sample output - DBKey:SJobModelKeyImpl:705-1-2036508

blcli JobRun findLastRunKeyByJobKey DBKey:SJobModelKeyImpl:705-1-2036508
Sample output - DBKey:SJobRunModelKeyImpl:623-2036509

blcli JobRun jobRunKeyToJobRunId DBKey:SJobRunModelKeyImpl:623-2036509
Sample output - 623

blcli JobRun getServersStatusByJobRun 623
Sample output - {DBKey:SDeviceKeyImpl:2=0, DBKey:SDeviceKeyImpl:3=0, DBKey:SDeviceKeyImpl:4=0, D
BKey:SDeviceKeyImpl:5=0, DBKey:SDeviceKeyImpl:6=0, DBKey:SDeviceKeyImpl:7=0, DBK
ey:SDeviceKeyImpl:8=0, DBKey:SDeviceKeyImpl:9=0, DBKey:SDeviceKeyImpl:10=0, DBKe
y:SDeviceKeyImpl:11=0, DBKey:SDeviceKeyImpl:12=1, DBKey:SDeviceKeyImpl:13=0}

 

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

TrueSight Server Automation Command Line Interface 20.02