Under Construction

Operation "fix_query": Abfragen installierter Fixes

Mit der Operation „fix_query“ lassen sich vom NIM-Master aus die auf einem NIM-Client installierten Fixes anzeigen. Die Operation unterstützt die folgenden optionalen Attribute:

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 #

Wird die Operation ohne Angabe von Attributen gestartet, dann werden alle installierten Fixes angezeigt:

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 #

Über das Attribut fixes kann aber auch gezielt ein Fix oder mehrere Fixes angegeben werden:

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 #

Im Beispiel wurden zwei Fixes angegeben: IJ54754 und IJ54779. Gefunden wurde aber nur der zweite Fix (erste Zeile):

    Interim fix 'IJ54779m3a' associated with IJ54779 is installed.

Alle anderen Zeilen sind darauf zurück zuführen, dass der Fix IJ54754 nicht installiert ist. Was insbesondere die letzte ausgegebene Zeile andeutet:

    There was no data for IJ54754 in the fix database.

Die Fehlermeldungen können durch Angabe einer entsprechenden Fehler-Umleitung unterdrückt werden:

aixnim # nim -o fix_query -a fixes="IJ54754 IJ54779" aix01 2>-       

    Interim fix 'IJ54779m3a' associated with IJ54779 is installed.
aixnim #

Hinweis: Anstelle den Fehler-Kanal zu schließen („2>-„), kann man natürlich auch nach /dev/null umleiten („2>/dev/null“).

Jetzt werden nur noch die installierten Fixes aus der Liste ausgegeben.

Anstelle die interessierenden Fixes über das Attribut „fixes“ anzugeben, kann auch ein fix_bundle verwendet werden. Als Beispiel haben wir das fix_bundle mit Namen fix1_bnd und folgendem Inhalt angelegt:

aixnim # nim -o showres fix1_bnd
IJ54754
IJ54779
aixnim #

Wir geben dieses Mal das fix_bundle anstelle des Attributs fixes an:

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 #

Die Ausgabe ist identisch zu dem Beispiel von oben.

Über das Attribut fix_query_flags lassen sich weitere Abfragen durchführen. Es werden die Flags des Kommandos instfix untersützt. Als Beispiel lassen wir uns den Abstract zu den gefundenen Fixes anzeigen (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 #