Server - addServer

Server - addServer

Description :

This command adds a server to the pool of servers managed by BMC BladeLogic. This command does not add the server to any specific role or group.

The name of the server should be a name recognized by an available DNS service. The name can be a short name, a fully qualified name, or even an IP address of the server.

The name that this command specifies will be the name by which the server is stored and referenced within the BMC BladeLogic framework. This command returns the ID of the newly added server.

Return type : Integer

Command Input :

Variable Name

Variable Type

Description

serverName

String

Name of the server.

Example

The following example shows how to add servers from a file containing a list of hostnames:

Script





SERVER_LIST=`cat servers.txt` 

for serverName in $SERVER_LIST 

do 

RESULT=`blcli Server addServer $serverName` 

done 



Was this page helpful? Yes No Submitting... Thank you

Comments