D
D
Dmitrij2016-12-19 12:30:39
Java
Dmitrij, 2016-12-19 12:30:39

Java expect. Library selection. Is it possible to run in multi-threaded mode?

Good day.
Linux has a wonderful expect tool, which I have repeatedly used to query network equipment via telnet and ssh protocols.
I found several java implementations of this utility, each of which theoretically would also solve similar problems.
However, there are many network devices, there is little time, and I would like to parallelize this task.
Perhaps someone will advise an expect-like library that would work safely in multithreading mode?
Specifically, I'm quite new in Java, so I would also be grateful for a warning about possible pitfalls.
PS. Yes, I know that there is SNMP and we use it for most devices. Simple and tasty, but nevertheless, there are still a lot of pieces of iron that are available exclusively via ssh and telnet.
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
al_gon, 2016-12-19
@Vahmur

If ssh to Java or Ant then choice number 1 is www.jcraft.com/jsch

D
Dmitrij, 2016-12-19
@Vahmur

Thanks for answers.
I will test.
I wanted exactly something like expect, because spawn telnet + spawn ssh looked very tempting in one bottle.
You may have to run each of the protocols with your own library.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question