Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^3: Perl HP ilo vsp

by salva (Abbot)
on May 31, 2012 at 10:25 UTC ( #973490=note: print w/replies, xml ) Need Help??

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

Well, getting this kind of devices to work often involves a considerable amount of trial an error until you find the exact combination of options.

Try requesting a tty on the remote side:

my ($output, $errput) = $kssh->capture2({tty => 1, stdin_data => $esca +pe_seq}, "vsp");
Or adding some carrier returns before the escape sequence.

Maybe the device will not accept the sequence until it has send some prompt. In that case, you will like to use Expect, or just use open2 to read the data and send the escape sequence when it is done.

Try also with a timeout and setting the kill_ssh_on_timeout flag.

Replies are listed 'Best First'.
Re^4: Perl HP ilo vsp
by s4mur4i (Initiate) on Jun 01, 2012 at 10:25 UTC
    Yup, its alot of playing around with...:( Expect dies with errors, even tried to switch to raw mode didnt help.
    tcsetattr: Input/output error
    basically there is traffic, ssh is sending keep alives so timeout is set from server side to 60 seconds, which is to long.. setting timeout on my side doesnt change anything.. its interesting. added \n but didnt help.. I tried with a fork and to create piped filehandels but no information was sent to the main process... I guess hp has a very odd TTY implementation.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://973490]
and the radiator hisses contentedly...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2018-02-23 05:08 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (300 votes). Check out past polls.