<div dir="ltr"><div>I found online two ways to do this with java+ssh:<br><a href="http://zerioh.tripod.com/ressources/sockets.html">http://zerioh.tripod.com/ressources/sockets.html</a><br></div><div><a href="http://www.jcraft.com/jsch/examples/">http://www.jcraft.com/jsch/examples/</a><br>

<br></div><div>Take a look, people sais those examples works and are interesting...<br></div></div><div class="gmail_extra"><br clear="all"><div>Mauro<br><a href="http://mauro.limeiratem.com">http://mauro.limeiratem.com</a> - registered Linux User: 294521<br>

Scripture is both history, and a love letter from God.</div>
<br><br><div class="gmail_quote">2013/11/4 Dave Cramer <span dir="ltr"><<a href="mailto:davecramer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" target="_blank">davecramer@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">I'd like to get various pieces of information such as iptables from a machine remotely, using a java program.<div><br></div><div>One option is to use ssh to make calls, but determining when it is done is problematic. IE you can wait for a certain amount of time for all of the output, but that just seems fraught with problems.</div>



<div><br></div><div>Another option is to use NRPE or the like to make calls remotely.</div><div><br></div><div>Is there something out there that does this already ?</div><span class="HOEnZb"><font color="#888888"><div><br clear="all">

<div>Dave Cramer</div>
</div></font></span></div>
</blockquote></div><br></div>