Installation guide

3-14 Console Commands
3.9 Create
The create command allows you to create an environment vari-
able.
Example 3-9 Create Command
1. >>> create fred # Create a new environment
fred set to # variable fred with a value
>>> show fred # equal to null.
fred
2. >>> create stuff 356 # Create a new environment
# variable stuff with a value
# equal to 356.
3. >>> create -nv delay # Create a new nonvolatile
# environment variable delay
# in EEPROM with a value
# equal to null.
4. >>> create -nv work "dua44.0.0.4.0"
# Create a new nonvolatile
# environment variable work
# in EEPROM equal to
# dua44.0.0.4.0.
5. >>> cr bootspec "-flags 0,1 dua21.0.0.14.1"
# Create an environment
# variable bootspec equal to
# -flags 0,1 dua21.0.0.14.1.
The create command syntax is:
cr[eate] [-nv] <envar> [<value>]
where the -nv option indicates the nonvolatile environment variable is
stored in EEPROM, and <value> is the optional variable value. Created
environment variables are volatile by default. value can be a quoted
string for specifying boot specifications (see boot command description).
For additional information on environment variables, see Section 2.3 and
the clear and set command descriptions.