Applying a Filter To ﬁlter the report so this component information will not appear,
perform the following steps:
1. Use scrfilter to create your own view ﬁlter named "NoSoftware":
2. Use scrﬁlter to set the ﬁlter extension ﬂag to keep the component's
3. Use the NoSoftware ﬁlter with the scrviewer command, as shown
Suppose you only wanted to ﬁlter out a group from the HP-UX Installed
Software Deﬁnition component and not the entire component. You could
ﬁlter the Subproducts group from the report with the following
# scrfilter –p NoSoftware "HP-UX Installed Software Definition" \
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 Deﬁnition component.
Editing a Filter
You can modify a ﬁlter by sending the deﬁnition to a ﬁle, editing the ﬁle
and then loading the modiﬁed ﬁlter deﬁnition. This method is
recommended for changing more than one value. See "scrﬁlter (1M)" on
page 53 for details.
1. Dump a ﬁlter deﬁnition to a ﬁle by executing:
2. Edit the ﬁlter deﬁnition now contained in fileName.
3. Input the modiﬁed ﬁlter deﬁnition by executing:
# scrfilter –c Template NoSoftware
This command, makes a copy of the standard ﬁlter, Template, and
names it NoSoftware. Template is one of the standard ﬁlters
described under the next heading.
attributes out of the report.
# scrfilter –s NoSoftware "HP-UX Installed Software Definition" off
The -s option sets the ﬁlter for the component to off, as speciﬁed
after the component name.
# scrviewer –f NoSoftware elsa:199904181305
The -f option tells scrviewer to use the ﬁlter 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.
# scrfilter -o filterName fileName
# scrfilter -i fileName