ProvisionDevice - getPmDeviceIdByServerId


ProvisionDevice - getPmDeviceIdByServerId

Description :

This command returns a device ID based on a server ID.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

serverId

Integer

The server ID of the machine whose device ID you want to get.

Example

This example shows how to get a server ID, then use that ID to get a device 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 device ID

DEVICE_ID=`blcli  ProvisionDevice getPmDeviceIdByServerId $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.7