Event_Publish - Cisco Catalyst 2960 series Configuration Manual

Consolidated platform configuration guide, ios release 15.2(4)e
Hide thumbs Also See for Catalyst 2960 series:
Table of Contents

Advertisement

Set _cerrno
Yes
Sample Usage
Here is a similar example as above using this single command:
namespace import ::cisco::eem::*
namespace import ::cisco::lib::*
set i 1
while {1 == 1} {
array set arr_einfo [event_reqinfo]
if {$_cerrno != 0} {
}
action_syslog msg "event $i serviced" priority info
if {$i == 5} {
}
incr i
array set _event_state_arr [event_completion_with_wait status 0 refresh_vars 1]
if {$_event_state_arr(event_state) != 0} {
}
}
The running configuration output is the same as the event_publishTcl command.
Note

event_publish

Publishes an application-specific event.
Syntax
event_publish sub_system ? type ? [arg1 ?] [arg2 ?] [arg3 ?] [arg4 ?]
Arguments
sub_system
type
# Start high performance policy loop
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
action_syslog msg "Exiting after servicing 5 events" priority info
exit 0
action_syslog msg "Exiting: failed event_state " \
" $event_state_arr(event_state)" priority info
exit 0
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
(Mandatory) Number assigned to the EEM policy that
published the application-specific event. Number is
set to 798 because all other numbers are reserved for
Cisco use.
(Mandatory) Event subtype within the specified
component. The sub_system and type arguments
uniquely identify an application event. Must be an
integer between 1 and 4294967295, inclusive.
event_publish
1979

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents