HP-UX Reference (11i v3 07/02) - 1 User Commands A-M (vol 1)
e
evmget(1) evmget(1)
evmget -A -t "@timestamp @@"
• In this example, only events from the
my_log channel are retrieved. The events are further filtered to
display only messages from the EVM daemon’s logfile.
evmget -A -C my_log -f "[name *.evmdaemon]" -t "@timestamp @@"
• This example retrieves only events that have a priority value of at least 500. The raw events are sorted
into descending timestamp order and stored in a file.
evmget -f "[priority >= 500]" \
| evmsort -s @timestamp- > my_eventfile
• This example uses a stored filter to retrieve all EVM events, sorts them into ascending timestamp order
(the default order), and displays them.
evmget -f "@sys:evm" | evmsort | evmshow -t "@timestamp @@"
• This ksh example uses the environment variables
EVM_SORT_SPEC to set the sort preference and
EVM_SHOW_TEMPLATE
to set the preferred display style and format for the
evmget output.
export EVM_SORT_SPEC="@priority"
export EVM_SHOW_TEMPLATE="@timestamp @@"
evmget | evmsort -A
WARNINGS
The evmget command retrieves only events for which the user has access authorization. See evm.auth(4)
for details of access authorization.
The
evmget command rejects attempts to output raw events to a terminal device.
FILES
/etc/evmchannel.conf
Location of the EVM channel configuration file
/etc/evmdaemon.conf
Location of the EVM daemon configuration file
/etc/services Definition of the sockets and protocols used for Internet services
SEE ALSO
Commands
evminfo(1), evmpost(1), evmshow(1), evmsort(1), evmwatch(1).
Files
evmchannel.conf(4), evmdaemon.conf(4), evmfilterfile(4), services(4).
Event Management
EVM(5).
EVM Events
EvmEvent(5).
Event Filter
EvmFilter(5).
302 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: February 2007