Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: net::OpenSSH several commands, stdout are mixed up

by salva (Canon)
on Sep 17, 2020 at 20:50 UTC ( [id://11121885]=note: print w/replies, xml ) Need Help??


in reply to Re^2: net::OpenSSH several commands, stdout are mixed up
in thread net::OpenSSH several commands, stdout are mixed up

Well, maybe the ICMP packets coming back with the expired message notices are being captured by the wrong process.

Try running a different command on the remote host instead of traceroute.

  • Comment on Re^3: net::OpenSSH several commands, stdout are mixed up

Replies are listed 'Best First'.
Re^4: net::OpenSSH several commands, stdout are mixed up
by Bolemo (Acolyte) on Sep 17, 2020 at 23:24 UTC

    Yes, I am sure that you put exactly your finger on the issue.

    Since the output is the same on the remote host than on the SSH slave sessions, the problem is not Net::OpenSSH or even Perl related. It is really about this busybox traceroute implementation on the host and therefore outside the scope of this very helpful place ;)

    I was able to solve (avoid) the problem by having the Smokeping using only one instance at a time for that custom probe, so no multiplexed ICMP return packets can be mixed up by traceroute on the host.

    By the way, this Net::OpenSSH module is great (thanks Salva for it) and use very little CPU on the local device and the remote host. I started by simply changing the TraceroutePing probe to use ‘ssh user@host traceroute etc...’ instead of ‘traceroute etc...’. It worked but the toll on local and remote CPUs was very bad.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-18 04:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found