Handling an Expired Event - UNIX
Handling an Expired Event in UNIX
In this example, a demand-driven UEM Server (installed on a different UNIX system) watches for the creation of a file called uemtest.dat. The -filespec option contains no path information, so UEM Server looks for this file in the home directory of uemuser.
A relative inactive date / time instructs the demand-driven Server to monitor the event for one (1) minute. If the UEM Server detects the file, and the file completes within that time, UEM sets the event occurrence to the triggered state. Since the command options contain no event handler information for a triggered occurrence, the UEM Server simply renames the file (by default). UEM Server then makes the event inactive, and ends.
If the UEM Server detects the file, but the file does not complete within 60 seconds, UEM sets the occurrence to the rejected state. Since the command options contain no event handler information for a rejected occurrence, the UEM Server leaves the file as-is and takes no further action.
If the UEM Server does not detect the presence of uemtest.dat before the inactive time elapses, it sets the event to the expired state. When this happens, the UEM Server executes the command specified by the -cmd option corresponding to the -expired option. In this example, UEM executes the 'ls -alR /uem files' command.
Note
Command Line Options
The command line options used in this example are:
Option |
Description |
List of one or more hosts upon which a command may run. | |
Type of event to monitor. | |
Name or pattern of the file whose creation should be detected and tracked for completion. | |
ID of a remote user account that the UEM Server uses to establish the security context in which event monitoring is performed. | |
Password associated with -userid. | |
Date and time at which the state of the monitored event should be made inactive. | |
Event state that, when encountered, will result in the execution of the associated event handler. | |
Complete path to an application file or remote script that should be executed on behalf of the event handler. | |
Values that are passed as command line arguments to a particular handler specified for a given EVENT_STATE. |
Components
Universal Event Monitor Manager for UNIX
Universal Event Monitor Server for UNIX