[TriLUG] scripted sesssions with ssh

Joseph Mack NA3T jmack at wm7d.net
Mon Jul 6 14:01:28 EDT 2009


On Mon, 6 Jul 2009, Shawn Hartsock wrote:

> Would something like this work for you?
> http://www.wellho.net/resources/ex.php4?item=p616/sshlet

hmm. I guess you can keep the connection open forever. 
Didn't know you could do this. Thanks

> Naturally, you can do the same sorts of things in Python, Java, C or
> any language you prefer.
> For example in Python:
> http://twistedmatrix.com/projects/conch/documentation/examples/sshsimpleclient.py

yow. That's a lot of code.

> Of course, I'm almost afraid to suggest it since it sounds like its
> almost time for your team to consider something like Nagios.

The code I've got is feeding rrdtool. I looked at Nagios a 
while back (maybe 10yrs ago, or it seems that far back) and 
couldn't figure out how it worked.

Thanks to Reggie and John for your comments. I prefer just 
running the commands on the monitored machine and shipping 
the final results back to the monitor machine. Running 
everything through the keyhole of ssh from the monitoring 
machine has been hell, but I'm not the manager

Joe

-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!



More information about the TriLUG mailing list