Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • TARGET node - each TARGET node specifies the path(s) to be configuredACTION

  • EXCLUDE node - defines one or more ACTION nodes to specify the actions paths that you want to exclude from the TARGET node actions

  • ACTION node - specifies the action to be taken on the files found under TARGET path(s)EXCLUDE node - defines paths that you want to exclude from the TARGET node actions

TARGET Node

The TARGET node uses three attributes to define the path or paths that are to be configured:

...

The entries attribute supports wildcard names, for example: "sql???.cfg", "HostInfo*", etc. The entries attribute must not be empty.

ACTION Node

You can add actions and command-line arguments to a container template file and Config-on the-fly file. An action can be, for example, running an application or opening a link.

...

EXCLUDE Node

The EXCLUDE node defines paths that you want to exclude from the TARGET node actions. You can use wildcards in this node.

The EXCLUDE XML tags are as follows:

Code Block
<EXCLUDE>
   <PATH>%SystemDrive%\Documents and Settings\*</PATH>
 <ACTION>
    <!--   <PATH>%SystemDrive%\Users\*</PATH>
   <PATH>*\SYSTEM\CurrentControlSet\Services\*</PATH>
</EXCLUDE>

Note that Homedrive, SystemDrive, or any other system variable, is resolved relative to the destination machine and not the source machine.

ACTION Node

Each TARGET node can have multiple ACTION nodes. There are three types of ACTION nodes:

Code Block
<ACTION type="replace">-->
    <!--<PATH> </PATH>-->
    <!--<ARGUMENTS> </ARGUMENTS>-->
    <!--</ACTION>-->
  </ACTION>
</VirtaMove>

The actions can be:

  • replace

  • execute


	<SEARCH case_sensitive="yes">old_data</SEARCH>
	<REPLACE>new_data</REPLACE>
</ACTION>

<ACTION type="execute">
	<PATH>C:\Program Files (x86)\Notepad++\notepad++.exe</PATH>
	<ARGUMENTS>%%TARGET%%</ARGUMENTS>
</ACTION>

<ACTION type="alert">
    <PATTERN>*.sys</PATTERN>
    <MESSAGE>.sys kernel file found in vaa</MESSAGE>
</ACTION>

For replace, the action searches and replaces tokens (as defined in the SEARCH and REPLACE nodes).

The execute type executes the executable defined in PATH with the arguments defined in ARGUMENTS for the entries matchedeach entry matched in this TARGET node. %%TARGET%% placeholder can be used in ARGUMENTS. It will be replaced with a matched entry/file.

The alert action presents a notification whenever a file matching the PATTERN is found inside an appliance.

COTF search and replace follows SEARCH and REPLACE nodes follow the "POSIX-Extended Regular Expressions" rules.

...

Code Block
<TARGET folder="C:\program files" include_subfolders="yes" entries="*.mof" >
    <ACTION type="execute">
      <PATH>c:\windows\System32\wbem\mofcomp.exe</PATH>
      <ARGUMENTS>%%TARGET%%</ARGUMENTS>
    </ACTION>
  </TARGET>
  <TARGET folder="C:\program files (x86)" include_subfolders="yes" entries="*.mof" >
    <ACTION type="execute">
      <PATH>c:\windows\System32\wbem\mofcomp.exe</PATH>
      <ARGUMENTS>%%TARGET%%</ARGUMENTS>
    </ACTION>
  </TARGET>

EXCLUDE Node

The EXCLUDE node defines paths that you want to exclude from the TARGET node actions. You can use wildcards in this node.

The EXCLUDE XML tags are as follows:

Code Block
<EXCLUDE>
   <PATH>%SystemDrive%\Documents and Settings\*</PATH>
   <PATH>%SystemDrive%\Users\*</PATH>
   <PATH>*\SYSTEM\CurrentControlSet\Services\*</PATH>
</EXCLUDE>

...