This document and the software programs to
which it relates are furnished under license and
may only be used in accordance with the terms
and conditions set forth in the license
agreement. This document is provided for
information only and is subject to change
without notice. Virata Corporation assumes no
responsibility or liability for any errors or
inaccuracies that may appear in the document,
and specifically disclaims any implied
warranties of merchantability, fitness for a
particular purpose, and non-infringement.
Except as permitted by such license, no part of
this document may be copied, reproduced,
stored in a retrieval system, or transmitted by
any means, electronic, mechanical, recording or
otherwise, or used as the basis for manufacture
or sale of any items without the prior written
consent of Virata Corporation.
Virata® is a registered trademark of Virata
Corporation.
All other names are for reference only and are
the property of their respective owners.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)vii
Contents
10. TCP/IP Console commands 151
10.1 Summary 152
10.2 abort 155
10.3 arp 156
10.4 arprouting 158
10.5 autoloop 159
10.6 config 160
10.7 device 162
10.8 disable 166
10.9 enable 167
10.10 errors 168
10.11 etherfiles 169
10.12 files 170
10.13 flush 171
10.14 get 172
10.15 help 173
10.16 ipatm abort 174
10.17 ipatm arp 175
10.18 ipatm arpserver 176
10.19 ipatm files 177
10.20 ipatm help 178
10.21 ipatm lifetime 179
10.22 ipatm pvc 180
10.23 iphostname 182
10.24 nat 183
10.25 noerrors 184
10.26 norelay 185
10.27 ping 186
10.28 portname 187
10.29 protocols 189
10.30 relay 190
10.31 restart 192
10.32 rip accept 193
10.33 rip allowed 194
10.34 rip boot 195
10.35 rip help 196
10.36 rip hostroutes 197
10.37 rip killrelay 198
10.38 rip poison 199
10.39 rip relay 200
viiiATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
10.40 rip relays 201
10.41 rip rxstatus 202
10.42 rip send 203
10.43 rip trigger 204
10.44 route 205
10.45 routeflush 207
10.46 routes 208
10.47 snmp 209
10.48 stats 210
10.49 subnet 211
10.50 trace 213
10.51 untrace 215
10.52 uptime 216
10.53 version 217
10.54 ? 218
11. TFTP Console commands 219
11.1 connect 220
11.2 get 221
11.3 help 222
11.4 init 223
11.5 list 224
11.6 put 225
11.7 trace 226
11.8 version 227
Contents
Index 229
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)ix
Contents
xATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
1.About this Guide
This chapter tells you about:
•The scope of this guide and its intended
audience.
•The typographical conventions used in this
guide.
•How to read and provide feedback about this
guide.
The information contained in this guide must be
read and fully understood, before you attempt to
use the product.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)1
Introduction
1.1Introduction
This document is a reference guide for binary developers working with Release 7.0 and later of ATMOS. It describes the command line
interface (CLI) for the most commonly used software components; the
IP stack, the Bridge, BUN, NAT, DHCP, PPP and TFTP interfaces.
1.2Scope
This document describes the syntax and options for each console
command and provides some simple examples of the use of the
command. But this document does not provide extensive examples of
how to configure the software. For examples, see the example network
configurations chapter of the software user’s guide for your hardware
platform.
1.3Audience
This document is targeted at binary licensees evaluating or developing
ATMOS-based systems.
1.4Related Documents
For an overview of the features included in ISOS 7.1 software release,
see:
for details of how to use the ISOS System Builder, see:
•ISOS System Builder User’s Guide: DO-007979-TC
2ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
1.5Typographical conventions
Throughout this guide, the following typographical conventions are
used to denote important information.
1.5.1Text conventions
The following text conventions are used:
•Text like this is used to introduce a new term, to indicate menu
options or to denote field and button names in GUI windows and
dialogue boxes.
•Tex t li k e thi s is used to emphasize important points. For example:
‘To keep your changes, you must save your work before quitting.’
•Text like this is used for text that you type as a command or
entry to a field in a dialogue box. Variables to a command are shown
in text like this.
•Text like this is used for text that you see on the screen in a
terminal window. Variables to displayed text are shown in text like this.
•<Text like this> in angle brackets is used for denoting
command line options. It indicates a mandatory argument.
•[Text like this] in square brackets is used for denoting
command line options. It indicates an optional argument.
•Text in square brackets is used to indicate keyboard keys. For
example:
‘To reboot your computer, press [Ctrl]+[Alt]+[Del].’
•Type versus Enter; Type means type the text as shown in the
instruction. Enter means type the text as indicated and then press
[Enter].
About this Guide
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)3
Reading this guide
1.5.2Notes, Warnings and Cautions
The following symbols are used:
Warning - Indicates a hazard which may endanger equipment
or personnel if the safety instruction is not observed.
Caution - Indicates a hazard which may cause damage to
equipment if the safety instruction is not observed.
Note - Indicates general additional information about the
operation of the equipment including safety information.
1.6Reading this guide
1.6.1Providing feedback on this guide
Please report problems and questions via the Problem Reports area on
the Virata licensee web server at:
http://ls.virata.com
.
When submitting feedback, please give the full title, part number and
version number of the guide.
1.6.2Reading this guide
Although this guide can be printed for easy reference, it has been
prepared for viewing online through a web browser, (such as Internet
Explorer™ or NetScape Navigator™) or Adobe Acrobat™.
Links to other sections of this guide or to other guides are marked in
blue (although the links are black when printed on a standard laser
printer.) Click on the link to view the associated section or document.
4ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
2.ATMOS Console
commands
This chapter describes the ATMOS Console
commands.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)5
General notes
2.1General notes
Example output is shown only to clarify the description of the
commands; the actual output is not necessarily in exactly the same
format.
6ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
2.2event …
2.2.1Syntax
2.2.2Description
ATMOS Console commands
event help
event n[ext]
event p[revious]
event r[ecent]
event show
event unshow
The command event show enables display of background output on this
console device.
The command event unshow disables it. By default, the display of
background output is disabled.
The command event recent (or event r) displays the most recent
background output stored in the memory buffer; event previous (or event p) displays the background output immediately preceding that last
displayed; event next (or event n) displays the background output
immediately following that last displayed. Up to 24 lines are displayed
in each case.
For example, after event r, event n will show only new background
output that has arrived since the event r command: repeated typing of
event n will let the user keep up to date with new background output
(without any repetitions in the output).
The command event help displays a summary of the options of the event
command.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)7
restart
2.3restart
2.3.1Syntax
2.3.2Description
2.3.3See also
restart
Reboots the ATMOS system.
The reboot will cause the loss of any configuration which has not yet
been saved (using the config save command).
tell <process> …
on page 19
.
8ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
2.4uptime
2.4.1Syntax
2.4.2Description
2.4.3See also
ATMOS Console commands
uptime
Displays the time for which the system has been ‘up’, ie. the time since
the system has been powered up or restarted (using the restart
command).
on page 8
restart
.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)9
version
2.5version
2.5.1Syntax
2.5.2Description
version
Displays the system type and version.
10ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
2.6<process>, <process> <command>
2.6.1Syntax
<process> <command>
<process>
home
home <command>
2.6.2Description
In these commands, <process> can be any of a list of process names
known to the console.
The former variant sends the command as a TELL message to the
process.
The latter variant remembers the process name, and sends subsequent
commands as TELL messages to the process, as if they had been
preceded by the process name, until the command home is issued. The
prompt is changed to reflect this; moreover, if a help command with no
arguments is issued, it is passed to the process as usual, but then
information about the home command is appended to the process’s
output by the console.
ATMOS Console commands
2.6.3Example
prompt>isfs version
ISFS v2.07
prompt>isfs
prompt isfs> version
ISFS v2.07
prompt isfs> help
ISFS commands are:
help - this text is displayed
ls - list ISFS files
rm <file> - remove file from ISFS
cat <file> - show file contents
version - displays version number
Use “home” to return to “prompt>”
prompt isfs> home
prompt>
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)11
<process>, <process> <command>
When the console is at the prompt of a particular process, the command
home <command> or home <process> <command> may be used to
execute a command as if the user had typed home followed by
<command> or <process> <command>. However, the console will
remain at the same process prompt.
The command home <process> will change the prompt from the current
process to a new process <process>.
2.6.4Example
prompt> bridge
prompt bridge> version
Bridge Version 1.15
prompt bridge> home version
Ethernet Gateway Version 7.0.0.7 (2 Jun 2000)
prompt bridge> home nat version
NAT Version 2.02
prompt bridge> home edd
prompt edd> version
EDD Version 1.03
prompt edd> home
prompt>
2.6.5See also
tell <process> …
on page 19
.
12ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
2.7. (history mechanism)
2.7.1Syntax
.
2.7.2Description
Repeats the previous console command.
2.7.3Example
prompt> isfs version
ISFS v2.07
prompt> .
ISFS v2.07
ATMOS Console commands
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)13
@ commands
2.8@ commands
2.8.1Syntax
@@<line>
@ <line>
@<process> <line>
@<process>
2.8.2Description
Lines beginning with the @ character are intercepted by the console
even when the console device is bound to a file handle.
To bypass this interception and pass a line beginning with @ to a
process, the @ must be doubled; the line with one @ removed will be
passed on like a normal input line.
If the @ is followed by a space (or any non-alphanumeric character), the
remainder of the line is treated as a console command, as if the device
were not bound.
The @<process> <line> form passes <line> to a file (if any) opened
for reading by the named process.
The @<process> form binds the console device to the named process,
in the same way as bind <process>. (Except that the latter, not being an
@ command, will not work if the console device is bound. More
generally, @<process> does the same as @bind <process>.)
2.8.3Example
prompt> @ip
(The ip> prompt does not appear until the Enter key is pressed again.)
ip> device
# type dev fileIP address
device etherether //edd mtu 1500192.168.3.55
ip> @console
prompt>
14ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
2.8.4See also
ATMOS Console commands
bind <process>, unbind
on page 23
.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)15
Special-purpose commands
2.9Special-purpose commands
This section lists commands that are normally useful only to developers
rather than to normal users, or else are retained only for consistency
with older versions of the software. They are not described in the output
of the help command.
16ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
2.10list
2.10.1 Syntax
list
2.10.2 Description
The list command lists the active console devices (referred to as
threads) and files.
For each console device, if it is bound to a file then the list shows which
file it is bound to; if background output is enabled on that device (see
event …
on page 7) then the list indicates the fact.
For each file, the list shows the name of the process that opened the file
and the number of read commands outstanding on the file. If the file is
bound to a device then the list shows which device it is bound to; if the
file is for foreground output then the list indicates the fact (with the
string FG).
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)19
exit, exit!
2.13exit, exit!
2.13.1 Syntax
2.13.2 Description
exit
exit!
Exits from ATMOS to the boot ROM. Without the exclamation mark,
the command works only from the serial interface; with the exclamation
mark it works from any console device.
Note - This command is now deprecated and provides no useful
output.
20ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
2.14debug
2.14.1 Syntax
2.14.2 Description
ATMOS Console commands
debug
Enters the ATMOS debugger. Only works when issued at the serial
interface. (Since the ATMOS debugger talks to the serial interface, the
debug command would be of little use elsewhere.)
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)21
crlf, nocrlf
2.15crlf, nocrlf
2.15.1 Syntax
2.15.2 Description
crlf
nocrlf
Controls whether line-feed characters written to this console device are
output as carriage-return/line-feed pairs (crlf) or just as single line-feed
characters (nocrlf).
22ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
2.16bind <process>, unbind
2.16.1 Syntax
bind <process>
unbind
2.16.2 Description
The former command binds this console device to the specified process
– that is, binds this device to the file, if any, opened for read by that
process, and binds every file opened by the process to this device.
The latter command unbinds this console device – that is, undoes the
above bindings.
2.16.3 Example
prompt> bind ip
ip> @ unbind
prompt>
ATMOS Console commands
2.16.4 See also
@ commands
on page 14.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)23
buildid
2.17buildid
2.17.1 Syntax
2.17.2 Description
2.17.3 Example
buildid
This command displays the build ID - a unique identifier for the image
that you have built. If you need to contact the Virata Technical Advice
Center regarding this build, you must give them the correct build ID.
prompt> buildid
Build ID: BOGDOV-DZWEUQ-FYDGEH
24ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
3. Chips Process Console
commands
This chapter describes the ATMOS Console
commands for the chips process.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)25
cpu
3.1cpu
3.1.1Syntax
cpu
3.1.2Description
Displays the recent CPU utilization as a percentage. This is a fairly
crude measurement: the ATMOS kernel measures the time that the CPU
spends in the idle loop over successive three-second intervals, and the
cpu command uses this measurement from the most recent complete
three-second interval.
26ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
3.2debug
3.2.1Syntax
3.2.2Description
Chips Process Console commands
debug
Enters the ATMOS debugger.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)27
exit
3.3exit
3.3.1Syntax
exit
3.3.2Description
Exits from ATMOS to the boot ROM.
Note - This command is now deprecated and provides no useful
output.
28ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
3.4help
Chips Process Console commands
3.4.1Syntax
help
?
help <command>
3.4.2Description
The help command lists all chips commands. ? is a synonym for this
command;
help <command> displays more detailed help on the specified
command.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)29
info
3.5info
3.5.1Syntax
info
3.5.2Description
Displays some system type information, version number, and the MAC
addresses.
3.5.3Example
> info
word at 0x001C4B54 contains 0x0000337E
30ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
3.6mem
3.6.1Syntax
3.6.2Description
Chips Process Console commands
mem
Displays a summary of how much memory is used by each ATMOS
process (distinguishing between heap and thread stacks, along with
some other minor categories), along with the amount of free heap
memory and the size of the largest single free block.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)31
rb, rh, rw, wb, wh, ww
3.7rb, rh, rw, wb, wh, ww
3.7.1Syntax
rb <addr>
rh <addr>
rw <addr>
wb <addr> <val>
wh <addr> <val>
ww <addr> <val>
3.7.2Description
Reads the byte (rb), word (rw) or half-word (rh) at a specified address,
or writes a specified value to the byte (wb), word (ww) or half-word
(wh). Addresses and values are specified in hexadecimal, with an
optional 0x prefix.
3.7.3Example
> rw 1c4b54
word at 0x001C4B54 contains 0x0000337E
> rb 1c4b55
byte at 0x001C4B55 contains 0x33
> wb 1c4b56 0x20
value 0x20 written to byte at 0x001C4B56
> rw 1c4b54
word at 0x001C4B54 contains 0x0020337E
> ww 0x1c4b54 14c44
value 0x00014C44 written to word at 0x001C4B54
32ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
3.8tell
Chips Process Console commands
3.8.1Syntax
tell <process> <command>
3.8.2Description
Sends the command as a TELL message to a specific process. (The
same as the console tell command.)
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)33
tell
34ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
4.Bridge Console
commands
This chapter describes the Bridge Console
commands.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)35
device add
4.1device add
4.1.1Syntax
4.1.2Description
device add <device>
This command adds a device to the bridge configuration. Attempts to
add the bridge itself or an existing device to the bridge are rejected.
Attempts to add devices which don’t support the Cyan interface are
rejected. There is a limit on the number of devices that can be attached
to the bridge. If the device being added is from a process which supports
multiple devices, the /DEVICE attribute must be specified as part of the
device name. The table below shows devices which may be attached to
the bridge, although not all systems may support all devices.
DeviceRemarks
eddEthernet driver
bunRFC1493 protocol (PVC)
pppPoint-to-Point protocol
Configuration saving saves this information.
4.1.3Example
Simple examples
device add edd
device add ppp/DEVICE=2
Using the BUN RFC1483 driver
This example shows how to add the BUN RFC1483 driver, dynamically
from the console. You need to define and configure a device and a port.
Normally, the RFC1483 BUN device will pass all data straight through,
untouched. This means that even though you have changed your port
definition to include the RFC1483 driver, you can still use other
protocols on the same port. In order to enable RFC1483 encapsulation,
the RFC1483 attribute on the channel must be set to true.
36ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
Bridge Console commands
The channel attribute mode dictates the functional behaviour of the
driver, in terms of encapsulation method to use and traffic nature
(bridged/routed). The channel attribute promiscuous selects the
promiscuity behaviour of the driver.
The driver requires, at configuration time, to be layered with the BUN
utopia and nec98408 devices, in order to be used. So, for the sake of the
following examples, let's assume that the related BUN port is called
rfc_port, and it has been configured in the following way:
device: rfc_dev = rfc1483, nec98408, utopia
port : rfc_port = rfc_dev/PhysicalPort=0/PortSpeed=59111
If we want to attach the device to the bridge, then the following
command must be issued (all typed on one line):
The above command creates a channel with RFC1483 enabled, and it
uses the LLC encapsulation for bridged traffic. The next command, is
the same, however it uses the VC multiplexing method:
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)37
device delete
4.2device delete
4.2.1Syntax
device delete <device>
4.2.2Description
This command deletes a device from the bridge configuration. The
syntax of the device name is the same as that for the device add
command.
Configuration saving saves this information.
4.2.3Example
device delete r1483
4.2.4See also
device add
on page 36 and device list on page 39.
38ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
4.3device list
4.3.1Syntax
4.3.2Description
4.3.3Example
4.3.4See also
Bridge Console commands
device list
This command lists all the devices that are currently attached to the
bridge. It does not show the stored configuration (which can be seen
with the config print command).
device list
device add
on page 36 and device delete on page 38.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)39
ethertype
4.4ethertype
4.4.1Syntax
4.4.2Description
ethertype [<port> any|ip|pppoe]
This command enables filtering of Ethernet packets according to the
ETHER_TYPE field in the header. Only packets of the type specified
using this command will be sent on the port specified; packets of all
types will always be received.
By default, all bridge ports are set to any, which means that the type of
the packet will never be checked. The meaning of the other options is as
follows:
OptionPermitted ETHER_TYPE values
ip
pppoe0x8863, 0x8864 - PPP Over Ethernet (RFC 2516)
The port is specified as an integer, as displayed by the device list
command. When using this command in the initbridge configuration
file, ports are numbered in the order in which the device add commands
are given, starting from 1.
If no arguments are given, the current settings for each port are
displayed.
4.4.3Example
ethertype 2 any
0x0800 - IP
0x0806 - ARP
40ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
4.5filter
Bridge Console commands
4.5.1Syntax
filter
4.5.2Description
This command shows the current contents of the bridge’s filter table.
The MAC entries for each device are shown in turn together with the
time that the MAC address was last seen by the bridge. The command
also shows the current filter ageing time, in seconds, and the number of
creation failures since the system was started. Creation failures occur
when there is no room left in the filter table for a new entry.
4.5.3Example
filter
4.5.4See also
filterage
on page 42.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)41
filterage
4.6filterage
4.6.1Syntax
4.6.2Description
4.6.3Example
4.6.4See also
filterage [<age>]
This command sets, or displays if no arguments are given, the filter
table ageing time. The ageing time is the time after which MAC
addresses are removed from the filter table when there has been no
activity. The time is specified in seconds and may be any integer value
in the range 10…100,000 seconds. This value may also be changed
through SNMP. Changing the value of filterage has immediate effect.
Configuration saving saves this information. By default, the filter
ageing time is set to 300 seconds.
filterage
filter
on page 41.
42ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
4.7flush
4.7.1Syntax
4.7.2Description
4.7.3Example
4.7.4See also
Bridge Console commands
flush [<port>]
This command allows the MAC entries for a specified port, or all ports,
to be removed from the filter table. The port number for a device may be
determined using the device list or status commands. If the port number
is omitted, all entries for all ports are removed from the filter table.
flush
filter
on page 41, device list on page 39, status on page 50.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)43
info
4.8info
4.8.1Syntax
info
4.8.2Description
This command displays build information about the bridge process.
The version command is a synonym for this command.
4.8.3Example
info
4.8.4See also
version
on page 51.
44ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
4.9interface
4.9.1Syntax
4.9.2Description
4.9.3Example
Bridge Console commands
interface [sub-command]
This command accesses the ethernet support library sub-commands for
the bridge itself, not for the devices which are attached to it.
interface stats
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)45
The portfilter command allows control over the bridge’s forwarding and
broadcasting behaviour. By default, when a multicast or an unknown
packet is received on a port (referred to above as the source port), it will
be forwarded to all other bridge ports (referred to above as the
destination ports).
Each bridge port may have its behaviour modified separately. The first
example below configures the bridge so that packets arriving on port 2
will only be forwarded to ports 3, 4 and 5, and packets arriving on port
3 will only be forwarded to port 1. All other ports retain their default
behaviour.
Note that this command does not force packets arriving on the source
port to be sent to all specified destination ports. The bridge retains its
learning behaviour, so unicast packets, once their destination is known
to the bridge, will still only be sent to one port. Note also that the bridge
itself (for example when attached to the IP router) will always forward
to all ports, and will always be forwarded to by all ports.
The default behaviour can be restored by calling this command with the
argument all, as shown in the second example.
The ports are specified as integers, as displayed by the device list
command. When using this command in the initbridge configuration
file, ports are numbered in the order in which the device add commands
are given, starting from 1.
If no arguments are given, the current settings for each port are
displayed.
4.10.3 Example 1
portfilter 2 3 4 5
portfilter 3 1
46ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
4.10.4 Example 2:
portfilter 2 all
portfilter 3 all
4.10.5 See also
Bridge Console commands
device add
on page 36 and device list on page 39.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)47
spanning
4.11spanning
4.11.1 Syntax
4.11.2 Description
spanning [sub-command]
The spanning tree commands are only available if it has been compiled
in to the bridge.
The following spanning tree sub-commands are available:
Sub-commandDescription
disableDisables the spanning tree process
enableEnables spanning tree process
event [<level>]Sets the level of event reporting
forwarddelay [<time>]
hellotime [<time>]
info
maxage [<time>]
port <number>
priority [,bridgepriority>]
Reads or sets the time (in seconds) in which the
bridge remains in the listening or learning states
Reads or sets the time (in seconds) after which
the spanning tree process sends notification of
topology changes to the root bridge
Displays the version number of the spanning tree
implementation
Reads or sets the maximum age of received
spanning tree protocol information before it is
discarded
Controls the configuration of the bridge’s ports as
far as the operation of the spanning tree protocol
is concerned. Options are:
port <number> disable: disables a port
port <number> enable: enables a port
port <number> pathcost: reads or sets the cost of
using this port
port <number> priority: Reads or sets the priority
of the port
Reads or sets the priority of the bridge (any value
in the range 0 to 65535)
48ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
Bridge Console commands
Sub-commandDescription
statusReports the status of the spanning tree
version
Displays the version number of the spanning tree
implementation
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)49
status
4.12status
4.12.1 Syntax
4.12.2 Description
4.12.3 Example
status
This command shows the status of the bridge and its ports. The status
information for a port includes the SNMP type information about
time-exceeded packets, packets discarded, etc. It also includes the
broadcast history of the port over the last five seconds and the high water mark of packets queued on the bridge for this device.
status
50ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
4.13version
4.13.1 Syntax
4.13.2 Description
4.13.3 Example
4.13.4 See also
Bridge Console commands
version
This command displays build information about the bridge process. The
info command is a synonym.
version
info
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)51
version
52ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
5.BUN Console commands
This chapter describes the BUN Console
commands.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)53
Introduction
5.1Introduction
5.1.1Scope
A description is provided of the use of console commands.
Command parsing is case insensitive. White-space may be used to
separate distinct arguments. Any prefix of the string bun to the
command line is ignored.
5.1.2Build Inclusion
The full BUN console command set is included with all builds that
include the BUN package.
5.1.3Command arguments
devicename
The name of a device.
Device names are either implicit (i.e.: provided from the compiled-in
device code) or explicit (i.e.: from a device: configuration request).
Device names may contain upper or lower case letters, but use case
insensitive matching.
portname
The name of a port. This can take several forms:
•The name given on the port configuration request
•The alias name specified in the port's Alias attribute
•The name as a <class>:<instance> pair. For example, atm:0 to
reference the first port supporting ATM cell traffic.
•The BUN port number. For example, 0 to refer to the first port.
The last option may be dropped in a future software release.
Port names may contain upper or lower case letters, but all name
matching is case insensitive.
channelnumber
The number of a channel. Within a port, each available channel is
identified within BUN by a unique channel number. Channel numbers
are positive integers, assigned from zero upwards.
54ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
BUN Console commands
To determine the channel numbers that are currently in use, use the list
channels command to show all active channels on a port (or ports).
Note that to be uniquely specified, both a port name and channel
number must be given to console commands which display or
manipulate channels.
classname
The name of a class.
Class names may contain upper or lower case letters, though class name
matching is always case insensitive.
By default, BUN provides the following class definitions:
•all: All ports in the system
•atm: All ports supporting ATM cell traffic
•adsl: All ports using the ADSL hardware interface
•ethernet: All ports using an ethernet hardware interface
•hdlc: All ports using an HDLC hardware interface
•pci: All ports using a PCI hardware interface
•usb: All ports using a USB hardware interface
A running system may contain additional classes specified via the class
configuration directive (see the commands list classes
list config
on page 61).
on page 64 and
If necessary, commands may be quoted using angle brackets or double
quotes. This prevents the stripping of white-space from the input line.
For example:
set port atm/usercomment="This is a comment string"
set port atm/usercommand=<An alternative syntax>
Within either form of quoted section, the corresponding close quote
character may be embedded by prefixing with a backslash. So you could
write:
set port atm/usercomment=<This is a "cell based" port>
set port atm/usercomment="This is a \"cell based\" port>
Mostly you probably won't need to worry about quotation, but be aware
of it's effects if you do.
The remainder of this section describes the commands themselves.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)55
Introduction
56ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
5.2help
BUN Console commands
5.2.1Syntax
help [<command>]
5.2.2Description
Display command information.
If used without the optional command name, a summary of the
commands available will be displayed.
If used with a command name, brief usage information will be shown
for the command.
Note: Commands listed but which are not covered by this
documentation are not supported, and may not be present in
future software releases.
5.2.3Examples
help
help set port
Note: This command is not intended to replace this
documentation, and provides only a very basic level of detail.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)57
version
5.3version
5.3.1Syntax
5.3.2Description
5.3.3Example
5.3.4See also
version
Display the BUN software version.
version
build
on page 59.
58ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
5.4build
5.4.1Syntax
5.4.2Description
5.4.3Example
5.4.4See also
BUN Console commands
build
Display information about compile-time build options. For example, if
tracing or debug code has been compiled into the image.
build
version
on page 58.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)59
config
5.5config
5.5.1Syntax
5.5.2Description
5.5.3Example
config <configurationstring>
Issue a configuration request to BUN.
This command can be used to pass arbitrary configuration strings to
BUN.
This may be used to create new devices or ports at run time, using the
same syntax as the configuration strings in the SYSTEM file
BUN_CONFIG_<n> directives. This can be particularly useful during
the development of new software.
config device : nuclear = detonator, uranium
config port : launch = nuclear/silo=3
This can also be written as simply:
device : nuclear = detonator, uranium
port : launch = nuclear/silo=3
5.5.4See also
list config
on page 61.
60ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
5.6list config
5.6.1Syntax
5.6.2Description
BUN Console commands
list config
List the configuration requests that have been passed to BUN.
BUN records all configuration requests that are issued, and maintains
information about their parsing. Configuration requests can be in one of
three states:
•Completed – the request has completed successfully
•Pending – the request is stalled, pending creation of a (as yet) non-
existent device
•Failed – the request failed
Each request is displayed together with any relevant information. In the
case of failed requests, an error code is given and the point at which
parsing of the configuration string failed is highlighted.
Stalled requests can be unblocked by creating a new device with
suitable properties by using the BUN config console command to issue
a device configuration request.
This command is extremely useful for diagnosing problems with device
or port configuration.
5.6.3Example
list config
5.6.4See also
config
on page 60.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)61
list devices
5.7list devices
5.7.1Syntax
list devices
5.7.2Description
List all available devices.
This will show all devices, regardless of how they were created. This
includes devices which were compiled into the system (such as the
utopia device), and compound devices which were created by
configuration requests (such as the atm25 device, a compound of the
utopia and nec98408 devices).
5.7.3Example
list devices
5.7.4See also
show device
on page 63.
62ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
5.8show device
5.8.1Syntax
show device <devicename>
5.8.2Description
Display information about at device.
This displays information about a device in the following format:
Name:<devicename>
Description<devicedescription>
Contains:<devicelist>
The device name is the root name of the device. This is the same as the
name passed to the show device command.
The device description is a brief string describing the device. For
compiled in devices, this string is provided by the driver code. For
compound devices, this string is the configuration request used to create
the device.
BUN Console commands
The device list shows which driver code is invoked by this device. For a
compiled in device, this will just be the device itself. For a compound
device, this will be the list of devices linked to form the compound
driver.
5.8.3Example
show device utopia
show device atm25
5.8.4See also
list devices
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)63
on page 62.
list classes
5.9list classes
5.9.1Syntax
list classes
5.9.2Description
List available port classes on the console. The class name is displayed,
together with the necessary attributes for a port to be a member of said
class.
5.9.3Example
list classes
5.9.4See also
list classes
on page 64.
64ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
5.10show class
5.10.1 Syntax
class <classname>
5.10.2 Description
List members of the specified port class.
5.10.3 Example
show class atm
5.10.4 See also
BUN Console commands
list classes
on page 64.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)65
list ports
5.11list ports
5.11.1 Syntax
5.11.2 Description
5.11.3 Example
5.11.4 See also
ports
List all available ports on the console, in the following format:
<portnumber> : <portname>
All BUN console which require a port to be identified can accept either
the port number or port name as an argument. They may also be used as
the argument to a /port= attribute in fopen()
ports
strings.
show port
on page 67.
66ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
5.12show port
5.12.1 Syntax
5.12.2 Description
5.12.3 Example
5.12.4 See also
BUN Console commands
port <portname>
Display detailed information about a port.
This command enumerates all attributes for a port and displays them on
the console. It is useful to determine the properties of a port.
>bun show port a1
list ports
on page 66, set port on page 68.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)67
set port
5.13set port
5.13.1 Syntax
5.13.2 Description
5.13.3 Example
5.13.4 See also
set port <portname> / <attributelist>
Modify a port attribute.
This command may be used to modify an attribute on a port, overriding
any values specified in the original port configuration request. The
effects of changing any such attributes are device dependent.
This command is intended for development purposes only.
set port ethernet /usercomment=”An Ethernet network port”
list ports
on page 66, set port on page 68.
68ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
5.14list channels
5.14.1 Syntax
list channels [<portname> ]
5.14.2Description
List all open connections on the specified port. If no portname is
specified, all channels on all ports will be displayed.
The channels are shown with their identification number and a selection
of useful attributes. A full attribute list can be obtained via the show channel command.
All channels are shown with the Enabled attribute first, which indicates
if the channel has yet been enabled (connected) by the application code.
5.14.3 Examples:
list channels 0
list channels atm:0
BUN Console commands
5.14.4 See also
show channel
on page 71, list ports on page 66, show port on page 67.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)69
list all open channels
5.15list all open channels
5.15.1 Syntax
list all open channels [<portname> ]
5.15.2 Description
This command is similar to the list channels command. The
list channels command shows channels which are either enabled or
open. The list all open channels command only shows channels which
are open.
If no portname is specified, all channels on all ports will be displayed.
The channels are shown with their identification number and a selection
of useful attributes. A full attribute list can be obtained via the show channel command.
5.15.3 See also
list channels
on page 69.
70ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
5.16show channel
5.16.1 Syntax
show channel <portname> <channelnumber>
5.16.2 Description
Display information about the specified channel. The channel
identification number may be obtained from the list channels command.
All attribute values for the channel are displayed on the console.
Note that you must specify both a port name and channel number.
Channel numbers are only unique within a given port.
It is also possible to display channels that are not currently opened by an
application. The bun.active attribute will return true if a channel is
currently open, else false. Note that a channel handle may be closed and
then re-opened by an application at any time – be cautious when using
this command.
5.16.3 Example
BUN Console commands
show channel atm 0
5.16.4 See also
set channel
on page 72, list channels on page 69.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)71
set channel
5.17set channel
5.17.1 Syntax
set channel <portname> <channelnumber> / <attributelist>
5.17.2 Description
Modify attributes on the specified channel.
This command allows you to change the attribute values for a given
channel. The effect of any changes will be device dependent.
Use this command with extreme caution. The same warnings about an
application closing and reopening a channel handle apply as they do for
the show channel command. Also beware that the application will not
be explicitly notified of any changes made, though if it queries its own
attribute data it will pick up any changes that have been made.
This command is intended for development purposes only.
5.17.3 Example
set channel atm 27 /txvci=32/rxvci=32/pcr=1234
5.17.4 See also
list channels
72ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
on page 69, show channel on page 71.
5.18reset port
5.18.1 Syntax
5.18.2 Description
5.18.3 Example
5.18.4 See also
BUN Console commands
reset port <portname>
Re-initialise port hardware.
This may be used to request that a device re-initialise the underlying
hardware. Not all devices implement this command.
This command is primarily intended for use during test and
development of new hardware devices.
reset port 3
list ports
on page 66, show port on page 67, set port on page 68.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)73
reset port
74ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
6.DHCP-client Console
commands
This chapter describes the DHCP-client Console
commands.
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)75
config
6.1config
6.1.1Syntax
6.1.2Description
6.1.3Example
dhcpclient config
This command displays the current configuration of the DHCP client,
including selected DHCP options.
76ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
6.2help
DHCP-client Console commands
6.2.1Syntax
dhcpclient help <command|all>
6.2.2Description
This command provides help on the various console commands
provided by the ATMOS DHCP client. Specifying the command name
gives detailed help, and specifying the argument all gives detailed help
on all commands.
6.2.3Example
prompt> dhcpclient help
Help is available on the following commands:
confighelp
poolstatus
traceuntrace
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)77
pool
6.3pool
6.3.1Syntax
dhcpclient pool [verbose]
6.3.2Description
This command displays the state of the memory pool being used by the
DHCP client. Should the client ever run out of memory, use of this
command is helpful in determining the optimum memory pool size for
the client. For example, supporting DHCP client functionality on
several interfaces simultaneously will require proportionately more
memory. The default pool size specified in the system file dhcpclient is
40000 bytes.
The verbose option lists all allocated and freed memory chunks.
6.3.3Example
prompt> dhcpclient pool
DHCP Client Memory Pool Status
total pool size 39968
free 21392
allocated 18576
mean alloc chunk 67
max free chunk 13904
78ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
6.4status
6.4.1Syntax
6.4.2Description
6.4.3Example
DHCP-client Console commands
dhcpclient status [all]
This command provides DHCP status information for the active bound
lease associated with each valid interface in turn, including IP address,
time until lease renewal, subnet mask and DHCP server address.
Including the all option shows, for each valid interface, the active lease,
leases which are being, or have been offered to the interface, and any
leases which are still being held by the client which are not currently
active (since a single interface can only have one active lease at a time).
prompt> dhcpclient status
DHCP Client Lease Status (active lease only)
Interface 'ethernet'
Status | Server ID | IP address | Subnet mask | Renewal
Tracing options are disabled by using the untrace command with the
option names to be disabled.
Saving configuration does not preserve the current tracing options that
are enabled. By default tracing of error, warn and note are enabled.
6.5.3Example
prompt> dhcpclient trace
No tracing options currently enabled.
prompt> dhcpclient trace error warn note
Currently tracing: error warn note
80ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
6.6DHCP-related IP process commands
The following commands are not provided by the DHCP client process
but by the IP process ip.
DHCP-client Console commands
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)81
ip device
6.7ip device
6.7.1Syntax
6.7.2Description
ip device add <i/f> <type> <file> [mtu <size>] [<IP
address>|dhcp]
ip device
The ip device add command adds an interface to the configuration of the
IP stack. The last parameter of the command would normally the IP
address of the interface; use of the string dhcp causes the IP address to
be discovered by the DHCP client software. Note that using the flag
dhcp on an interface precludes running a DHCP server on that interface!
The ip device command lists the current configuration of any devices
attached to the IP stack. A device configured to use DHCP will show
dhcp in the IP address column, followed by the actual IP address
discovered and bound by DHCP, if any.
For interfaces configured to use DHCP, saving configuration only marks
the interface as using DHCP; it does not save the actual IP address
discovered by DHCP, which must be renewed.
A useful method of automatically configuring suitable IP devices is to
put a device add statement into the file //isfs/resolve and downloading it
upon booting the image.
6.7.3Example
prompt> ip device add ethernet ether //edd dhcp
…DHCP then discovers the IP address for the interface…
This command displays or edits the current configuration of the DHCP
server. To display current configuration, provide no arguments to the
command.
•Use of the add option adds the line <text> to the configuration file.
•Use of the confirm option re-parses the configuration file,
confirming the changes made if the parse is successful.
•Use of the delete option deletes the last line from the configuration
file.
•Use of the flush argument deletes the whole configuration.
Following any change to the configuration file, it is necessary to
confirm the changes, issue a flashfs update command to commit the
change to FLASH, and then restart the system before the changes can
take effect.
7.1.3Example
prompt> dhcpserver config
---
Current DHCP server configuration
---
allow unknown-clients;
allow bootp;
subnet 192.168.219.0 netmask 255.255.255.0 {
range 192.168.219.10 192.168.219.30;
max-lease-time 5000;
}
prompt> dhcpserver config flush
Configuration file flushed.
84ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
DHCP-server Console commands
prompt> dhcpserver config
---
Current DHCP server configuration
(Issue "dhcpserver config confirm" followed by "flashfs
update" to confirm new configuration)
---
prompt>
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)85
help
7.2help
7.2.1Syntax
dhcpserver help <command|all>
7.2.2Description
This command provides help on the various console commands
provided by the ATMOS DHCP server. Specifying a command name
gives detailed help on the command. Specifying all gives detailed help
on all available commands.
7.2.3Example
prompt> dhcpserver help
Help is available on the following commands:
confighelp
poolstatus
traceuntrace
86ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
7.3pool
DHCP-server Console commands
7.3.1Syntax
dhcpserver pool [verbose]
7.3.2Description
This command gives a summary of DHCP server memory usage. The
verbose option shows the entire memory allocation/free list.
7.3.3Example
prompt> dhcpserver pool
DHCP Server Memory Pool Status
total pool size
79968
free
52448
allocated
27520
mean alloc chunk
59
max free chunk
30416
ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)87
reset
7.4reset
7.4.1Syntax
7.4.2Description
dhcpserver reset
This command prompts the server to do a warm reset of itself. This has
the effect of bringing the server back up as if the system had been
rebooted, except that the lease database is preserved in SDRAM
between resets.
Please note, however, you should still save the configuration file to
FLASH if you want the configuration to be preserved upon rebooting
the whole system.
The advantage of this command is that it allows configuration changes
that have been confirmed (using config confirm) to take effect
immediately, rather than having to do a flashfs update and restart.
This command is also convenient for defining subnet topologies for IP
interfaces that have been added dynamically.
88ATMOS Console Commands Reference Manual (Binary) DO-008530-PS, Draft B (26th April 2001)
7.5status
7.5.1Syntax
7.5.2Description
7.5.3Example
DHCP-server Console commands
dhcpserver status
This command provides a summary of all leases known to the server on
each interface in turn. It also shows remaining available IP addresses
(i.e. those with no specified lease time, or client identifier).