in reply to Re: Perl HP ilo vsp
in thread Perl HP ilo vsp

Hy, timeout for some reason doesn't close the connection:
my ($output, $errput) = $kssh->capture2({timeout => 1}, "vsp");
hangs and waits for input. Since we are on a iLO port only 1 connection at a time is allowed. Also there is no command to kill hung processes. These are the only available comands.
HP CLI Commands: POWER : Control server power. UID : Control Unit-ID light. NMI : Generate an NMI. VM : Virtual media commands. LANGUAGE : Command to set or get default language VSP : Invoke virtual serial port. TEXTCONS : Invoke Remote Text Console.
going to try with stin_data.

Replies are listed 'Best First'.
Re^3: Perl HP ilo vsp
by bulk88 (Priest) on May 31, 2012 at 20:59 UTC
    Try sending a Control-C AKA "\x03". I'm not sure what other keys combos kill a process in linux. I'm not sure what exactly your "shell" is, are you telneting (or encrypted telnet) into the ILO module or starting a app at a prompt that connects to the ILO module? Start Wireshark (not sure if it works on Linux), start the session to the ILO module, unencrypted, do whatever key strokes you need to do by hand, stop capturing in wireshark, review the traffic for the key sequences. If you can't do it by hand at a telnet window, you can't do it with perl.
Re^3: Perl HP ilo vsp
by being_rachna (Initiate) on Oct 17, 2016 at 13:32 UTC

    Hi! Did you end up getting solution to this? If so, please share the same.