The EXECUTE-SYSTEM-SWITCH command runs during coldstart to define the behavior of features which, for mvBase, are now available in more than one flavor. Optional patches in Mentor products are now implemented as switches in mvBase. To set the current behavior for all switchable features use EXECUTE-SYSTEM-SWITCH in the format below:
Format
EXECUTE-SYSTEM-SWITCH * (E |
Parameter(s)
* |
Executes all items in the SYSTEM.SWITCHES file. |
(E |
Outputs only the error message, ERRMSG, to the screen. Without the (E, all program output displays on the screen. |
Description
This command also executes in SYSPROG-PL COLD-START. The file SYSTEM.SWITCHES contains an item for each switchable feature:
Attribute 1 of each item contains a description of that feature.
Attribute 12 contains the feature’s default flavor.
Attribute 13 contains possible values for the switch.
Attribute 14 is blank upon installation of mvBase, so the default value from attribute twelve sets the behavior of each switch.
To modify the behavior of a particular switch, from TCL in the SYSPROG account, type:
ED SYSTEM.SWITCHES itemname |
Place the desired parameter value from the list in attribute 13 into attribute 14. File the item and type:
EXECUTE-SYSTEM-SWITCH itemname |
This re-defines the behavior of the switch to the value in attribute 14.
Using SYSTEM-SWITCH and EXECUTE-SYSTEM-SWITCH
The utility SYSTEM-SWITCH is a front end to EXECUTE-SYSTEM-SWITCH, used to display and/or change the setting of a switch or a class of switches. To invoke this utility, type SYSTEM-SWITCH. Enter the name of a switch or a class of switches when prompted. The system displays an explanation of the switch and the current setting; the user has the option of toggling the switch setting or exiting.
The quickest way to change the setting of a switch is to type this command line from TCL:
Format
switch_name switch_setting |
Parameter(s)
switch_name |
Item in SYSTEM.SWITCHES. |
switch_setting |
One of the values in attribute 13 of the item. |