Monitors the File Server process
Synopsis
scout [initcmd] -server <FileServer name(s) to monitor>+
[-basename <base server name>]
[-frequency <poll frequency, in seconds>] [-host]
[-attention <specify attention (highlighting) level>+]
[-debug <turn debugging output on to the named file>] [-help]
scout [i] -s <FileServer name(s) to monitor>+
[-b <base server name>] [-f <poll frequency, in seconds>]
[-ho] [-a <specify attention (highlighting) level>+]
[-d <turn debugging output on to the named file>] [-he]
Description
The scout command displays statistics gathered from the File Server process running on each machine specified with the -server argument. The Output section explains the meaning of the statistics and describes how they appear on the screen.
Cautions
The scout process must be able to access the curses graphics package, which it uses to display statistics. Most UNIX distributions include curses as a standard utility.
Both dumb terminals and windowing systems that emulate terminals can display the scout program's statistics. The display makes use of reverse video and cursor addressing, so the display environment must support those features for it to look its best (most windowing systems do, most dumb terminals do not). Also, set the TERM environment variable to the correct terminal type, or one with characteristics similar to the actual ones. For machines running the AIX operating system, the recommended setting for TERM is vt100, as long as the terminal is similar to that. For other operating systems, the wider range of acceptable values includes xterm, xterms, vt100, vt200, and wyse85.
Options
An example of an acceptable value is conn 300.
An example is disk 90%.
An example of an acceptable value is disk 5000.
Example of a legal value: fetch 6000000
Example of an acceptable value: store 200000
Example of an acceptable value: ws 65
Output
Scout can display statistics either in a dedicated window or on a plain screen if a windowing environment is not available. For best results, the window or screen should have the ability to print in reverse video.
The scout screen has three main parts: the banner line, the statistics display region and the message/probe line.
The Banner Line
By default, the word "scout" appears in the banner line at the top of the window or screen, to indicate that the scout process is running. Two command-line arguments place additional information in the banner line:
For example, -host is used when the scout process is running on the machine client1.abc.com, the banner line reads:
[client1.abc.com] Scout
Scout for abc.com
The Statistics Display Region
In this region, which occupies the majority of the window, the scout process displays the statistics gathered for each File Server process. Each process appears on its own line.
The region is divided into six columns, labeled as indicated and displaying the following information:
Conn: The first column displays the number of RPC connections open between the File Server process and client machines. This number should equal or exceed the number in the Ws column (see the fourth entry below). It can exceed the Ws number because each user on the machine can have several separate connections open at once, and one client machine can handle several users.
x:free_blocks
where x indicates the partition name. For example, a:8949 specifies that the /vicepa partition has 8,949 1Kbyte blocks free. Available space can be displayed for up to 26 partitions. If the window is not wide enough for all partition entries to appear on a single line, the scout process automatically creates multiple lines, "stacking" the partition entries into sub-columns within the sixth column.
The label on the Disk attn column indicates the threshold value at which entries in the column become highlighted. By default, the label is
Disk attn: > 95% used
because by default the scout process highlights the entry for any partition that is over 95% full.
For all columns except the fifth (file server machine name), the optional -attention argument sets the value at which entries in the column should be highlighted to indicate that a certain value has been exceeded. Only the fifth and Disk attn columns ever become highlighted by default.
The scout command includes the name of the file server in a message when a problem exists on a partition. An example of the scout message for a partition named /vicepa on a file server named fs1.abc.com follows:
Could not get information on server fs1.abc.com partition /vicepa
The Message/Probe Line
The bottom line of the scout screen indicates how many times the scout process has "probed" the File Server processes for statistics. The statistics gathered in the latest probe appear in the statistics display region. The -frequency argument overrides the default probe frequency of 60 seconds.
Examples
See the chapter on the scout process in the AFS System Administrator's Guide, which illustrates the displays that result from different combinations of arguments and flags.
Privilege Required
None