[Date Prev] [Date Index] [Date Next] [Thread Prev] [Thread Index] [Thread Next]

Re: conserver via iLO3

Bruce Edge bruce.edge@gmail.com
Wed, 13 Oct 2010 16:41:46 GMT


On Tue, Oct 12, 2010 at 8:05 PM, Bjorn Helgaas <bjorn.helgaas@hp.com> wrote:
> On Tue, Oct 12, 2010 at 05:27:18PM -0700, Bruce Edge wrote:
>> Hi Bjorn,
>>
>> No, I haven't resolved this yet. All my iLO3 boxes have a nasty bug in
>> that the VSP gets very slow and responds to 1 key every 5 sec or so
>> after a while.
>> I'm still chasing this down with HP.
>> Once that's resolved I'll be able to readdress this.
>>
>> In the mean time, if you get it working, let me know what you did :-)
>>
>> Of course my problems could be related to the slow key thing. You've
>> not had problems with that?
>
> No, I haven't, but I don't have conserver connect via the VSP.
> I have an RS232 cable from the box to a Cyclades terminal server,
> and conserver talks to the Cyclades.
>
> I like the idea of using the VSP because it would require less
> cabling, but I haven't gotten it to work reliably.  I haven't
> tried for quite a few years, so I don't remember the details.
> I think it's quite embarrassing that there's not a simple way
> to connect conserver with the iLO, but I don't work on the iLO
> team :-(
>
> Bjorn

Yes, I would think anyone from HP _should_ have that working :-)

It works flawlessly with iLO2.
Here's the config I use:

default ilo-vsp {
    type host;
    port 23;
    initcmd "/usr/local/bin/ilo-vsplogin root password";
}

console sqiggle {
    master localhost;
    include ilo-vsp;  host squigglem; <- the "m" suffix resolves to
the iLO IP addr
}

0 %> cat /usr/local/bin/ilo-vsplogin

#!/usr/bin/expect -f
#
#####################################################################
# Sample expect script for automating iLO VSP Logins with conserver #
#####################################################################
#
# Filename: /usr/local/etc/ilo-vsplogin

# Hardware Supported: ProLiant DL360 G4, DL380 G4, BL30p, etc.
# iLO Firmware Version Required: v1.60
# iLO must have Telnet logins enabled, encryption disabled.
# Virtual Serial Port must be configured in RBSU.
# To be useful, the operating System must be running a console on
# the VSP (Virtual Serial Port).

set send_slow {1 0.02}
set username [lindex $argv 0];
set password [lindex $argv 1];

expect "Name:  "
send -s "$username\r"

expect "ssword: "
send -s "$password\r"

expect "iLO> "
send -s "VSP\r"


I can't use the above with iLO3 because it doesn't allow telnet, so I
have to use ssh.
The problem I have is that the iLO3 shell has some inherent problem
that it is dog slow.
I have an escalated incident with HP on this right now.
I feel that if the iLO ssh login was not crippled by this problem,
that the following ssh version of the above script may actually work.
Although, this is where I got stuck, so there may be other issues too.
The timeout you mentioned may be a problem, but it should at least
connect and work a bit at least right?

#!/usr/bin/expect -f
#
#####################################################################
# Sample expect script for automating iLO VSP Logins with conserver #
#####################################################################
#
# Filename: /usr/local/etc/ilo-vsplogin

# Hardware Supported: ProLiant DL360 G4, DL380 G4, BL30p, etc.
# iLO Firmware Version Required: v1.60
# iLO must have Telnet logins enabled, encryption disabled.
# Virtual Serial Port must be configured in RBSU.
# To be useful, the operating System must be running a console on
# the VSP (Virtual Serial Port).

set send_slow {1 0.02}
#set username [lindex $argv 0];
#set password [lindex $argv 1];

#expect "Name:  "
#send -s "$username\r"
#send -s "ssh root@kaan-40m"

#expect "ssword: "
#send -s "$password\r"

send -s "\r"

expect "iLO> "
send -s "VSP\r"




>
>> On Tue, Oct 12, 2010 at 3:30 PM, Bjorn Helgaas <bjorn.helgaas@hp.com> wrote:
>> > On Tuesday, October 12, 2010 04:16:02 pm Bjorn Helgaas wrote:
>> >> Hi Bruce,
>> >>
>> >> I came across this query:
>> >>   http://www.gossamer-threads.com/lists/conserver/users/1568
>> >>
>> >> Do you have that working?  I'd like to be able to do the same.
>> >>
>> >> I did trip over one issue that maybe you've already fixed.
>> >> An ssh session to the iLO3 times out after 60 seconds,
>> >> apparently because of this issue:
>> >>
>> >>   http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1286921348019+28353475&threadId=1449710
>> >>
>> >> I used this:
>> >>
>> >>   ssh -o ServerAliveInterval=0
>> >>
>> >> and that seems to help.
>> >
>> > The default ServerAliveInterval is 0, so I guess you shouldn't be
>> > tripping over this unless you have a per-user ssh setting as I do.
>> >
>> > Bjorn
>> >
>