ILO Notes
From Brandonhutchinson.com
(→"Remote Console - in use") |
|||
| (20 intermediate revisions not shown.) | |||
| Line 1: | Line 1: | ||
| - | === OpenSSH problems with iLO ssh server | + | == ssh console access == |
| + | |||
| + | === iLO === | ||
| + | |||
| + | * To access a text console through the ssh iLO interface, use the '''remcons''' command. | ||
| + | |||
| + | === iLO 2 === | ||
| + | |||
| + | * With iLO 2, '''remcons''' is not available; you may use the Virtual Serial Port (VSP) to access a text console. | ||
| + | * To access the VSP, login to iLO 2 via ssh and type '''vsp'''. | ||
| + | * The default '''Virtual Serial Port''' is '''COM 2; IRQ3; IO: 2F8H-2FFh''' (at least on an HP ProLiant DL360 G5). | ||
| + | |||
| + | You will have to start an '''agetty''' process on the COM2 port in order to use the VSP. RHEL 5 example: | ||
| + | |||
| + | * Add the following to '''/etc/inittab''': | ||
| + | S1:2345:respawn:/sbin/agetty 115200 ttyS1 vt100 | ||
| + | |||
| + | * Run '''telinit q''' to have '''init''' reread '''/etc/inittab'''. | ||
| + | |||
| + | In order to see the startup/shutdown messages on the VSP, add the following to the appropriate '''kernel''' line in '''/boot/grub/menu.lst''': | ||
| + | ... | ||
| + | kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/ '''console=tty0 console=ttyS1,115200''' | ||
| + | .... | ||
| + | |||
| + | ==== Links ==== | ||
| + | |||
| + | * [http://debian.catsanddogs.com/component/option,com_smf/Itemid,41/topic,116.0/ Topic: Configuring iLO2 and Debian with serial support] | ||
| + | * [http://dannf.org/bloggf/tech/ilo2-vsp-setup.html Starting a text-mode Debian install using the virtual serial port (VSP) via an ssh connection to iLO 2] | ||
| + | * [http://lists.freebsd.org/pipermail/freebsd-proliant/2007-August/000292.html no remcons in ilo2?] | ||
| + | |||
| + | == "Remote Console - in use" == | ||
| + | |||
| + | === iLO === | ||
| + | |||
| + | There does not appear to be an option within the ssh and Web interfaces of the iLO to reset the iLO and clear an "in use" remote console connection. | ||
| + | |||
| + | * Select '''Administration''', and then '''Network Settings'''. Click '''Apply''', and iLO will reset, freeing the remote console. | ||
| + | |||
| + | === iLO 2 === | ||
| + | |||
| + | Two ways: | ||
| + | * Select '''Diagnostics''', and then click '''Reset''' under '''Reset Integrated Lights-Out 2'''. | ||
| + | * Select '''Administration''', and then '''Network'''. Click '''Apply''', and iLO 2 will reset, freeing the remote console. | ||
| + | |||
| + | == OpenSSH problems with iLO ssh server == | ||
The OpenSSH client on my Ubuntu 7.10 system is incompatible with the ssh server on an iLO system with 1.91 firmware. There may be problems with other OpenSSH/iLO versions. | The OpenSSH client on my Ubuntu 7.10 system is incompatible with the ssh server on an iLO system with 1.91 firmware. There may be problems with other OpenSSH/iLO versions. | ||
| Line 18: | Line 62: | ||
As a workaround, use PuTTY. | As a workaround, use PuTTY. | ||
| - | + | == Upgrading Firmware == | |
| - | + | To upgrade iLO/iLO 2 firmware through the iLO HTTPS interface, download the '''Online ROM Flash Component for Windows''', '''Extract''' the files, and '''Send firmware image''' of the appropriate firmware file (e.g., ''ilo191.bin''). Note that ''wine'' for UNIX systems works with the self-extracting .exe file. | |
| - | + | ||
| - | + | ||
* [http://h18013.www1.hp.com/support/files/lights-out/us/download/27327.html iLO Firmware] | * [http://h18013.www1.hp.com/support/files/lights-out/us/download/27327.html iLO Firmware] | ||
* [http://h18013.www1.hp.com/support/files/lights-out/us/locate/20_6220.html iLO 2 Firmware] | * [http://h18013.www1.hp.com/support/files/lights-out/us/locate/20_6220.html iLO 2 Firmware] | ||
| + | |||
| + | == Using Virtual Media with the Command-Line Interface == | ||
| + | |||
| + | The iLO 2 Virtual Media Java applet does not work well over a low-speed WAN[http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1111474&admit=-682735245+1193948869701+28353475]. My Linux ISOs would routinely not boot when using this Java applet. | ||
| + | |||
| + | As an alternative, ISOs may be loaded from an HTTP server using Virtual Media with the iLO command-line interface. | ||
| + | |||
| + | Example: | ||
| + | |||
| + | hutch@hutch:~$ '''ssh admin@''iLO''''' | ||
| + | admin@''iLO'''s password: | ||
| + | User:admin logged-in to ''iLO''(10.215.14.5) | ||
| + | iLO Advanced 1.42 at 08:37:01 Oct 03 2007 | ||
| + | Server Name: CZC7124NST00 | ||
| + | Server Power: On | ||
| + | |||
| + | </>hpiLO-> '''vm cdrom insert http://10.215.0.35/kickstart/boot_isos/5Server-i386_boot.iso''' | ||
| + | |||
| + | (Note: use IPs when specifying an HTTP server) | ||
| + | |||
| + | </>hpiLO-> '''vm cdrom get''' | ||
| + | VM Applet = Disconnected | ||
| + | Boot Option = NO_BOOT | ||
| + | Write Protect = Yes | ||
| + | Image Inserted = Connected | ||
| + | Image URL = http://10.215.0.35/kickstart/boot_isos/5Server-i386_boot.iso | ||
| + | |||
| + | (Note: the "NO_BOOT" means that the system will not boot off the "connected" image) | ||
| + | |||
| + | </>hpiLO-> '''vm cdrom set boot_once''' | ||
| + | |||
| + | (Note: The next boot will be from the connected image) | ||
| + | |||
| + | </>hpiLO-> '''power reset''' | ||
| + | |||
| + | You will likely want to start a Remote Console via the iLO 2's HTTPS interface. | ||
| + | |||
| + | == Rebooting iLO == | ||
| + | |||
| + | To reboot iLO without unplugging the power to the system, run the following command on the SMASH interface. | ||
| + | '''cd /map1''' | ||
| + | '''reset''' | ||
| + | |||
| + | [http://lists.freebsd.org/pipermail/freebsd-proliant/2006-March/000068.html any way to reset ilo without disconnecting power?] | ||
| + | |||
| + | == Virtual Power Options == | ||
| + | |||
| + | From [http://h20000.www2.hp.com/bizsupport/TechSupport/CoreRedirect.jsp?redirectReason=DocIndexPDF&prodSeriesId=397989&targetPage=http%3A%2F%2Fbizsupport.austin.hp.com%2Fbc%2Fdocs%2Fsupport%2FSupportManual%2Fc00553302%2Fc00553302.pdf HP Integrated Lights-Out 2 User Guide for Firmware 1.35]: | ||
| + | |||
| + | * '''Momentary Press''' button provides behavior identical to pressing the physical power button. | ||
| + | * '''Press and Hold''' is identical to pressing the physical power button for five seconds and then releasing it. This option provides the ACPI-compatible functionality that is implemented by some operating systems. These operating systems behave differently depending upon a short press or long press. The behavior of this option might circumvent any graceful shutdown features of the operating system. | ||
| + | * '''Cold Boot''' of the system immediately removes power from the system. The system will restart after approximately six seconds. This option is not available when the server is powered down. This option circumvents graceful operating system shutdown features. | ||
| + | * '''Reset System''' initiates a system reset. This option is not available when the server is powered down. The behavior of this option might circumvent any graceful shutdown features of the operating system. | ||
Current revision
Contents |
ssh console access
iLO
- To access a text console through the ssh iLO interface, use the remcons command.
iLO 2
- With iLO 2, remcons is not available; you may use the Virtual Serial Port (VSP) to access a text console.
- To access the VSP, login to iLO 2 via ssh and type vsp.
- The default Virtual Serial Port is COM 2; IRQ3; IO: 2F8H-2FFh (at least on an HP ProLiant DL360 G5).
You will have to start an agetty process on the COM2 port in order to use the VSP. RHEL 5 example:
- Add the following to /etc/inittab:
S1:2345:respawn:/sbin/agetty 115200 ttyS1 vt100
- Run telinit q to have init reread /etc/inittab.
In order to see the startup/shutdown messages on the VSP, add the following to the appropriate kernel line in /boot/grub/menu.lst:
... kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/ console=tty0 console=ttyS1,115200 ....
Links
- Topic: Configuring iLO2 and Debian with serial support
- Starting a text-mode Debian install using the virtual serial port (VSP) via an ssh connection to iLO 2
- no remcons in ilo2?
"Remote Console - in use"
iLO
There does not appear to be an option within the ssh and Web interfaces of the iLO to reset the iLO and clear an "in use" remote console connection.
- Select Administration, and then Network Settings. Click Apply, and iLO will reset, freeing the remote console.
iLO 2
Two ways:
- Select Diagnostics, and then click Reset under Reset Integrated Lights-Out 2.
- Select Administration, and then Network. Click Apply, and iLO 2 will reset, freeing the remote console.
OpenSSH problems with iLO ssh server
The OpenSSH client on my Ubuntu 7.10 system is incompatible with the ssh server on an iLO system with 1.91 firmware. There may be problems with other OpenSSH/iLO versions.
$ ssh -V OpenSSH_4.6p1 Debian-5build1, OpenSSL 0.9.8e 23 Feb 2007 $ echo "QUIT" | nc iLO 22 SSH-2.0-mpSSH_0.0.1 $ ssh admin@iLO admin@iLO's password: dispatch_protocol_error: type 100 seq 9 dispatch_protocol_error: type 100 seq 10 buffer_get_ret: trying to get more bytes 4 than in buffer 0 buffer_get_int: buffer error
As a workaround, use PuTTY.
Upgrading Firmware
To upgrade iLO/iLO 2 firmware through the iLO HTTPS interface, download the Online ROM Flash Component for Windows, Extract the files, and Send firmware image of the appropriate firmware file (e.g., ilo191.bin). Note that wine for UNIX systems works with the self-extracting .exe file.
Using Virtual Media with the Command-Line Interface
The iLO 2 Virtual Media Java applet does not work well over a low-speed WAN[1]. My Linux ISOs would routinely not boot when using this Java applet.
As an alternative, ISOs may be loaded from an HTTP server using Virtual Media with the iLO command-line interface.
Example:
hutch@hutch:~$ ssh admin@iLO admin@iLO's password: User:admin logged-in to iLO(10.215.14.5) iLO Advanced 1.42 at 08:37:01 Oct 03 2007 Server Name: CZC7124NST00 Server Power: On </>hpiLO-> vm cdrom insert http://10.215.0.35/kickstart/boot_isos/5Server-i386_boot.iso (Note: use IPs when specifying an HTTP server) </>hpiLO-> vm cdrom get VM Applet = Disconnected Boot Option = NO_BOOT Write Protect = Yes Image Inserted = Connected Image URL = http://10.215.0.35/kickstart/boot_isos/5Server-i386_boot.iso (Note: the "NO_BOOT" means that the system will not boot off the "connected" image) </>hpiLO-> vm cdrom set boot_once (Note: The next boot will be from the connected image) </>hpiLO-> power reset
You will likely want to start a Remote Console via the iLO 2's HTTPS interface.
Rebooting iLO
To reboot iLO without unplugging the power to the system, run the following command on the SMASH interface.
cd /map1 reset
any way to reset ilo without disconnecting power?
Virtual Power Options
From HP Integrated Lights-Out 2 User Guide for Firmware 1.35:
- Momentary Press button provides behavior identical to pressing the physical power button.
- Press and Hold is identical to pressing the physical power button for five seconds and then releasing it. This option provides the ACPI-compatible functionality that is implemented by some operating systems. These operating systems behave differently depending upon a short press or long press. The behavior of this option might circumvent any graceful shutdown features of the operating system.
- Cold Boot of the system immediately removes power from the system. The system will restart after approximately six seconds. This option is not available when the server is powered down. This option circumvents graceful operating system shutdown features.
- Reset System initiates a system reset. This option is not available when the server is powered down. The behavior of this option might circumvent any graceful shutdown features of the operating system.
