Under Construction
Operation "fix_query": Query installed fixes
The “fix_query” operation allows the NIM master to display the fixes installed on a NIM client. The operation supports the following optional attributes:
aixnim # lsnim -q fix_query -t standalone
the following attributes are optional:
-a fixes=<value>
-a fix_bundle=<value>
-a fix_query_flags=<value>
-a show_progress=<value>
-a group=<value>
aixnim #
If the operation is started without specifying attributes, all installed fixes are displayed:
aixnim # nim -o fix_query aix01
All filesets for 7.3.0.0_AIX_ML were found.
All filesets for 7300-00_AIX_ML were found.
All filesets for IJ35510 were found.
All filesets for IJ36080 were found.
All filesets for IJ36148 were found.
All filesets for IJ36149 were found.
All filesets for IJ36150 were found.
All filesets for IJ36152 were found.
All filesets for IJ36154 were found.
All filesets for IJ36155 were found.
…
Interim fix 'IJ51687s1a' associated with IJ51687 is installed.
Interim fix 'IJ54779m3a' associated with IJ54779 is installed.
Interim fix 'IJ54779m3a' associated with IJ54258 is installed.
aixnim #
However, the fixes attribute can also be used to specify one or more fixes:
aixnim # nim -o fix_query -a fixes="IJ54754 IJ54779" aix01
Interim fix 'IJ54779m3a' associated with IJ54779 is installed.
warning: warning: 0042-001 m_fixquery: processing error encountered on "aix01":
0042-175 c_ckspot: An unexpected result was returned by the
"/usr/sbin/instfix" command:
There was no data for IJ54754 in the fix database.
aixnim #
In the example, two fixes were specified: IJ54754 and IJ54779. However, only the second fix was found (first line):
Interim fix 'IJ54779m3a' associated with IJ54779 is installed.
All other lines are due to the fact that the fix IJ54754 is not installed. This is particularly indicated by the last line displayed:
There was no data for IJ54754 in the fix database.
The error messages can be suppressed by specifying an appropriate error redirection:
aixnim # nim -o fix_query -a fixes="IJ54754 IJ54779" aix01 2>-
Interim fix 'IJ54779m3a' associated with IJ54779 is installed.
aixnim #
Note: Instead of closing the error channel (“2>-”), you can of course also redirect to /dev/null (“2>/dev/null”).
Now only the installed fixes from the list are displayed.
Instead of specifying the fixes of interest via the “fixes” attribute, a fix_bundle can also be used. As an example, we created the fix_bundle with the name fix1_bnd and the following content:
aixnim # nim -o showres fix1_bnd
IJ54754
IJ54779
aixnim #
This time we specify the fix_bundle instead of the fixes attribute:
aixnim # nim -o fix_query -a fix_bundle=fix1_bnd aix01
Interim fix 'IJ54779m3a' associated with IJ54779 is installed.
warning: warning: 0042-001 m_fixquery: processing error encountered on "aix01":
0042-175 c_ckspot: An unexpected result was returned by the
"/usr/sbin/instfix" command:
There was no data for IJ54754 in the fix database.
aixnim #
The output is identical to the example above.
Further queries can be performed using the fix_query_flags attribute. The flags of the instfix command are supported. As an example, we display the abstract of the found fixes (instfix option “-v“):
aixnim # nim -o fix_query -a fix_bundle=fix1_bnd -a fix_query_flags=-v aix01 2>-
IJ54779 Abstract: a potential security issue exists
Interim fix 'IJ54779m3a' associated with IJ54779 is installed.
aixnim #