Adding a Single Event Record for UNIX
In this example, a single event record identified as payrollfile is added to the local event definition database.
This event definition will instruct a UEM Server, which resides on the local (UNIX) system, to detect all occurrences of the file /tmp/payroll.dly
. Whenever UEM detects this file and sets the associated event occurrence to a triggered state, UEM will execute the command or script contained in the stored event handler record that has an ID of listdir. If this event handler record does not exist at the time the event occurrence is triggered, an error will be issued by UEM.
When the record has been added to the event definition database, it is immediately available for use by a demand-driven UEM Server. In other words, there is no restriction with respect to how quickly a UEM Manager can reference the stored event definition after UEMLoad adds it to the database.
Because no values for the UEMLoad EVENT_STATE, ACTIVE_DATE_TIME, and INACTIVE_DATE_TIME options were specified, the default values of enable, the current date and time, and 2038.01.16,23:59, respectively, are used. This means the event will be monitored as soon as the event definition is assigned to an event-driven UEM Server. In this case, the event definition is assigned to the UEM Server component with an ID of uems (the default).
If this UEM Server component is active when the record is added, this assignment will occur the next time that the UEM Server refreshes its configuration. If the UEM Server component is not active, the assignment is made the next time it is started.
uemload -add -event_id payrollfile -event_type file -filespec "/tmp/payroll.dly" -triggered_id listdir
Command Line Options
The command line options used in this example are:
Option | Description |
---|---|
Writes one or more new event definition and/or event handler records to the appropriate database. | |
Identifier that uniquely identifies an event definition record. | |
Type of system event represented by the event definition record. | |
Name of a file to monitor. | |
ID of an event handler record that UEM will execute when an event occurrence is triggered. |
Components
Universal Event Monitor Server for UNIX