Template - bulkCreateLocalParameterInstances
Template - bulkCreateLocalParameterInstances
Description :
This command lets you create a number of property class instances and fill in property values for each instance, using a CSV file.
Each row in the CSV file has the following form : ClassInstanceName, PropertyName, valueAsString. For each row, the command creates (if necessary) a local property class instance and overrides the appropriate property value.
Note that if you run this command to create a property class instance with a certain set of values, and then run this command again with a second set of values for the same property class instance, the command overwrites the first set of values with the second set of values.
Return type : com.bladelogic.om.infra.model.template.Template
Command Input :
Variable Name |
Variable Type |
Description |
---|---|---|
templateName |
String |
Name of the template. |
groupName |
String |
Name of the template group. |
localFileDir |
String |
Directory containing the CSV bulk set file. |
localFileName |
String |
Name of the CSV bulk set file. |
Example
The following example has a file defined in /home/foo_user called bulkSet.csv. This file contains a set of property values to set for various class instances. These instances are associated with a template called Apache, which is in the template group /Applications/WebServers/Unix.
Script
Template bulkCreateLocalParameterInstances Apache /Applications/WebServers/Unix /home/foo_user bulkSet.csv
Comments
Log in or register to comment.