Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://973490]
help
Chatterbox?
[Discipulus]: i miss what an undocumented instructions can be, and how can be used
[zentara]: perf
[marto]: X86_instruction_li stings
[marto]: Illegal_opcode
[zentara]: marto arn't those NSA secrets? :-)
[marto]: not if you keep telling people :P
[zentara]: I had to disable hyperthreading on my machine because of that.
[Discipulus]: thanks marto but... at the moment this seems a bit beyond my faculties.. ;=)
[zentara]: a thread goes into a wait state after emitting a wait to all other threads. It locks up a machine completely.
[marto]: if you mean the recent hyperthreading bug, I don't think that's NSA related?

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (14)
As of 2017-07-28 12:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (428 votes). Check out past polls.