evlsend(1)

NAME

evlsend - event generation utility

SYNOPSIS

evlsend
 -f | --facility facility  -t | --type  event_type
 [  -s  |  --severity severity ] [ -m | --message messagestring ] [ -b | --binary attr_type attr_value  ...]

DESCRIPTION

The evlsend utility lets you send an event message to the system.

OPTIONS

-f, --facility facility
Facility to record in the event record. This option
must be specified, and the facility must be speci fied in the Facility Registry.
-t, --type event_type
Specify the event type to record in the event
record. This option must be specified.
-s, --severity severity
Severity to record in the event record. If this
option is not specified, then the default severity
is INFO. Valid severity values are EMERG, ALERT,
CRIT, ERR, WARNING, NOTICE, INFO, and DEBUG.
-m, --message message-string
Specifies that the variable data format is
POSIX_LOG_STRING and logs the message. Not valid
with the --binary option.
-b, --binary attr_type attr_value . . .
Specifies that the variable data format is
POSIX_LOG_BINARY. Not valid with the --message option. attr_type and attr_value must both be spec ified, and multiple pairs of these two parameters
can be specified. Each type/value pair specifies a
value to be packed (without padding for alignment)
into the variable portion of the event record. The
list of type/value pairs may optionally be termi
nated with an attr_type of endofdata, which is dis carded. Any attr_type that starts with a dash (-) terminates the list and is interpreted as a com
mand-line option.
The --binary option supports the following data types: char, uchar, short, ushort, int, uint, long,
ulong, longlong, ulonglong, address, float, double,
ldouble, string, wchar, wstring.
Integral values (including char, uchar, wchar, and
address) can be expressed in decimal, hexadecimal,
or octal. For a value of type char, uchar, or
wchar, if attr_value is not a valid number but is a single character, the ASCII value of that character
is used. If attr_type is wstring, the string attr_value is converted to a wide-character string.
For n consecutive values of the type typename (e.g., an array), attr_type can be specified as n*typename or as typename[] followed by n. Both notations are equivalent. The following attr_value must be n values of the indicated type.

EXAMPLES

Arraythis string too, but use default severity."

evlsend -f local5 -t 66 -b 'string[]' 3 decimal hex
octal '3*int' 25 0x19 031

FILES

/var/evlog/eventlog
Standard Event log
/var/evlog/privatelog
Private Event log
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout