Information Technology Reference
In-Depth Information
The following listing shows the spray command being used to test network
connectivity:
$ /usr/sbin/spray sparc20
sending 1162 packets of length 86 to sparc20 ...
706 packets (60.757%) dropped by sparc20
1801 packets/sec, 154924 bytes/sec
$
Table 10.4 lists the command-line arguments supported by the spray
command.
Table 10.4
The spray Command-Line Arguments
Argument
Description
-c count
The number of packets to send (default is the number of packets
required to send a total of 100KB of data, which is dependent on the
length of the packet—see -l ).
-d delay
The number of microseconds to pause between packets (default is 0)
-l length
The length of the Ethernet packet (default is 86 bytes)
-t type
The class of transport (default is UDP)
At a minimum, a hostname or IP address must be specified. All these
command-line arguments are specified before the hostname or IP address.
The sprayd program must be running on the remote system in order for the spray
command to work properly.
Viewing Network Interface Configuration
and Statistics
Two commands are available to view the configuration of the network inter-
faces and network statistics. These are:
ifconfig(1M) —Configures network interfaces
netstat(1M) —Views network statistics
The ifconfig(1M) command is used to configure parameters for the network
interfaces. Although configuring network interfaces is beyond the scope of the
exam, the ifconfig command can be used to view the configuration of the net-
work interfaces. This is accomplished by specifying the -a command-line argu-
ment to list information about all network interfaces or by specifying the name
Search WWH ::




Custom Search