This small script lets you start iLO Java-based console from shell.
- iLO 2/3 doesn't have HTML5 console
- Mounting local (from the client computer) ISOs is PAINFULLY slow via HTML5 client
If you just start it, it will ask you for everything:
% ./ilo-console.sh
Connecting to iLO 4 (set ILO_VERSION to change)
iLO Host: foo
iLO Login: bar
iLO Password:
You can set the following environment variables:
ILO_VERSION
: iLO version, 2, 3, and 4 are supportedILO_HOST
: hostname/IP of the server, optionally with port (e.g.example.com
,10.0.0.3
,example.com:1234
)ILO_LOGIN
: username for iLOILO_SKIP_DEFAULTS
: when set to anything it will auto-assume defaults
# Just use provided values
% ILO_SKIP_DEFAULTS=1 ILO_HOST=10.0.0.3 ./ilo-console.sh
Connecting to iLO 4 (set ILO_VERSION to change)
iLO Host: 10.0.0.3
iLO Login: foo
iLO Password:
# Suggest provided values
% ILO_LOGIN=foo ./ilo-console.sh
Connecting to iLO 4 (set ILO_VERSION to change)
iLO Host: 10.0.0.3
iLO Login [foo]:
iLO Password:
# Suggested values can be changed
% ILO_LOGIN=foo ./ilo-console.sh
Connecting to iLO 4 (set ILO_VERSION to change)
iLO Host: 10.0.0.3
iLO Login [foo]: bar
iLO Password:
No.
Stop creating security nightmares.
If you're getting an error similar to the one below:
It means your JRE has TLSv1.1 disabled. Newer versions disable it automatically upon update. Old iLO versions (<4) cannot use TLSv1.2, so the JRE download fails.
To re-enable TLSv1.1 support open Java Control Panel (e.g. on macOS it's under -> System Preferences -> Java). Navigate to the "Advanced" tab and check "Use TLS 1.1".
In this case you may be having JRE which doesn't support TLSv1.1 at all. The script has an option for that too - autoproxy. To make it work you need to have mitmdump (part of mitmproxy package) and socat installed in your system.
Then run the script with ILO_AUTOPROXY=1
. It will automatically:
- Setup local proxy to your iLO web ignoring ancient TLS & self-signed certificates error
- Setup local proxy for iLO remote console
- Setup local proxy for iLO virtual media connection
It works only on 32bit java, donwload and unpack jdk1.8.0_202 on script path and replace 139 string to
nohup sh -c "/usr/bin/env ./jdk1.8.0_202/bin/javaws -wait $ILO_JNLP; rm $ILO_JNLP" >/dev/null 2>&1 &