Template - addPartToSignatureByTypeString

Template - addPartToSignatureByTypeString

Description :

This command adds a part to a template signature and indicates whether the part must exist or must not exist.

You must set part to one of the following strings:

  • FILE
  • DIRECTORY
  • REGISTRY_KEY
  • REGISTRY_VALUE
  • METABASE_KEY
  • METABASE_VALUE
  • COMPLUS_OBJECT
  • COMPLUS_PROP
  • COMPLUS_SUBCAT
  • SYSTEM_INFO
  • SYSTEM_INFO_PATH
  • SYSTEM_INFO_PROPERTY
  • GPO_CATEGORY
  • GPO_SETTING
  • SERVER_CONFIGURATION
  • SERVER_CONFIG_FILE
  • SERVER_CONFIG_ENTRY
  • EXTENDED_OBJECT
  • EXTENDED_OBJECT_ENTRY
  • SERVICE_INSTANCE
  • DOTNET_ASM_CACHE_ENTRY
  • EVENT_LOG_INSTANCE
  • WIN_GROUPS
  • WIN_USERS
  • AIX_PACKAGE_INSTANCE
  • AIX_PATCH_INSTANCE
  • HP_BUNDLE_INSTANCE
  • HP_PATCH_INSTANCE
  • HP_PRODUCT_INSTANCE
  • RPM_INSTANCE
  • SOLARIS_PACKAGE_INSTANCE
  • SOLARIS_PATCH_INSTANCE
  • SOLARIS_PATCH_CLUSTER_INSTANCE
  • WINDOWS_APPLICATION_INSTANCE
  • HOTFIX_INSTANCE
    Returns the DBKey of the modified template.

    Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

groupName

String

Name of the template group.

templateName

String

Name of the template.

partType

String

The part you are adding. This variable must be one of the parts shown in the list above.

partEscapedPath

String

NSH-style path to the part.

mustExist

Boolean

Set this variable to true if the part must exist. Set this variable to false if the part must not exist.

Example

The following example adds a FILE part to a template signature. The FILE part has its condition set to the file must not exist.

Script





Template addPartToSignatureByTypeString /tstTemplateGroup tstTemplate FILE /tmp/empty.xml false 



Was this page helpful? Yes No Submitting... Thank you

Comments