Server - bulkSetServerPropertyValues
Server - bulkSetServerPropertyValues
Description :
This command sets property values for one or more servers.
As input, the command requires the name of a local file.The file should be in a CSV format with the following values:
server_name,property_name,property_value
Each line in the CSV file correlates to one property value being set on one server. Do not include a line of headers.
Sample CSV file:
host1,property1,5
host2,property2,string2
host3,Description,"This is a test description"
Note: If the csv contains a date type of property, it needs to be specified only in the following formats: yyyy-MM-dd HH:mm:ss or yyyy/MM/dd HH:mm:ss.
Do not include spaces between csv values. If the property value contains a space, enclose it in double quotes.
Returns a String containing comma separated list of names of the servers that were successfully updated.
Return type : String
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
fileDir | String | Directory containing the CSV file. |
fileName | String | Local file in CSV format containing property values. See above for a more complete description. |
Example
This example shows how to call the bulkSetServerPropertyValue command, passing in a local file.
Script