开发者

How to get the details using telnet API

Is it possible to get the following information via Telnet?

  1. Software version
  2. config files
  3. config register
  4. information on traffic and errors

If you have sample code that you could share that would be really useful so that I can procceed further with your help开发者_StackOverflow .

I will be thankful for your valuable replies.


Telnet is nothing more than a communication protocol to generally a shell interface on another Unix machine. The remote telnet daemon will most likely invoke authentication and shell processes so everything that you are requesting is yes, possible though you will thus require authentication.

As you know telnet for shell is primarily used internally inside secured networks and rarely on the 'net any longer.


Telnet is wrong protocol to do this kind of stuff. It is an (out-dated) protocol for interactive terminal sessions. You should be looking at "ssh" to execute commands on the remote machines, and then figuring out which commands you need to execute to extract the information of interest to you.

Some of the information you are after may also (in theory) be available using SNMP, but things like configuration files and application versions won't. The "ssh" approach will allow you to harvest any information that is available via commands run from the command line.

Injecting Java into the mix is almost certainly a bad idea. Java is best at tasks that are platform independent, but what you are trying to do is inherently platform specific.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