set

The set command set and display environment variables.

Command Format

set [-t] [name [value]]]

where:

-t set temporarily. Setting is not stored in non-volatile memory
name environment variable name
value string value to set variable to

Functional description

The set command is used to set or display environment variable values. Environment variables are normally stored in NVRAM. The -t switch can be used to not store the value in NVRAM. The setting will be lost when PMON2000 is restarted. This may be useful when a variable needs to be set but does not need to be saved.

Some variables can only be set to predefined values. When such a variable is displayed PMON2000 also displays the variables list of allowed values enclosed in square brackets. No list is shown if the variable can have any value. In general, when the value is a numeric value, or when the value has an unlimited range of possible values, no list is shown.

The set command does not evaluate the specified value but check constrained variables against a list of allowed values. Value checking on other variables are only performed when a command uses a variable.

To set a variable to a multiple-word value, enclose the value in single or double quotation marks.

The maximum length for a variable name and its value must be less than 255.

Examples illustrating the use of the set command follow.

PMON> set                            Display all current values.
    brkcmd = "l @cpc 1"
    datasz = -b          [-b -h -w]
   inalpha = hex         [hex symbol]
    inbase = 16          [auto 8 10 16]
    moresz = 10      
  regstyle = sw          [hw sw]
    rptcmd = trace       [off on trace]
   trabort = ^K        
     uleof = %         
      ulcr = off         [off on]
   validpc = "_ftext etext"
   heaptop = 80020000 
    dlecho = off         [off on lfeed]
   dlproto = EtxAck      [none XonXoff EtxAck]
  hostport = tty1
    prompt = "PMON> "
 etheraddr = 12:34:56:78:90:ab
    ipaddr = 71.0.0.211
   vxWorks =
      diag = 0           [N[:dev]]

PMON> set moresz                    Display current moresz.
moresz = 10

PMON> set moresz 20                 Set moresz to 20 decimal.

Environment

The command changes environment variables.

See Also

The unset and eset commands.

Powered by Drupal, an open source content management system