![Cisco ASR 9000 Serie Скачать руководство пользователя страница 164](http://html.mh-extra.com/html/cisco/asr-9000-serie/asr-9000-serie_configuration-manuals_66679164.webp)
# Log a message.
set msg [format "EEM application_publish test iteration %s" $iter]
action_syslog priority info msg $msg
if {$_cerrno != 0} {
set result [format "component=%s; subsys err=%s; posix err=%s;\n%s" \
$_cerr_sub_num $_cerr_sub_err $_cerr_posix_err $_cerr_str]
error $result
}
# Do whatever processing that you want to measure here.
# Cause the next iteration to run. Note that the iteration is passed to the
# next operation as arg1.
event_publish sub_system 798 type 9999 arg1 $iter
if {$_cerrno != 0} {
set result [format \
"component=%s; subsys err=%s; posix err=%s;\n%s" \
$_cerr_sub_num $_cerr_sub_err $_cerr_posix_err $_cerr_str]
error $result
}
Embedded Event Manager Multiple Event Support Tcl Command Extensions
Attribute
Specifies a complex event used for Multi Event Support.
Syntax
attribute tag ? [occurs ?]
Arguments
Specifies a tag using the
event-tag
argument that can
be used with the
attribute
command to associate an
event.
tag
(Optional) Specifies the number of occurrences before
an EEM event is triggered. If not specified, an EEM
event is triggered on the first occurrence. The range
is from 1 to 4294967295
occurs
Result String
None
Example:
attribute tag 1 occurs 1
Correlate
Builds a single complex event and allows Boolean logic to relate events.
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
148
Configuring and Managing Embedded Event Manager Policies
Embedded Event Manager Multiple Event Support Tcl Command Extensions