How To Put Or Restore A Configuration Files

Issue:
Describes the technique to retrieve or restore the config files for IOPRINT+ , JSxxxx ,CS9000 , Lanstream , IOLAN+ or any P-series Router.

Solution:

The solutions described below all require that a TFTP server and client be available except for the IOPRINT which requires FTP.

Some suitable TFTP server applications are available for WIN 95/98 and W2K platforms. Numerous applications can be found on the Internet such as a TFTP application is called "pumpkin".

The various UNIX and LINUX distributions also provide a TFTP daemon application which can be enabled by modifying the "/etc/inetd.conf" file or in the case of the LINUX 2.4 Kernel release "/etc/xinetd.d/tftp" (refer to the man pages for details).

If your Unix OS uses inetd then by removing the comment from line within the inetd.conf file refering to the TFTP daemon then ending and re-starting the inetd process will activate the tftp daemon on unix based systems.

Note: Typically the working directory for a tftp server is "/etc/tftpboot" on UNIX based systems and may also be configured for secure mode. It may be assigned differently on Windows platforms. The subject files should be placed in that directory.

When transfering files to a Unix host you must ensure that a file is created on the host. Create a file under Unix with zero contents and change permissions on the file (this is not required on Windows OS's).

For example,
# touch /tftpboot/iolan.cfg
# chmod 777 /tftpboot/iolan.cfg

IOLAN+ :

Saving configuration to TFTP server.

In the IOLAN Server configuration screen: 

Boot host enter the IP address of the TFTP server.
Init file enter a name for the iolan configuration file and make sure that it ends with a .cfg extension. It will be saved to the TFTP server using this name into the TFTP root directory.
Save & exit the Server menu, then go the command line (CLI) of the IOLAN+. 

At the Iolan+ prompt, type" su
At the Password prompt, type: iolan (if you are using the default)
At the ADMIN prompt, type: save config

Note:
You should expect to see the following message as the configuration file is successfully uploaded to your computer:
IOLAN: Uploading initialisation file: iolan.cfg
Sent 12K in 1 seconds (average 12K/sec). Cksum:0
IOLAN - 904 - Image load complete

4. Lastly, remove the Boot host IP address and Init file entry from your Iolan+. Save & exit.

How to load the config file back to the IOLAN+

In the Server configuration parameters menu of the Iolan+, specify the Boot Host IP address and Init file (see above for details).
Save and exit.
Reboot the IOLAN. The Iolan+ will download the config file from the Host and file path specified in the Server parameters menu.
The Iolan will display TFTP transfer messages out of Port 1 by default during the boot sequence. After a succesfull transfer the Iolan+ will deleted the Init File name in the Server configuration.

JSxxx, CS9000, Lanstream :

Ensure that the tftp server is defined in the host table. This can be done from a command line by issuing the command
add host [hostname] [ip-address].
Where hostname is a friendly name you wish to call your TFTP server and ip-address is the IP address of the TFTP server.

Saving configuration to TFTP server.

Issue the netsave command
netsave configuration [hostname] /[config-file-name]

Loading the configuration into the Jetstream

netload configuration [hostname] /[config-file-name]

Note: progress and error messages will only be viewable from the Admin port.
Refer to the manual under System Administration and CLI commands "netsave" and "netload".

IOPRINT+:

The config file can be loaded or retreived to the unit using an FTP connection.

Saving configuration to an FTP client

Issue the command "FTP ioprint-ip-address".
When prompted for a user-id type the unit name that is printed on the label.
When prompted for a password press enter.

To retrieve the config file type "get config.txt" .

Loading configuration

To load a config type "put config.txt".

P-series Routers:

To "get" (retrieve) the configuration file from your Router, do the following:

Log into the Router.
From the Main menu, select Configuration, Access Set-up, TFTP access [enabled]
Next start your TFTP Client software on your computer.
The following options may or may not appear exactly as shown in your TFTP Client software:
For the Remote File: enter config.txt in lower case characters.
For the Remote Host: enter the LAN IP address of your Router.
For the Mode: select Ascii.
For the Local Directory: indicate where you would like the config.txt file to be saved on your computer.
To get the config.txt file from the Router, click the get or retrieve option.

To "put" (send) the configuration file to the Router, do the following:

Make sure to enable TFTP access in your Router. From the Main menu, select Configuration,
Access Set-up, TFTP access [enabled]
Start the TFTP Client software.
The following options may or may not appear exactly as shown in your TFTP Client software:
For the Remote File: leave it blank.
For the Remote Host: enter the LAN IP address of your Router.
For the Mode: select Ascii.
For the Local Directory: indicate where your config.txt file is located on your computer.
To put the config.txt file back to the Router, click the put or send button of your TFTP Client software.

Related Links:
1.)  http://www.tucows.com


Article ID:
79
Published:
1/17/2003 10:41:39 AM
Last Modified:
10/25/2004 10:25:45 AM
Issue Type:
Configuration