|
There are several generic/global parameters that affect all of the scripts. These generic parameters are kept in the setup.var file. For Unix/Linux installations, the setup.var file is located in the net-scripts directory under each user’s home directory (i.e. $HOME/net-scripts/setup.var). For MS Windows, the file location varies depending the OS version. Listed here.
Changing the default values is optional. The table below outlines these parameters .
Parameter
|
Description
|
SCRIPT_HOME
|
The directory where the user runs the scripts from. For Unix/Linux, this must be changed from the default and is discussed in Section 3.2.2. For MS Windows, does not need to be changed if the default installation directory was accepted. Can also be viewed using the GUI (Options->Settings)
|
log_user
|
This controls whether the script displays the complete output to the screen as it accesses each router/device. The value can be 0 or 1. A 1 will show the output and a 0 will hide the output. If you are using the GUI and running an X Window session to remotely access the Automater, it’s recommended the value be set to 0 for performance optimization. Also note, this parameter does not have the keyword “set” preceding it. Can also be changed using the GUI (Options->Settings->Verbose Log Display)
Default: 1
|
timeout
|
The amount of time (in seconds) the script will “wait” for an expected output. If it does not receive the expected output within the time frame, an error is logged. For example, when a script attempts to telnet into a router but does not get the password or login prompt within a certain amount of seconds (i.e, the timeout value), an error is logged. Can also be changed using the GUI (Options->Settings->Expect Timeout)
Default: 12 seconds
|
DELAY_INTERVAL
|
The delay (in seconds) between telneting to different routers. The default is zero (no delay) but you may want to set this to a higher value is you would like to “slow things down” or try to read/watch the display as the script is running. Can also be changed using the GUI (Options->Settings->Delay Between Telnets)
Default: 0 seconds
|
CUSTOM_LOGIN_PROMPT
|
This variable is actually commented out and should only be uncommented and set if you have a custom login prompt for your routers. For example, the default login prompt when using TACACS is “Username:” but this can be customized by the network administrator. If a username is required for access but the prompt for the username is not “Username:”, then uncomment out this variable and set the appropriate login prompt.
Default: Variable is commented out
|
CUSTOM_PASSWORD_PROMPT
|
This variable is actually commented out and should only be uncommented and set if you have a custom password prompt for your routers. For example, the default password prompt when using TACACS is “Password:” but this can be customized by the network administrator. If the default password prompt has been changed, then uncomment out this variable and set the appropriate password prompt.
Default: Variable is commented out
|
EDITOR
|
This is the program used when the “Text Editor” button is pressed on the GUI. Each OS has a different default value. The setup_template.var file lists more choices to use.
Defaulst:
Linux: gedit
Solaris: dtpad
Windows: notepad
|
|