Stallion Technologiessupport
Product documentation
online documentation
 
Documetation image, 8K

EasyServer II Network Configuration

EasyConnection

EasyIO

EasyServer II

Go to Previous PageGo to Contents PageGo to Next Page

Part Two: Creating Startup Configuration Files

Contents:

The information in this section is intended for system administrators with access to privileged commands and assumes a knowledge of the TCP/IP protocol and UNIX system administration.


Creating Startup Configuration Files

A startup configuration file is a set of commands that the Communications Server downloads from the TCP/IP network and executes at power-on or when you explicitly download and execute the file with the EXECUTE command. 
If you have several Communications Servers on your network, you can save time and work by creating configuration file(s) on a remote host and downloading the file(s) to all or specific Communications Servers. 

There are three types of configuration files: standard, default, and server-specific.

1. Standard. 
Used to set up generic parameters for all your Communications Servers.

2. Default. 
Used if your Communications Server determines its Internet address from the network instead of locally (i.e., you have not defined the Internet address locally with the DEFINE INTERNET ADDRESS command or specified a startup file with the DEFINE SERVER STARTUPFILE command).

3. Server-specific. 
Used to set up configuration information specific to a single Communications Server.

Creating a Standard Configuration File

This section explains how to create a standard configuration file with generic parameters for all your Communications Servers. For example, you can use a standard configuration file to record a host table for all Communications Servers. With the host table set up, you can telnet or rlogin to remote hosts using the host's name-you don't have to remember its Internet address.

You can create a standard configuration file from a remote host or from the Communications Server.
 

Creating a Standard Configuration File from a Remote Host

To create a standard configuration file from a remote host:

Step 1.
Log in as root on the remote host where you want to store the configuration file.

Step 2. 
Change to the /tftpboot directory. 

