You can also customize the command files (with a text editor) for special events.
Each file receives, when it is executed by UM-Client, a set of parameters representative of the event causing its execution (trap number, agent IP address, etc. ...).
The list of parameters available for each file is documented in the file itself.
Two utilities, snmpm and wr_log (which are stored in the UM-Client installation directory) can be used to customize these files. Refer to the chapter dedicated to SNMPM for a description of the utility snmpm. The syntax of the utility WR_LOG (which is used to write in the trace file) is given by entering the command "wr_log \h" .
stopping UM-Agent
When UM-Client and UM-Agent are used on the same system, it is best to insert the command
uma_stop
at the start of the command file provoking the system shutdown
(umc_shut.xx)
, so that UM-Agent is stopped correctly.
ing a message on reception of an unknown trap
Customization of the command file
umc_unkn.xx.
By default, if an unknown trap is received by the client, an event is written in the trace file. The command file
umc_unkn.xx
can be customized so that UM-Client s a special message in this case.
Remark:
Depending on the system used, the command file names are followed by an extension:
Customization of messages for Unix systems
UM-Client contains text files and command files which may be customized. These files are used when UM-Client detects an event concerning an agent monitored.
To customize UM-Client messages, modify the file
umc_mesg
(which is stored in the UM-Client installation directory) with a text editor.
The format of the message file umc_mesg is as follows:
The list of default UM-Client messages is as follows: