![Cisco ASR 9000 Serie Configuration Manuals Download Page 205](http://html.mh-extra.com/html/cisco/asr-9000-serie/asr-9000-serie_configuration-manuals_66679205.webp)
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
policy, the policy that retrieves it (using the
context_retrieve
command extension) should also save it
again (using the
context_save
command extension).
Note
Syntax
context_retrieve ctxt [var] [index_if_array]
Arguments
(Mandatory) Context name.
ctxt
(Optional) Scalar variable name or array variable
name. Defaults to a null string if this argument is not
specified.
var
(Optional) Array index.
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
189
Configuring and Managing Embedded Event Manager Policies
Tcl Context Library Command Extensions