Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Perl HP ilo vsp

by salva (Monsignor)
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.


Comment on Re^3: Perl HP ilo vsp
Select or Download Code
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://973490]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2014-11-23 03:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (128 votes), past polls