beautypg.com

Westermo MR Series User Manual

Page 366

background image

366

6622-3201

Web Interface and Command Line Reference Guide

www.westermo.com

Example 2:
To copy a file called “image” from the main flash memory onto the USB device, you would enter the
command:

copy image u:image

To copy a file called “Logcodes.TXT” from the USB device to the main flash memory, you would
enter the command:

copy u:Logcodes.TXT Logcodes.TXT or on firmware version 4912 or

later just typing “copy u:logcodes” will have the same effect, i.e.

no need to specify the destination.

Using USB devices to upgrade fi rmware

7.3.4

Functionality available from firmware version 4891 onwards.

The firmware of a Westermo can be upgraded using the USB storage device. To do this procedure,
using the information given above, a simple batch file called pb2.bat should created and the relevant
files placed into the root directory of the USB storage device. Then, when the USB device is insert-
ed into the Westermo and the reset button is pressed twice, the upgrade is performed.

ERROR_EXIT

del *.web

copy u:sbios1 sbios1

copy u:logcodes.txt logcodes.txt

copy u:image image

copy u:image4.c3 image4.c3

copy u:Y4890wVS.web Y4890wVS.web

move sbios1 sbios

scanr

flashleds

When the LEDs on the Westermo start flashing, the upgrade is complete and the Westermo must
be rebooted for the new firmware to be activated.

Using USB devices with .all fi les

7.3.5

Functionality available from firmware version 4910 onwards.

A .all file is a special file that contains all of the firmware and configuration files in a single file that
has the file extension .all and is an exact copy of the Westermo router in its current state. This .all
file can then be applied to another Westermo router, as long as it is the same model.

To extract a .all file use the Westermo Flash Writer software.

Copy the .all file to a USB storage device and insert the device into the Westermo router. Issue the
command “dir u:” to confirm the Westermo can access the USB device. To copy the .all file onto the
Westermo router, from the command line enter “copy u:MR-200.all t.all” (replacing mr4110.all with
the correct .all file name and the t.all destination name can be anything). Please note that the source
file (MR-200.all in this example) must adhere to the 8.3 filename convention (due to limits of the
FAT file system) or the process will fail.

USB Security

7.3.6

In order to prevent unauthorised access to a Westermo unit using a USB storage device (e.g. insert-
ing a USB storage device with an autoexec.bat file designed to copy usernames and passwords,
etc.) theusbcon command can be used to define an access key. If the .bat file does not contain the
matching key, it will not be allowed to execute. The put parameter of the uflash command is used to
encode the key onto the file.

This manual is related to the following products: