Monitor File

 

Updated: May 13, 2016

Applies To: System Center 2012 SP1 - Orchestrator, System Center 2012 - Orchestrator, System Center 2012 R2 Orchestrator

The Monitor File activity invokes a runbook when files that you specify in folders and sub-folders have changed. You can monitor a file that indicates the completion of a transaction. For example, there are nightly transfers sent to your runbook server, and when the transfer is complete a file with the name "Complete" is written to the folder. This activity can automatically invoke a runbook that processes all the files in the folder when the "Complete" file is created.

Use the following information to configure the Monitor File activity.

Details Tab

SettingsConfiguration Instructions
In folderType the path to the file that you are monitoring, or use the ellipsis (...) button to browse for it.
Include sub-foldersSelect this option to copy any files within the sub-folders of the path you have specified that match the filename that you have specified.
FiltersCreate filters with custom criteria for the files that you want to monitor. Perform the following for each filter that you want to create:

1. Click Add to open the Filter Settings dialog box.
2. From the Name drop-down 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 list.
3. Select options from the Relation and Value items.
4. Click OK.

Triggers Tab

SettingsConfiguration Instructions
Trigger if one of the files wasSelect a condition to invoke the activity if the condition in the monitored file is true.
Trigger if file properties changedSelect a condition to invoke the activity if the condition in the monitored file is true.

Authentication Tab

SettingsConfiguration Instructions
User nameType the user name required to access the folder if it is on a remote computer.
PasswordType the password required to access the folder if it is on a remote computer.

Published Data

The following table lists the published data items.

ItemDescription
Change typeThe type of changed that was detected on the file.
Name and path of the fileThe name and path of the file that was monitored.
Include sub-foldersIndicates that the Include sub-folders check box was selected.
Notify if changedIndicates that the Changed check box was selected.
Notify if createdIndicates that the Created check box was selected.
Notify if deletedIndicates that the Deleted check box was selected.
Notify if renamedIndicates that the Renamed check box was selected.
Origin FolderThe folder that the monitored file was stored in.
Notify if file attributes changedIndicates that the Attributes check box was selected.
Notify if file creation time changedIndicates that the Creation time check box was selected.
Notify if file last access time changedIndicates that the Last access time check box was selected.
Notify if file last write time changedIndicates that the Last write time check box was selected.
Notify if file security changedIndicates that the Security check box was selected.
User nameThe user name used to access the folder if it was on a remote computer.
Show: