HMC Hints
From Linux on Power wiki
The HMC has a command-line interface as well as a GUI interface. The command-line interface can be handy when one is accessing the system from a remote location, and is particularly useful in obtaining a console terminal session to a given partition. This page provides a quick review of the various HMC commands.
How do I place my SSH key on HMC?
- Use the mkauthkeys command.
How do I access the virtual serial terminal?
- After logging into the HMC, you can get access to the console for a given partition. In particular, the console will allow you to get access to the open firmware prompt, the yaboot bootloader prompt, as well as viewing the kernel boot messages. The console is critical for obtaining a login if the partition does not have any networking configured. The console session behaves much like a serial-port console, but has been virtualized.
- See the main article Getting a terminal console.
How do I know which interface is eth0 and which eth1 on HMC?
Start a terminal (right click in the desktop, rshterm) and run
tail -f /var/log/messages
Now disconnect the cable from one of your network interfaces and reconnect it. You will see a log entry, saying link is down for eth0 or eth1 .
How do I create LPAR using command line?
- See article Creating LPAR.
How do I run VIO-Command from HMC?
- See article VIO command from HMC.
Which HMC is my machine attatched to?
- See the main article Finding the attached HMC
How can I reboot a hung partition?
- The system and the partition state can be viewed and manipulated through a variety of HMC commands; in particular, a hung partition can be restarted, or a core dump can be initiated.
- See the main article Viewing partition state.
How do I reboot the HMC?
- See the main article HMC Commandline Reboot.
How do I change the language in the remote client
Der WebSM PC-client wird mit dem Batchfile "wsm.bat" gestartet, liegt default mässig in "C:\Program Files\websm\bin\wsm.bat"
In dieser Datei muss in der Zeile, die wie folgt beginnt: java -Xmx256m -ss128k -DIDebug.enabled=%DEBUGENABLE% -DWEBSM_NO_REMOTE_CLASS_LOADING=%WNRCL% ....
das Flag "-Duser.language=en" eingefügt werden, so dass das ganze so aus sieht: java -Duser.language=en -Xmx256m -ss128k -DIDebug.enabled=%DEBUGENABLE% ...
