Built-in environment variables

The built-in environment variables listed below are used with the set, unset, and di commands.

batchfile

Set the batchfile environment variable to the name of a command file to execute at boot. The value should be the name of a file that can be found in the path specified by batchpath, or a fully-qualified ftp or tftp URL. File URLs can take the following forms:

  tftp://server[:port]/path/file
  
  
  ftp://[username[:password]@]server/path/file
  
  

Syntax

  set batchfile=file_name
  
  

Examples

set batchfile=setup.nrsh (requires batchpath to be set)
set batchfile=tftp://128.9.1.2/home/joe/setup.nrsh
set batchfile=ftp://128.9.1.2/pub/setup.nrsh
set batchfile=ftp://joe:joespw@128.9.1.2/home/joe/setup.nrsh

batchpath

Set the batchpath environment variable to a default path to use for batch files. The value should be an ftp or tftp URL pointing to a directory containing command files. Directory URLs can take the following forms:

  tftp://server[:port]/path/
  
  ftp://[username[:password]@]server/path/
  
  

Syntax

  set batchpath=path
  
  

Examples

set batchpath=tftp://128.9.1.2/home/joe/
set batchpath=ftp://128.9.1.2/pub/
set batchpath=ftp://joe:joespw@128.9.1.2/home/joe/

env_protect

Set the env_protect environment variable to prevent changes to settings in flash. When set to on, settings can be changed, but they will not be stored to flash. The changes will be lost when the Ethernet TAP probe is reset. Set to on to preserve current settings in flash. When set to off, changes will be stored to flash and will persist when the Ethernet TAP probe is reset.

Syntax

  set env_protect=[on|off]
  
  

username

Set the username environment variable to a user name which must be entered when logging in via telnet.

Syntax

  set username=name