beautypg.com

Confi gure > command mappings 4.16 – Westermo MR Series User Manual

Page 67

background image

67

6622-3201

Web Interface and Command Line Reference Guide

www.westermo.com

Confi gure > Command Mappings

4.16

It is possible to specify a small number of command “aliases” on your unit. This allows you to specify
substitute strings for text commands entered at the command line.

Using the Web Page(s)

The Configure > Command Mappings page contains a table that allows you to specify up to four
ali ases for commands entered at the command prompt. Each table entry has the following fields:

Command to Map:

This column specifies the command that you want substituted.

Command Mapping:

This column specifies the corresponding replacement command.

Using Text Commands

From the command line, use the cmd command to configure or display the command mappings. To
display the current command mappings enter the following commands:

cmd cmdmapo ?

cmd cmdmapi ?

where is the table entry number, i.e. 0 to 3. The cmdmapi parameter shows the command to
be substituted, and the cmdmapo parameter shows the replacement command.

To change a command mapping use the following commands:

cmd cmdmapo

cmd cmdmapi

Note:
If either string contains blank characters you must enclose it with double quotes. When substi-
tuting a command, upper case characters are considered the same as the corresponding lower
case characters.

For example, to substitute the command “type ana.text” with “tana”, use the commands:

cmd 0 cmdmapo “type ana.txt”

cmd 0 cmdmapi tana

After you have done this, typing “tana” at the command line will have the same effect as typing
“type ana.txt”.

This manual is related to the following products: