Avaya Media Processing Server Series System (Software Release 2.1) Manual de usuario Pagina 211

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 306
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 210
Common Configuration
# P0602477 Ver: 3.1.11 Page 211
Action Functions
A filter can utilize action functions to specify activities to perform in response to the
success or failure of a logical condition. All action functions, with the exception of
discard(), return a value of true. Several action functions can be combined into
one filter by using the && operator (see the table above), for example:
<alarm_criteria> ? (<action1> && <action2>) : false
The following action functions are available for use in alarm filters:
Action Function Description
print(<format>) Prints the current alarm to standard output (current console). If
format is not specified, the alarms are printed as they arrive.
The only acceptable formats use either one or two specifiers in
the form of %s to refer to the first alarm line (one) or the alarm
text (two). For example:
print("You got it: %s\n")
prints the phrase "You got it:" followed by the first line of each alarm meeting the filter
criteria, with each "printing" separated by blank lines (since there is always an implicit new
line at the end of an alarm).
This function is used primarily by Certified Avaya personnel for
debugging purposes. If used to filter live alarms, an unending
loop results through the interaction of the alarmd and
consoled daemons.
log(filepath
<, format>)
Save the current alarm in a file. The format option has the
same functionality as that in print (see above). Only one log file
per filter is allowed. If only the file name is provided, it is stored in
$MPSHOME/common/log. For example:
log("/home/marxbros/sawa.log" , "%s%s\n")
saves the text of the current alarms (separated by blank lines) to the file sawa.log located
in the home directory of user marxbros.
To log different alarms into different files, use several filters with
one log per filter, i.e.:
<alarm_criteria1> ? log<file_one> : false;
<alarm_criteria2> ? log<file_two> : false
email(subject,
address<,address>)
Sends an e-mail with the specified subject line to the
address(es). The body of the message includes the alarm.
Address aliases may be used if the mail is being sent internally
with respect to system location. For example:
email("High load alert","sysadmin","[email protected]")
sends an e-mail with the subject line "High load alert" and containing the alarm to the
address sysadmin (an alias used within the originating network) and to the external
action(command
<,arg1><,arg2>)
Executes the specified command. Arguments may be
represented by literals or field names (see Notation Functionality
on page 207). For example:
Vista de pagina 210
1 2 ... 206 207 208 209 210 211 212 213 214 215 216 ... 305 306

Comentarios a estos manuales

Sin comentarios