Add a SIngle Event Handler Record - Windows

Adding a Single Event Handler Record for Windows

In this example, a single handler record identified, listdir, is added to the local event handler database.

Whenever a UEM Server invokes this event handler, a handler process is started that executes the command ls -al, which lists the contents of the current directory on a UNIX system. The encrypted.file file, referenced by the -encryptedfile option, is a Universal Encrypted file. This file contains a user ID and, optionally, a password that is used by an event-driven UEM Server to establish a security context in which to execute the handler process (provided the USER_SECURITY option is enabled in the UEM Server's configuration).

Once this record is added, it is available immediately to both demand-driven and event-driven UEM Servers.

Note

If a demand-driven UEM Server uses this handler, any user information specified in encrypted.file is overridden by the user information provided by the UEM Manager's command options.


Command Line Options

The command line options used in this example are:

Option

Description

-add

Writes one or more new event definition and/or event handler records to the appropriate database.

-handler_id

Identifier that uniquely identifies an event handler record.

-encryptedfile

Complete path to a file encrypted with Universal Encrypt.

-cmd

Command to execute on behalf of the event handler.

Components

UEMLoad Utility for Windows

Universal Event Monitor Server for UNIX

Universal Encrypt