Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
ARM network protocols command-line interface reference guide.Ver 1.6.pdf
Скачиваний:
29
Добавлен:
23.08.2013
Размер:
1.61 Mб
Скачать

General Commands

2.1General commands

The general commands in this section are:

help (or ?) on page 2-2

state on page 2-4

quit on page 2-4

history on page 2-5

obey on page 2-6

logfile on page 2-7

sleep on page 2-8

setip on page 2-8

version on page 2-9

! on page 2-9.

2.1.1help (or ?)

The help (or ?) command lists all the other commands.

Syntax

help commandlist

where:

 

 

commandlist

Is an optional parameter that can take the following settings:

 

general

Displays the most commonly used

 

 

commands.

 

diagnostic

Displays the commands used for reporting

 

 

statistics.

 

module_name

Displays the appropriate command set for

the named module. For example, help ping displays the commands for ping.

If this parameter is omitted, the general commands are listed.

The value of commandlist can be abbreviated when the meaning is unambiguous.

2-2

Copyright © 2000-2001 ARM Limited. All rights reserved.

ARM DUI 0145B

General Commands

Example

INET> help general commands:

help

-

help with menus

state

-

show current station setup

uesend

-

open UDP echo client, send UDP echo packet

uesinit

-

start UDP echo server

uechalt

-

close UDP echo client

ueshalt

-

close UDP echo server

uestats

-

UDP echo statistics

tesend

-

open TCP echo client, send TCP echo packet

tesinit

-

start TCP echo server

teshalt

-

close TCP echo server

techalt

-

close TCP echo client

testats

-

TCP echo statistics

quit

-

quit station program

nvset

-

set non-volatile parameters

history

-

show history

obey

-

run commands from a script

logfile

-

log output to a file

sleep

-

sleep for a while

setip

-

set interface IP address

version

-

display version information

!command -

pass command to OS shell

Also try 'help

[general|diagnostic|ping|test]'

INET> _

 

 

The Also try line at the bottom of the Help menu lists the other modules that are installed and for which diagnostic help is available.

ARM DUI 0145B

Copyright © 2000-2001 ARM Limited. All rights reserved.

2-3

General Commands

2.1.2state

The state command displays the current state information, interfaces, and default settings.

Syntax state

Example

INET> state

Station IP address for iface 0: 192.9.200.1 Station IP address for iface 1: 127.0.0.1 Active remote host 127.0.0.1

Community string "public" Object Id: 1.3.6.1.2.1.1.3.0 retry/ping delay time: 1008 ms.

session open to 127.0.0.1, ports: local-1205, remote-161(snmp) session->timeout: 6 ticks. (tick is 1/18th sec)

No MIBs loaded from numbers files INET> _

2.1.3quit

The quit command quits from the station program.

Syntax

quit

Usage

The quit command causes the application to do a clean exit.

2-4

Copyright © 2000-2001 ARM Limited. All rights reserved.

ARM DUI 0145B

General Commands

2.1.4history

The history command displays a list of the last commands to be entered, together with the total number of commands in the list.

Syntax

history

Example

INET> history Command history:

help history

2 entries. INET> _

Usage

In the Menus demonstration program, the maximum number of commands that can be displayed is defined by MENU_HISTORY in ipport.h. If MENU_HISTORY is undefined, the history command is no longer listed in the help and is not available for use.

ARM DUI 0145B

Copyright © 2000-2001 ARM Limited. All rights reserved.

2-5