Under Construction

Update über SFTP

Wir nehmen an das der iFix MF70632_ppc.iso von Fix Central heruntergeladen und auf dem Server aixnim im Verzeichnis /export/hmc abgespeichert wurde. Für den SFTP-Zugriff von der HMC aus wird der Benutzer fwtrans mit dem Passwort s3cr3t verwendet. Der iFix kann dann auf der HMC hmc01 wie folgt mittels SFTP installiert werden:

$ hmc updhmc hmc01 sftp://fwtrans:s3cr3t@aixnim//export/hmc/MF70632_ppc.iso
INFO: using sftp://fwtrans:s3cr3t@aixnim//export/hmc/MF70632_ppc.iso
The corrective service file offload was successful. Continuing with HMC service installation...
Verifying Certificate Information
Authenticating Install Packages
Installing Packages...warning: /dump/hsc_install.images/images/install.d/java/ibm-java-sdk-17.0.5.0-ppc64le.rpm: Header V3 RSA/SHA256 Signature, key ID 9bce9629: NOKEY
Installing Packages...
The corrective service file was successfully applied. A mandatory reboot is required but was not specified on the command syntax.
Shared connection to 172.168.99.18 closed.
ERROR: remote HMC command returned an error (2)
$

Soll das Passwort nicht öffentlich sichtbar sein, kann es auch weggelassen werden. Die HMC fragt dann das Passwort interaktiv ab. Das Passwort wird dann natürlich nicht angezeigt:

$ hmc updhmc hmc01 sftp://fwtrans@aixnim//export/hmc/MF70632_ppc.iso
INFO: using sftp://fwtrans@aixnim//export/hmc/MF70632_ppc.iso
Password: s3cr3t
The corrective service file offload was successful. Continuing with HMC service installation...
Verifying Certificate Information
Authenticating Install Packages
Installing Packages...warning: /dump/hsc_install.images/images/install.d/java/ibm-java-sdk-17.0.5.0-ppc64le.rpm: Header V3 RSA/SHA256 Signature, key ID 9bce9629: NOKEY
Installing Packages...
The corrective service file was successfully applied. A mandatory reboot is required but was not specified on the command syntax.
Shared connection to 172.168.99.18 closed.
ERROR: remote HMC command returned an error (2)
$

Hinweis: Falls der Hostname (hier aixnim) auf der HMC nicht aufgelöst werden kann, muss anstelle des Hostnamen die IP-Adresse verwendet werden.

Anstelle eines Passworts kann auch das Public-Key Verfahren verwendet werden. Hierzu muss mit der Option „-k“ eine Datei mit dem zu verwendenden Private-Key angegeben werden.

Da IBM das Protokoll SFTP für den Download von Fix Central unterstützt, kann die HMC prinzipiell iFixes und Service-Pack auch selbst herunterladen. Ein manueller Download ist dann nicht erforderlich. Dies ist im nachfolgenden Unterkapitel genauer beschrieben.

Ist SFTP vom Server aixnim die bevorzugte Methode für die Installation von iFixes und Updates, dann sollte man das in CorrectiveServiceLocation in einer der beiden Dateien /opt/pwrcmps/etc/lpar.cfg oder ~/.lpar.cfg hinterlegen:

...
CorrectiveServiceLocation sftp://fwtrans@aixnim//export/hmc
...

Hinweis: Theoretisch könnte man auch hier das Passwort hinterlegen, das ist aber im allgemeinen keine gute Idee, da jeder Benutzer den Inhalt der Datei anschauen kann.

Nachdem CorrectiveServiceLocation wie gezeigt abgeändert wurde, kann ein Update einfach durch Angabe des ISO-Dateinamens erfolgen:

$ hmc updhmc hmc01 MF70632_ppc.iso
INFO: using sftp://fwtrans@aixnim//export/hmc/MF70632_ppc.iso
Password: s3cr3t
The corrective service file offload was successful. Continuing with HMC service installation...
Verifying Certificate Information
Authenticating Install Packages
Installing Packages...warning: /dump/hsc_install.images/images/install.d/java/ibm-java-sdk-17.0.5.0-ppc64le.rpm: Header V3 RSA/SHA256 Signature, key ID 9bce9629: NOKEY
Installing Packages...
The corrective service file was successfully applied. A mandatory reboot is required but was not specified on the command syntax.
Shared connection to 172.168.99.18 closed.
ERROR: remote HMC command returned an error (2)
$

Hinweis: Natürlich muss die ISO-Datei vorher in das richtige Verzeichnis auf dem Server aixnim kopiert worden sein.