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.

Server - bulkAddServersWithUniqueIP


Server - bulkAddServersWithUniqueIP

Description :

This command is similar to the bulkAddServers command, except that it ensures that the servers being added are unique in IP address, not just in server name. If the IP address of a given server is not specified in the import server CSV file, this command tries to resolve it via DNS. If the command cannot resolve the address, it does not add the server.

As input, the command requires the name of a local file. The file should be in CSV format with the following rules:

  • The first row in the file is treated as the header row.
  • The first column in the header row must be 'Name'. All other columns are treated as property names.
  • The data in the first column can be server names or IP addresses.
     Returns the number of servers that were added.

    Return type : Integer

Command Input :

Variable Name

Variable Type

Description

fileDir

String

Directory containing the CSV file.

fileName

String

Local CSV file that contains the servers to add.

charset

String

The character set used in the CSV file. Can be UTF-8 or another supported character set. For a full list of available character sets, see the list that is included in the description of the bulkAddServers command.

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 the servers specified in a CSV file.

Script





Server bulkAddServersWithUniqueIP /tmp servers.csv UTF-8 false



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*