RDF System Management Manual

Table Of Contents
Entering RDFSCAN Commands
HP NonStop RDF System Management Manual524388-003
9-17
SCAN
SCAN
The SCAN command scans a specific number of messages in the file and displays all
of those in that range that contain the current match pattern.
number
is the number of messages to scan within the log file.
Usage Guidelines
The search begins at the current record (ordinarily the record number specified in an
immediately preceding AT command), and continues until either the number of records
specified in number are examined or until the end-of-file is reached, whichever comes first.
If pattern matching is enabled, the SCAN command displays only those records that
contain the current match pattern.
If pattern matching is disabled, the SCAN command displays the specified number of
messages starting at the current record. This behavior is identical to using the LIST
command with pattern matching disabled.
For information about enabling and disabling pattern matching, see the MATCH
command description earlier in this section.
SCAN number
Note. The SCAN command performs a slightly different operation than the LIST command
when pattern matching is enabled. For example:
If you specify SCAN 10, RDFSCAN searches the next 10 records for the currently
specified pattern and displays all records from among those 10 in which the pattern is
found. For instance, if only 6 records among the next 10 contain that pattern, only those 6
records are displayed. RDFSCAN searches until either 10 records are examined or the
end-of-file is encountered, whichever comes first.
If you specify LIST 10, RDFSCAN searches the rest of the file for the currently-specified
pattern and displays the first 10 records between the current location and the end of the
file that contain that pattern. RDFSCAN searches until either 10 records are displayed or
the end-of-file is reached, whichever comes first. If the rest of the file contains only 6
records that match, only those 6 records are displayed.