Tcl Context Library Command Extensions; Context_Retrieve - Cisco ASR 9000 Serie Configuration Manuals

Aggregation services router system
Table of Contents

Advertisement

Configuring and Managing Embedded Event Manager Policies

Tcl Context Library Command Extensions

All the Tcl context library command extensions belong to the ::cisco::eem namespace.
Exported Commands

context_retrieve

Retrieves Tcl variable(s) identified by the given context name, and possibly the scalar variable name, the array
variable name, and the array index. Retrieved information is automatically deleted.
Once saved information is retrieved, it is automatically deleted. If that information is needed by another
Note
policy, the policy that retrieves it (using the context_retrieve command extension) should also save it
again (using the context_save command extension).
Syntax
context_retrieve ctxt [var] [index_if_array]
Arguments
ctxt
var
index_if_array
The index_if_array argument is ignored when the var argument is a scalar variable.
Note
If var is unspecified, retrieves the whole variable table saved in the context.
If var is specified and index_if_array is not specified, or if index_if_array is specified but var is a scalar
variable, retrieves the value of var.
If var is specified, and index_if_array is specified, and var is an array variable, retrieves the value of the
specified array element.
Result String
Resets the Tcl global variables to the state that they were in when the save was performed.
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
Tcl Context Library Command Extensions
(Mandatory) Context name.
(Optional) Scalar variable name or array variable
name. Defaults to a null string if this argument is not
specified.
(Optional) Array index.
189

Advertisement

Table of Contents
loading

Table of Contents