Chapter 2
27
SCR Overview
Using Filters
Applying a Filter
To filter the report so this component information will not appear,
perform the following steps:
1. Use
scrfilter
to create your own view filter named “NoSoftware”:
# scrfilter –c Template NoSoftware
This command, makes a copy of the standard filter, Template, and
names it
NoSoftware
. Template is one of the standard filters
described under the next heading.
2. Use scrfilter to set the filter extension flag to keep the component’s
attributes out of the report.
# scrfilter –s NoSoftware ”HP-UX Installed Software Definition” off
The
-s
option sets the filter for the component to off, as specified
after the component name.
3. Use the
NoSoftware
filter with the scrviewer command, as shown
below:
# scrviewer –f NoSoftware elsa:199904181305
The
-f
option tells scrviewer to use the filter that follows it. The
HP-UX Installed Software component is excluded from the report.
You will see none of the information shown in the example.
Suppose you only wanted to filter out a group from the HP-UX Installed
Software Definition component and not the entire component. You could
filter the Subproducts group from the report with the following
command:
# scrfilter –p NoSoftware ”HP-UX Installed Software Definition” \
“Subproducts” off
Since the example showed subproducts information, you would see
none of the information shown above. You would, however, see a report
about bundles and products and all the other information associated
with the HP-UX Installed Software Definition component.
Editing a Filter
Definition
You can modify a filter by sending the definition to a file, editing the file
and then loading the modified filter definition. This method is
recommended for changing more than one value. See “scrfilter (1M)” on
page 53 for details.
1. Dump a filter definition to a file by executing:
# scrfilter -o
filterName fileName
2. Edit the filter definition now contained in
fileName.
3. Input the modified filter definition by executing:
# scrfilter -i
fileName
Summary of Contents for 705 Workstation
Page 4: ...4 Contents ...
Page 8: ...8 ...
Page 10: ...10 Chapter1 Introduction ...
Page 82: ...82 Reference SCR Reference man Pages scrlog_viewer 1M SEE ALSO ...
Page 84: ...84 AppendixA SCR File Set ...