Under Construction

Update über FTP

Wir nehmen an das der iFix MF70632_ppc.iso von Fix Central heruntergeladen und auf dem Server aixnim im Verzeichnis /export/hmc abgespeichert wurde. Der Dienst FTP ist auf dem Server aixnim aktiv:

aixnim # lssrc -t ftp
Service       Command                  Description              Status
 ftp          /usr/sbin/ftpd           ftpd -l -s               active
aixnim #

Für den FTP-Zugriff von der HMC aus wird der Benutzer fwtrans mit dem Passwort s3cr3t verwendet. Der iFix kann dann auf der HMC hmc01 wie folgt installiert werden:

$ hmc updhmc hmc01 ftp://fwtrans:s3cr3t@aixnim//export/hmc/MF70632_ppc.iso
INFO: using ftp://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 ftp://fwtrans@aixnim//export/hmc/MF70632_ppc.iso
INFO: using ftp://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.

Da IBM das Protokoll FTP für Downloads nur noch in der Variante sFTP (secure FTP) unterstützt, ist ein direkter Update mit „hmc updhmc“ und FTP nicht mehr möglich.

Ist FTP 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 ftp://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 ftp://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.