Information

This site will undergo a brief period of maintenance on Thursday, 23 April at 2:30 AM Central/1:00 PM IST. During a 30 minute window, site availability may be intermittent.

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 - getPmDeviceKeyByServerId


ProvisionDevice - getPmDeviceKeyByServerId

Description :

This command returns a device ID based on a server ID. This command returns the same result as getPmDeviceIdByServerId.

For an alias of this command, see ProvisionDevice : getPmDeviceIdByServerId .

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 getPmDeviceKeyByServerId $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.5