Template - createLocalServerConfigDef


Template - createLocalServerConfigDef

Description :

This command creates a new server configuration definition object in the template.

The server configuration definition is associated with a specific path, operating system, and grammar file.

Use the following strings (NSH names) to specify various operating systems:

  • WindowsNT = All Windows operating systems
  • SunOS = All Solaris operating systems
  • AIX = All AIX operating systems
  • HP-UX = All HP-UX operating systems
  • Linux = All Linux variants including ESX (VMware)

Return type : com.bladelogic.om.infra.model.template.Template

Command Input :

Variable Name

Variable Type

Description

templateKey

DBKey

Template Key.

configFileNameAndPath

String

Path of the server configuration definition.

grammarFileName

String

Name of the associated grammar file.

osName

String

NSH name of the associated operating system.

Example

The following example shows how to add a local configuration file into the template.

Script

blcli_execute Template getDBKeyByGroupAndName "ComponentTemplateGroup" "MyCompTemplate"

blcli_storeenv COMP_TEMPL_KEY

blcli_execute Template createLocalServerConfigDef $COMP_TEMPL_KEY "/etc/hosts" "auto.gm" Linux

 

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