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.

ProvisionDevice - getBatchJobRunKeyByServerId


ProvisionDevice - getBatchJobRunKeyByServerId

Description :

This command gets a Batch Job run ID of the Job that was run on the provisioned server as a Post Provisioning Batch Job.

Note: If a Batch Job has been run manually on a provisioned server, then the run ID of this Batch Job will not be listed as an output of this command.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

serverId

Integer

The server ID whose Batch Job run ID you want to get.

Example

This example shows how to get a server ID, then use that ID to get a batch job run ID.

Script

# Get the ID of the server by server name

SERVER1_NAME="server1"

SERVER1_ID=`blcli Server getServerIdByName $SERVER1_NAME`

# Use the server ID to get the Batch Job run ID

BATCH_JOB_RUNKEY=`blcli  ProvisionDevice getBatchJobRunKeyByServerId $SERVER1_ID`



 

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

BMC Server Automation Command Line Interface 8.3