Information

This site will undergo a brief period of maintenance on Thursday, 23 April at 2:30 AM Central/1:00 PM IST. During a 30 minute window, site availability may be intermittent.

Information
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 - 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

Server bulkSetServerPropertyValues /tmp set.csv

 

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

BMC Server Automation Command Line Interface 8.3