![]() |
Embedded Event Manager Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
|
||||||||||||||||||||||||||||||||||||||||
EEM 3.2 Action Tcl Command Extension
![]() |
|||||||||||||||||||||||||||||||||||||||||
|
Contents EEM Action Tcl Command ExtensionLast Updated: December 29, 2012
The following conventions are used for the syntax documented on the Tcl command extension pages: [type ?]
priority low|normal|high
action_policyAllows a Tcl script to run an Embedded Event Manager (EEM) policy that has been registered with the None event detector. The action of running an EEM policy can also be performed using the event manager run command. Arguments
None Set _cerrnoYes (_cerr_sub_err = 2) FH_ESYSERR (generic/unknown error from OS/system) This error means that the operating system reported an error. The POSIX errno value that is reported with the error should be used to determine the cause of the operating system error. (_cerr_sub_err = 12) FH_ENOSUCHEID (unknown event ID) This error means that the policy is unknown because it is not registered. (_cerr_sub_err = 14) FH_ENOSUCHACTION (unknown action type) This error means that the action command requested was unknown. action_processStarts, restarts, or kills a Software Modularity process. This Tcl command extension is supported only in Software Modularity images. Arguments
Set _cerrnoYes (_cerr_sub_err = 14) FH_ENOSUCHACTION (unknown action type) This error means that the action command requested was unknown. (_cerr_sub_num = 425, _cerr_sub_err = 1) SYSMGR_ERROR_INVALID_ARGS (Invalid arguments passed) This error means that the arguments passed in were invalid. (_cerr_sub_num = 425, _cerr_sub_err = 2) SYSMGR_ERROR_NO_MEMORY (Could not allocate required memory) This error means that an internal SYSMGR request for memory failed. (_cerr_sub_num = 425, _cerr_sub_err = 5) SYSMGR_ERROR_NO_MATCH (This process is not known to sysmgr) This error means that the process name was not known. (_cerr_sub_num = 425, _cerr_sub_err = 14) SYSMGR_ERROR_TOO_BIG (outside the valid limit) This error means that an object size exceeded its maximum. (_cerr_sub_num = 425, _cerr_sub_err = 15) SYSMGR_ERROR_INVALID_OP (Invalid operation for this process) This error means that the operation was invalid for the process. action_programAllows a Tcl script to run a POSIX process (program), optionally with a given argument string, environment string, Standard Input (stdin) pathname, Standard Output (stdout) pathname, or Standard Error (stderr) pathname. This Tcl command extension is supported only in Software Modularity images. Set _cerrnoYes (_cerr_sub_err = 2) FH_ESYSERR (generic/unknown error from OS/system) This error means that the operating system reported an error. The POSIX errno value that is reported with the error should be used to determine the cause of the operating system error. (_cerr_sub_err = 14) FH_ENOSUCHACTION (unknown action type) This error means that the action command requested was unknown. (_cerr_sub_err = 34) FH_EMAXLEN (maximum length exceeded) This error means that the object length or number exceeded the maximum. action_reloadSet _cerrnoYes (_cerr_sub_err = 2) FH_ESYSERR (generic/unknown error from OS/system) This error means that the operating system reported an error. The POSIX errno value that is reported with the error should be used to determine the cause of the operating system error. (_cerr_sub_err = 14) FH_ENOSUCHACTION (unknown action type) This error means that the action command requested was unknown. action_scriptAllows a Tcl script to enable or disable the execution of all Tcl scripts (enables or disables the script scheduler). Set _cerrnoYes (_cerr_sub_err = 2) FH_ESYSERR (generic/unknown error from OS/system) This error means that the operating system reported an error. The POSIX errno value that is reported with the error should be used to determine the cause of the operating system error. (_cerr_sub_err = 14) FH_ENOSUCHACTION (unknown action type) This error means that the action command requested was unknown. (_cerr_sub_err = 52) FH_ECONFIG (configuration error) This error means that a configuration error has occurred. action_snmp_trapSends a Simple Network Management Protocol (SNMP) trap using the Embedded Event Manager Notification MIB. Set _cerrnoYes (_cerr_sub_err = 2) FH_ESYSERR (generic/unknown error from OS/system) This error means that the operating system reported an error. The POSIX errno value that is reported with the error should be used to determine the cause of the operating system error. (_cerr_sub_err = 14) FH_ENOSUCHACTION (unknown action type) This error means that the action command requested was unknown. action_snmp_object_valueSets a Simple Network Management Protocol (SNMP) object ID and value to be returned for the SNMP get request. Arguments
action_switchSwitches processing to a secondary processor in a fully redundant environment. Before using the action_switch Tcl command extension, you must install a backup processor in the device. If the hardware is not fully redundant, the switchover action will not be performed. Set _cerrnoYes (_cerr_sub_err = 2) FH_ESYSERR (generic/unknown error from OS/system) This error means that the operating system reported an error. The POSIX errno value that is reported with the error should be used to determine the cause of the operating system error. (_cerr_sub_err = 14) FH_ENOSUCHACTION (unknown action type) This error means that the action command requested was unknown. action_track_setArguments
© 2012 Cisco Systems, Inc. All rights reserved.
|
||||||||||||||||||||||||||||||||||||||||
|
|