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.

SnapshotJob - addNamedServerToJobByJobDBKey


SnapshotJob - addNamedServerToJobByJobDBKey

Description :

This command adds a server to an existing Snapshot Job. You can also perform the same action with Job addTargetServer .

The snapshotKey argument provides a DBKey referring to the snapshot to be modified. The serverName argument identifies the target server to be added.

This command returns a handle to the updated Snapshot Job. Note that this handle is different than any existing handle to this Snapshot Job. All older handles are invalid.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

snapshotKey

DBKey

Handle to the Snapshot Job.

serverName

String

Name of the server to be added.

Example

The following example shows how to add a specified server to an existing Snapshot Job.

Script

SNAP_KEY=`blcli SnapshotJob getDBKeyByGroupAndName "/Job_Group" "snapJobName"`

SERVER_ADD_SNAPJOB=`blcli SnapshotJob addNamedServerToJobByJobDBKey $SNAP_KEY "Server_Name"`

 

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

BMC Server Automation Command Line Interface 8.5