Home Page The Club Computers News Links Glossary EYAWTK
Before Amiga Background ICS OCS ECS AGA ??? PPC
U-Boot SLB Linux Amiga OS Dual Boot Motherboards Peripherals Other
Initialisation Installation OS4 Updates About OS4 File Systems Networking Printing Other
Introduction File System Workbench Preferences Commands Error Msgs Miscellaneous

AmigaOS 4.0 - About OS4 - Commands

SAMPLE Networking
Purpose: To sample network activity.
Format: SAMPLE [<INTERFACE>] [LEFT <left>] [TOP <top>] [WIDTH <width>] [HEIGHT <height>]
Template: INTERFACE, LEFT/N, TOP/N, WIDTH/N, HEIGHT/N
Path: C:SAMPLE
SAMPLE is used to sample the amount of incoming and outgoing data and display it in a window.

The <INTERFACE> option, if specified, is the name of the interface whose data throughput should be visualized. If this is omitted, the global data throughput will be visualized instead.

The LEFT <left> option, if specified, tells SAMPLE where to position the left-hand margin of the window. Default is '0' which says to open it on the left of the Workbench screen.

The TOP <top> option, if specified, tells SAMPLE where to position the top margin of the window. Default is '0' which says to open it on the top of the Workbench screen.

The WIDTH <width> option, if specified, tells SAMPLE how wide to make the window. Default is '300'.

The HEIGHT <height> option, if specified, tells SAMPLE how high to make the window. Default is '50'.

Example 1:

3.OS4:> SAMPLE WIDTH=470 HEIGHT=115 displays the following window where you can see a bar and two line displays, plus some cryptic text at the bottom of the window:

Sample Window

The incoming data is visualized above the bar, while the outgoing data is visualized below the bar. This information is gained by sampling the number of bytes that are sent and received by the driver each second. Thus, you will see the 'CPS' rate displayed, as it slowly scrolls across the window right to left.

The display at the bottom of the window shows the maximum number of characters received and sent per second (max received/sent), the average number of characters received and sent per second (avg received/sent) and the last number of characters received and sent per second (last received/sent).

The window can be moved and resized, and if enough memory is available for buffering the history data, the display will be rescaled and redrawn in the new size, too. Note that as more data arrives, the contents of the display may be rescaled, too. This application should not be taken too seriously, it is merely a demonstration of what the drivers are currently doing and how they perform.

Click on the Close gadget to close the window and shutdown the program.


Return to Commands Selection

Disclaimer: Amiga Auckland have prepared the above information for the use of its members based on our experiences and as such is subject to revision at any time. Amiga Auckland cannot guarantee any of the information and cannot be held accountable for any issues that may result from using it.


Copyright 2006 Amiga Auckland Inc. All rights reserved.
Revised: February 9, 2006.