Category
Function
Executes an executive command.
Syntax
Executive(command, value);
Inputs
Name | Type | Default | Description |
---|---|---|---|
command | string | none | command to be executed |
value | object | no default | command-dependent value |
Functional Details
This module tells the Data Explorer executive to run an internal system command. In the user interface, it is available only through the Execute Script Command option of the Options pull-down menu of the Message window. And with the exception of the "print" command, it should be invoked only through the scripting language.
command | is the executive command to be executed. |
value | is a command-dependent value. |
The types of commands executed by the Executive module fall into four categories:
The following list summarizes the kinds of system information available with the "print" command.
Executive("print version");
Executive("print env");
Executive("print mdf","modulename");
Executive("print groups");
Executive("print hosts");
Use the following commands to control distributed processing in the script language. (In the user interface, distributed processing should be controlled through the Execution Group Assignment... option of the Connections pull-down menu in the VPE window. See 9.1 , "Using Distributed Computation" in IBM Visualization Data Explorer User's Guide.)
Executive("group attach", "group1:hostname -dxopt1 -dxopt2 ..."); $syncor
Executive("group attach", { "group1:hostname -dxopt1 -dxopt2 ...", "group2:hostname -dxopt1 -dxopt2 ...", "group3:hostname -dxopt1 -dxopt2 ...", ...}); $sync
Executive("group detach", "group1"); $syncor
Executive("group detach", { "group1", "group2", ... }); $sync
Executive("host disconnect", "hostname1"); $syncor
Executive("host disconnect", { "hostname1", "hostname2", ... }); $sync
Note: These Executive calls must be followed by $sync, as shown.
To load the module definition file (mdf) of an outboard module after Data Explorer has been started, use the script syntax shown here. (In the user interface, use the Load Module Description(s)... option of the File pull-down menu in the VPE or Image window.)
Executive("mdf file", "mdf_filename"); $sync
Note: The call to load the mdf file must be followed by
$sync, as shown.
Note: In the User Interface this can be done using the
Execute Script Command option in the
Commands menu of the Message Window.
UserInteractor Definition
To load a UserInteractor after Data Explorer has been started, use the
following script syntax:
Executive("loadinteractors", "userinteractor_filename");
$sync
The following commands execute system functions:
Executive("flush cache");
Executive("flush dictionary");
Executive("flush macros");
Example
In this example, the execution groups "mine" and "yours" are attached to hosts "ours" and "theirs" respectively. Also, Data Explorer is started with a memory allocation of 50MB on the host "theirs."
Executive("group attach",{"mine:ours","yours:theirs -memory 50"});
[Data Explorer Home Page | Contact Data Explorer | Same document on Data Explorer Home Page ]