5.20
Setting and Viewing Environment Variables
Use the set
envar
and show
envar
commands to set and view environment variables.
Example 5–23 Set
envar
and Show
envar
>>> set bootdef_dev dkb0
>>> show bootdef_dev
bootdef_dev dkb0
Environment variables pass configuration information between the console and the
operating system. Their settings determine how the system powers up, boots the operating
system, and operates. Environment variables are set or changed with the
set
envar
command. Their values are viewed with the
show
envar
command. You can also create
nonvolatile environment variables with the
edit
command, as shown in Example 5–24.
Example 5–24 User-Created Environment Variable
>>> edit nvram
editing `nvram'
0 bytes read in
*10 set mopv3_boot 1
*exit
17 bytes written out to nvram
>>>
Explanation
In this example, the nvram script is edited so that an environment variable called
mopv3_boot
is created and set to 1 on each power-up. By default, MOP boots send four
MOP V4 requests before defaulting to MOP V3. This user-created environment variable
forces the SRM console to bypass MOP V4 requests. This speeds up MOP booting on
networks with MOP V3 software.
5-38
hp AlphaServer TS15 Owner's Guide