Server - getServerDBKeyByName
Server - getServerDBKeyByName
Description :
This command converts a server name to a handle. If no server exists by the name specified, the command fails. This command returns a handle to the server. You can use this handle as input to other commands that need a handle to the server.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
---|---|---|
serverName | String | Name of the server. |
Example
Server handles are used in other BLCLI commands. The following example shows how to find the handle for a given server name:
Script
# Get the DBKey of the server by server name
SERVER1_NAME="server1"
SERVER1_DBKEY=`blcli Server getServerDBKeyByName $SERVER1_NAME`
Was this page helpful? Yes No
Submitting...
Thank you
Comments
Log in or register to comment.