Step 3. 
Use a text editor, such as vi or ed, to create a standard configuration file with generic parameters for all your Communications Servers. 
Enter commands the same way you would enter commands at the Communications Server prompt.  Spaces and comments are accepted. Use a pound sign (#) at the beginning of each line where you want to set off comments.

The following example shows a standard configuration file.

# System Administrator and Location of Server
   CHANGE SYSTEM CONTACT `F. Gruber'
   CHANGE SYSTEM LOCATION `Room 412, Bldg 101'

# Communications Servers Host Table
   CHANGE INTERNET HOST catnip ADDR 132.237.18.55
   CHANGE INTERNET HOST netbox ADDR 132.237.6.51

# Communications Servers Gateway
   CHANGE INTERNET GATEWAY 132.237.6.1

Step 4. 
Proceed with 'Downloading the Configuration File' later in this chapter to set up your Communications Server to automatically download the configuration file every time it's powered-on. 
 

Creating a Standard Configuration File from the Server

If you have just configured a Communications Server and you can't remember what you typed, or you don't want to retype all of the configuration commands, you can use the LIST CHANGES command to list all the changes you made to the Communications Server's permanent database and redirect that list to a file on a remote host.

To create a standard configuration file from your Communications Server:

Step 1.
Log in as root to the remote host where you want to store the configuration file.

Step 2.
Change to the /tftpboot directory. 

Step 3.
Create an empty file. This empty file will be used to capture a list of all the changes you made to the Communications Server's permanent database.  Type:

# touch filename

Where filename is the name of the standard configuration file you want to create. 

Step 4
Change the file permissions so the file is writeable by everyone. 
Type:

# chmod ugo+w filename

Where filename is the name of the standard configuration file.

Step 5. 
From your Communications Server prompt, in privileged mode, type:

Local 1>> LIST CHANGES > filename HOST hostname

Where hostname is the name of the remote host and filename is the name of the file you created in step 3. 

Step 6. 
Proceed with 'Downloading the Configuration File' later in this chapter to set up your Communications Server to automatically download the configuration file every time it's powered-on.

 

Creating a Default Configuration File

You can create a default configuration file if the Communications Server determines its Internet address from the network instead of locally (i.e., you have not defined the Internet address locally with the DEFINE INTERNET ADDRESS command or specified a startup file with the DEFINE SERVER STARTUPFILE command). If the Communications Server determines its Internet address from the network, the Communications Server attempts to find and download the default configuration file from the remote host. 

To create a default configuration file:

Step 1. 
Follow the procedure detailed in 'Creating a Standard Configuration File,' except name the default configuration file after your Communications Server's model number. 
For example, if your Communications Server is model ETS-8, name the default configuration file ETS-8.CFG. If you have more than one Communications Server model, create a default configuration file for each model. You can follow the instructions for creating a standard configuration file from either a remote host or your Communications Server.

You don't need to perform the last step of the standard configuration file procedure, which sets up your Communications Server to automatically download the configuration file every time it is powered on. If a Communications Server determines its Internet address from the network, the Communications Server automatically finds and downloads the default configuration file. 

Step 2. 
Reboot your Communications Server.

 

Creating a Server-Specific Configuration File

A server-specific configuration file is used if you want to create a special configuration for a specific Communications Server. For example, if you want to create a host table for all Communications Servers on a network, but you want only one of those servers to be set up for printers, use a standard configuration file for the host table and a server-specific configuration file for the printer configuration information. 

To set up a server-specific configuration file, create both a standard configuration file and a server-specific file. The following instructions assume you have already created a standard configuration file. 

If you haven't already created a standard configuration file, see 'Creating a Standard Configuration File' earlier in this chapter for detailed instructions. You can follow the instructions for creating a standard configuration file from either a remote host or the Communications Server.

Using Web Configuration.  
Invoke the Server's setup utility by entering its IP address in a network-connected web-browser, (i.e. http://123.456.789.001).  When the Setup front page is displayed: 

Step 1. 
Press the 'Setup' button. Specify a valid user name and password, if prompted.

Step 2. 
Select the 'Server' (general server setup) hyperlink from the main Setup screen. 

Step 3. 
Select the 'Startup Configuration Files' hyperlink from the Setup Server screen. 

Step 4. 
Specify the configuration file name and hostname. These define the location of the configuration file. 

Step 5. 
Press the Configure button when ready. The input parameters are implemented immediately. The setup program now confirms that the input has been accepted by displaying the Configuration Results screen.

Using Command Line Configuration.
To create a server-specific configuration file: 

Step 1. 
Use a text editor, such as vi or ed, to add the following special file notation to the last line of your standard configuration file: 

EXECUTE %@ HOST hostname

Where hostname is the name of the remote host where the configuration files are stored. 

When a Communications Server downloads the standard configuration file from the remote host, the %@ symbols expand to become the hexadecimal value of that Communications Server's Internet address. The hexadecimal value of that server's Internet address is used for the file name of the server-specific configuration file. When the standard configuration file is run, the special notation at the end of the file tells the remote host to execute the server-specific configuration file.
The following example shows a standard configuration file with a special file notation to execute a server-specific configuration file.

# System Administrator and Location of Server
     CHANGE SYSTEM CONTACT `D. Middleton'
     CHANGE SYSTEM LOCATION `Room 412, Bldg 101'

# Communications Servers Host Table
     CHANGE INTERNET HOST netbox ADDR 132.237.18.55
     CHANGE INTERNET HOST catnip ADDR 132.237.6.51

# Communications Servers Gateway
     CHANGE INTERNET GATEWAY 132.237.6.1

# Execute server-specific configuration files
     EXECUTE  %@ HOST catnip

Step 2. 
Use a text editor, such as vi or ed, to create a server-specific configuration file.

(a)Enter parameters the same way you would enter commands at the Communications Server prompt. Spaces and comments are accepted. Use a pound sign (#) at the beginning of each line you want to set off as a comment.

(b)Name the server-specific configuration file the hexadecimal value of the Internet address of the Communications Server that will download the file. For example, if the Communications Server that will download the file has an Internet address of 132.237.6.51, the server-specific file name would be 84ED0633. Enter only commands specific to that Communications Server. 

The following table lists the decimal numbers 0 through 255 and their hexadecimal equivalents.

Table 4-1 Decimal to Hexadecimal Conversion

Dec Hex Dec Hex Dec Hex Dec Hex Dec Hex Dec Hex Dec Hex Dec Hex
0 00 32 20 64 40 96 60 128 80 160 A0 192 C0 224 E0
1 01 33 21 65 41 97 61 129 81 161 A1 193 C1 225 E1
2 02 34 22 66 42 98 62 130 82 162 A2 194 C2 226 E2
3 03 35 23 67 43 99 63 131 83 163 A3 195 C3 227 E3
4 04 36 24 68 44 100 64 132 84 164 A4 196 C4 228 E4
5 05 37 25 69 45 101 65 133 85 165 A5 197 C5 229 E5
6 06 38 26 70 46 102 66 134 86 166 A6 198 C6 230 E6
7 07 39 27 71 47 103 67 135 87 167 A7 199 C7 231 E7
8 08 40 28 72 48 104 68 134 88 168 A8 200 C8 232 E8
9 09 41 29 73 49 105 69 135 89 169 A9 201 C9 233 E9
10 0A 42 2A 74 4A 106 6A 138 8A 170 AA 202 CA 234 EA
11 0B 43 2B 75 4B 107 6B 139 8B 171 AB 203 CB 235 EB
12 0C 44 2C 76 4C 108 6C 140 8C 172 AC 204 CC 236 EC
13 0D 45 2D 77 4D 109 6D 141 8D 173 AD 205 CD 237 ED
14 0E 46 2E 78 4E 110 6E 142 8E 174 AE 206 CE 238 EE
15 0F 47 2F 79 4F 111 6F 143 8F 175 AF 207 CF 239 EF
16 10 48 30 80 50 112 70 144 90 176 B0 208 D0 240 F0
17 11 49 31 81 51 113 71 145 91 177 B1 209 D1 241 F1
18 12 50 32 82 52 114 72 146 92 178 B2 210 D2 242 F2
19 13 51 33 83 53 115 73 147 93 179 B3 211 D3 243 F3
20 14 52 34 84 54 116 74 148 94 180 B4 212 D4 244 F4
21 15 53 35 85 55 117 75 149 95 181 B5 213 D5 245 F5
22 16 54 36 86 56 118 76 150 96 182 B6 214 D6 246 F6
23 17 55 37 87 57 119 77 151 97 183 B7 215 D7 247 F7
24 18 56 38 88 58 120 78 152 98 184 B8 216 D8 248 F8
25 19 57 39 89 59 121 79 153 99 185 B9 217 D9 249 F9
26 1A 58 3A 90 5A 122 7A 154 9A 186 BA 218 DA 250 FA
27 1B 59 3B 91 5B 123 7B 155 9B 187 BB 219 DB 251 FB
28 1C 60 3C 92 5C 124 7C 156 9C 188 BC 220 DC 252 FC
29 1D 61 3D 93 5D 125 7D 157 9D 189 BD 221 DD 253 FD
30 1E 62 3E 94 5E 126 7E 158 9E 190 BE 222 DE 254 FE
31 1F 63 3F 95 5F 127 7F 159 9F 191 BF 223 DF 255 FF

The following example shows a server-specific configuration file.

# Telnet Listener Settings for a Printer:
        CHANGE TELNET LISTENER 2008 PORTS 8 ENABLED
        CHANGE TELNET LISTENER 2008 IDENTIFICATION `HP
        Laser Jet II'
        CHANGE TELNET LISTENER 2008 CONNECTIONS ENABLED  

# Port settings for printer:
        CHANGE PORT 8 ACCESS REMOTE
        CHANGE PORT 8 TELNET SERVER NEWLINE FROM 
        TERMINAL <LF>
        CHANGE PORT 8 TELNET SERVER NEWLINE FROM HOST 
        <CRLF> 
 

Downloading the Configuration File 

After you have created a standard configuration file, specify that the Communications Server download the file. If you also created a server-specific file, the standard configuration file, with a special file notation, calls for the server-specific configuration file.

For a Communications Server to automatically download the configuration file(s) you created, make sure Trivial File Transfer Protocol (TFTP) is enabled on the remote host. Then, from each Communications Server, specify the standard configuration file and remote host from which the Communications Server will download the standard configuration file.

Note: TFTP is a program (in UNIX & Windows NT) that allows the transfer of files from one machine to another. Refer to your UNIX or NT manual page for more information.

Step 1.Verify that TFTP is enabled.

(a) Change to the /etc directory. 

(b) Open the inetd.conf file. 

(c) Search through the inetd.conf file until you find the tftp entry. (You might have two or more tftp entries.) 

(d) Make sure there is only one tftp entry enabled (without a pound symbol [#] at the beginning of the line). The following example shows the tftp -s entry enabled (-s stands for secure mode).

tftp     dgram     udp     wait     root     /etc/tftpd     tftpd  -s 

# tftp     dgram     udp     wait     root     /etc/tftpd     tftpd 

Step 2. Test that TFTP is working properly. 

(a) Change to the /tmp directory.

(b) Use TFTP to copy the standard configuration file to the /tmp directory. Type:

# tftp localhost 

Note: This example assumes you have a localhost entry in your /etc/hosts file for testing purposes. Refer to your UNIX documentation for more information.
The following prompt appears:

 tftp> 

Type: 

 get filename 

Where filename is the name of the standard configuration file you created in the /tftpboot directory. 

Then press <Ctrl> D, and type:

 # ls 

The filename appears in the list of filenames, which appear on your screen.

Step 3. From your Communications Server prompt, specify the standard configuration file you want to download to that server. In privileged mode, type:

Local 1>> CHANGE SERVER STARTUPFILE filename HOST hostname

Where filename is the name of the standard configuration file, and hostname is the name or Internet address of the remote host where the file is stored.

Step 4. Download the configuration file. To download the configuration file, you can reboot the Communications Server or load it manually. 
To reboot the Communications Server, in privileged mode, type:

Local 1>> REBOOT 

To manually load the configuration file, in privileged mode type:

Local 1>> EXECUTE filename HOST hostname 

Where filename is the name of the standard configuration file, and hostname is the name or Internet address of the remote host where the file is stored. 

Step 5. Repeat steps 3 and 4 on each additional Communications Server that you want to download the configuration file.
 

Go to Top
Go to Top of Page

Go to Previous PageGo to Contents PageGo to Next Page

Copyright © 2007 Lantronix. All rights reserved