HP-UX Reference (11i v3 07/02) - 1 User Commands A-M (vol 1)

e
evmsort(1) evmsort(1)
EXAMPLES
The following example retrieves all events with a priority of 300 or greater, sorts them into descending
order of priority (most urgent event first) and then ascending order of time (oldest event first), and
automatically runs evmshow to display them.
evmget -f ’[priority >= 300]’ | evmsort -s "@priority-:@timestamp" |
evmshow -t "@priority @timestamp @@"
The following example yields a list of all events, sorted with the latest event first within
name.
evmget | evmsort -s "@name:@timestamp-" |
evmshow -t "@name @timestamp @@"
The following example yields a list of all events, sorted first in order of their formatted messages and
then sorted in ascending order of time. Events are passed to
evmshow for display and subsequently to
the
more command for viewing.
evmget | evmsort -A -s "@@:@timestamp" -t "@timestamp @@" | more
WARNINGS
The evmsort command rejects attempts to output raw events to a terminal device.
SEE ALSO
Commands
evmget(1), evmpost(1), evmshow(1), evmwatch(1).
Files
evmchannel.conf(4).
Event Management
EVM(5).
EVM Events
EvmEvent(5).
Event Filter
EvmFilter(5).
HP-UX 11i Version 3: February 2007 2 Hewlett-Packard Company 313