Template - createDirectoryTemplate
Template - createDirectoryTemplate
Description :
This command creates a template with one directory asset.
The path to the directory should be the full path in NSH format. This command returns a handle to the newly created template. The handle can be used for other commands that need a reference to the new template.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
---|---|---|
templateName | String | Template name. |
groupId | Integer | Handle to the group that should contain the template. |
bExplicit | Boolean | True to create an explicit template, false to create an implicit template. (An implicit template is one that does not appear in the GUI.) |
assetPath | String | NSH-style path to the asset. |
bIncludeLightChecksum | Boolean | True to perform light checksum, false not to perform light checksum. |
bIncludeChecksum | Boolean | True to perform full checksum, false not to perform full checksum. |
bIncludeFileAcls | Boolean | True to collect file ACLs, false otherwise. |
bRecurse | Boolean | True to collect files in subdirectories, false otherwise. |
bCopyFiles | Boolean | True to copy the files into the BMC BladeLogic database, false otherwise. |
bAuditFileSize | Boolean | True to compare file size in an audit, false otherwise. |
bAuditFileCreatedDate | Boolean | True to compare file creation date in an audit, false otherwise. (Windows only) |
bAuditFileModifiedDate | Boolean | True to compare file modification date in an audit, false otherwise. |
bAuditFilePermissions | Boolean | True to compare file permissions in an audit, false otherwise. (UNIX only) |
bAuditFileUidGid | Boolean | True to compare file UID/GID in an audit, false otherwise. (UNIX only) |
Example
The example for createRegistryKeyTemplate shows how to create a template for an asset similar to this one.