Chapter 37 Maintenance

37.8 FTP Command Line

This section shows some examples of uploading to or downloading files from the Switch using FTP commands. First, understand the filename conventions.

37.8.1 Filename Conventions

The configuration file (also known as the romfile or ROM) contains the factory default settings in the screens such as password, Switch setup, IP Setup, and so on. Once you have customized the Switch’s settings, they can be saved back to your computer under a filename of your choosing.

ZyNOS (ZyXEL Network Operating System sometimes referred to as the “ras” file) is the system firmware and has a “bin” filename extension.

Table 117 Filename Conventions
FILE TYPEINTERNALEXTERNAL

DESCRIPTION

NAME

NAME

 

 

Configuration File

config

*.cfg

This is the configuration filename on the Switch.

 

 

 

Uploading the config file replaces the specified

 

 

 

configuration file system, including your Switch

 

 

 

configurations, system-related data (including the

 

 

 

default password), the error log and the trace log.

 

 

 

 

Firmware

ras-0

*.bin

This is the generic name for the ZyNOS firmware on

 

ras-1

 

the Switch. ras-0is image 1; ras-1is image 2.

 

 

 

 

 

 

 

You can store up to two images, or firmware files of the same device model, on the Switch. Only one image is used at a time.

Run the boot image <12> command to specify which image is updated when firmware is loaded using the web configurator and to specify which image is loaded when the Switch starts up.

You can also use FTP commands to upload firmware to any image.

The Switch supports dual firmware images, ras-0and ras-1. You can switch from one to the other by using the boot image <index> command, where <index> is 1 (ras-0) or 2 (ras-1). See the CLI Reference Guide for more information about using commands. The system does not reboot after it switches from one image to the other.

37.8.1.1 Example FTP Commands

ftp> put firmware.bin ras-0

This is a sample FTP session showing the transfer of the computer file "firmware.bin" to the Switch.

ftp> get config config.cfg

This is a sample FTP session saving the current configuration to a file called “config.cfg” on your computer.

If your (T)FTP client does not allow you to have a destination filename different than the source, you will need to rename them as the Switch only recognizes “config”, “ras-0”, and “ras-1”. Be sure you keep unaltered copies of all files for later use.

 

287

MES3500-24/24F User’s Guide