Closed GoogleCodeExporter closed 9 years ago
Sorry for the delay.
I don't have access to anything with an HP iLO 3 interface to test against.
In developing an expect script, I start by ssh'ing directly to the device and
recording the patterns and keystrokes needed to get at the remote console.
Next, I try making those changes to an existing script -- such as hp-ilo.exp
like you've already done. I find setting "exp_internal 1" and "log_user 1" to
be helpful for troubleshooting at this stage. I test the script by invoking it
directly from the command-line (outside of conmand), and making changes until
everything works. Then I add it to conman.conf, restart conmand, and try
accessing it through conman, making changes as necessary, etc.
So starting with step 1, so-to-speak, are you able to access the remote console
if you ssh directly to the device (ie, outside of both expect and conman, and
without connecting to the virtual console via a browser and hitting ALT-F2)?
After connecting via ssh and authenticating, does entering "textcons" connect
you to the remote console?
Original comment by chris.m.dunlap
on 29 Dec 2011 at 3:36
Thanks Chris,
I think I have some of it working during bootup/shutdown. One thing I'm stumped
on is a way to pass the ALT-F2 to the console. Both in the textcons and in
conman, I can't seem to pass any key sequence that works. With expect in debug
mode, it appears hitting ALT-F2 sends something like "\u001b03Q". Any tips on
passing the right code?
Thanks!
Original comment by cameron....@gmail.com
on 5 Jan 2012 at 12:39
Check the user's manual to see if they support alternate character sequences
for ALT-F2 and such. If you're able to determine the proper character
sequence, you should be able to send it from within Expect. Here's a related
Expect FAQ entry:
54. How do I send control characters or function keys?
http://expect.sourceforge.net/FAQ.html#q54
Original comment by chris.m.dunlap
on 5 Jan 2012 at 1:16
Using that FAQ I was able to get a new Octal code to use, but unfortunately,
that didn't work (I tried multiple variations as well). However, I did find out
what I think is the problem. I need to be using the iLo's VSP (Virtual Serial
Port) mechanism rather than TEXTCONS. But to use the VSP, you have to have an
iLo Advanced license. In short, from what I can tell, you need the iLo Advanced
license, even on the Blades, to get conman working.
Original comment by cameron....@gmail.com
on 5 Jan 2012 at 8:10
Closing out old support issue.
Original comment by chris.m.dunlap
on 28 Feb 2012 at 8:48
Original issue reported on code.google.com by
cameron....@gmail.com
on 22 Dec 2011 at 11:05Attachments: