• No results found

The Monitor Folder activity invokes a runbook when the folder that you specified has changed, or if the files within that folder have been changed. You can monitor the size of log files in a folder. If the files grow too large, the Monitor Folder activity can invoke a runbook that will archive, backup, and then purge the log files to clean up the folder.

Configuring the Monitor Folder Activity

Before you configure the Monitor Folder activity, you need to determine the following:

 The folder name you are monitoring.

 What condition invokes the runbooks.

 Optionally, you may need to know what file types you want to monitor. Use the following information to configure the Monitor Folder activity. Details Tab

Settings Configuration Instructions

Path Type the path to the folder that you are

monitoring. You can use the ellipsis (...) button to browse for the folder.

Include sub-folders Select this option to monitor the files and folders in sub-folders in the Folder that you specified.

File Filters Create filters with custom criteria for the files that you want to monitor. Perform the following for each filter that you want to create:

Settings Configuration Instructions

1. Click Add to open the Filter Settings dialog box.

2. From the Name menu list, select the criteria that you want to use. The Relation and Value menu options present custom options according to the criteria that you select from the Name menu items.

3. Select from the Relation and Value menu items.

4. Click OK.

Triggers Tab

Settings Configuration Instructions

Number of files is Select this option to invoke the Monitor Folder activity if the number of files is greater than, equal to, or less than the value that you provide. Select the criteria from the drop-down list and type the value in the field.

Total file size is Select this option to invoke the Monitor Folder activity if the total file size of the folder is greater than or less than the value that you provide. Select the criteria from the first drop- down list, type the value in the field, and select the unit of measure from the last drop-down list.

Authentication Tab

Settings Configuration Instructions

User name Type the user name required to access the

folder if it is on a remote computer.

Password Type the password required to access the

folder if it is on a remote computer.

Published Data

Item Description

Include sub-folders Indicates that the Include sub-folders check box was selected.

Trigger if number of files changed Indicates that the Number of files is check box was selected.

Trigger if total file size changed Indicates that the Total file size is check box was selected.

Number of files The number of files given to evaluate the Number of files is option.

Number of files relation The relation that was used to evaluate the Number of files is option.

Number of files limit

Origin Folder The folder that was monitored.

Total file size measure The unit of measure selected to evaluate the Total file size is option.

Total file size relation The relation that was used to evaluate the Total file size is option.

Total file size limit

Total file size number The number given to evaluate the Total file size is option.

User name The user name used to access the folder if it was on a remote computer.

Move File

The Move File activity moves a file from one directory to another. You can move files to network shares that are available using UNC paths. You can also move files from a local or publicly available network folder, such as an FTP location, to an internal folder.

Configuring the Move File Activity

Before you configure the Move File activity, you need to determine the following:

 The files you are moving.

 The destination path where you will move the files.

Details Tab

Settings Configuration Instructions

File Type the path and name of the file that you

want to move. You can use the * and ? wildcards to specify the filename and path. These wildcards behave the same way as in the Windows Command Prompt.

Include sub-folders Select this option to move any files within the sub-folders of the path you have specified that match the filename that you have specified.

Folder Type the path of the folder where you want the

files to be moved to.

If the destination exists Select the action that you want to take if a file with the same name already exists in the destination folder:

Overwrite: Select this option to overwrite the existing file with the file that is being moved. Fail: Select this option to cause the Move File activity to fail if the filename already exists. Create a file with a unique name: Select this option to append a value to the filename to create a unique name that does not conflict with an existing name.

Advanced Tab

Settings Configuration Instructions

File age Select Is less than or Is more than from the

drop-down list to move the files that are older or newer, respectively, than the number of days that you specify.

days Enter the number of days that you will use with

the File age measure.

Date of transfer Set the file date at the destination to the date when it was copied to the folder.

Same as original Set the date of the file at the destination to the date of the original file.

Published Data

The following table lists the published data items.

Item Description

Origin folder The path of the base folder where the file was moved from.

Destination folder The destination folder where the file was moved to.

Total number of files to be transferred The number of files that matched the file that you specified.

Number of successful file operations The number of files that were successfully moved.

Number of failed file operations The number of files that failed to move. File operation status Determines whether the move operation

succeeded or failed.

File path The path of the file that was moved.

File name The name of the file that was moved.

Name and path of the file relative to the origin folder

The relative path of the file starting from the origin folder.

If destination exists The option that was selected to handle the operation if the destination file already exists. File age date option The option that was selected to evaluate the file

age.

File age days The number of days that was provided to evaluate the file age.

Modified date option The option that was selected for the date to be assigned to the destination file.

Name and path of the destination file The name and path that the file was moved to. Name and path of the origin file The name and path that the file was moved

from.

Include sub-folders Indicates whether the Include sub-folders check box was selected.

Related documents