Server - addServerIfIPUnique

Server - addServerIfIPUnique

Description :

This command adds a server if that server's name and IP address are unique, meaning that no server currently exists with that name or IP address. If you do not specify the IP address, this command tries to resolve the address via DNS. If it cannot resolve the address, it does not add the server. Returns true if the server was added, false otherwise.

Return type : Boolean

Command Input :

Variable Name

Variable Type

Description

serverName

String

Name of the server.

ipAddress

String

IP address of the server. If you do not specify this value (leave this argument blank), this command tries to resolve the address via DNS.

shouldUpdateIntrinsicProperties

Boolean

Indicates whether or not you want the add process to contact the agent on each server and attempt to retrieve each server's intrinsic properties (true/false).

Example

The following example shows how to add a server with the IP address of 192.168.0.0.

Script





Server addServerIfIPUnique Server_1 192.168.0.0 false 



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

Comments