I am writing a back end program that telnets into a server, runs some commands and saves all the output from those commands. Something just like Expect.
I would like to ... |
Is it possible to get the following information via Telnet?
- Software version
- config files
- config register
- information on traffic and errors
If you have sample code that you could share that would be really useful so ... |
I am talking to a device via a telnet connection (telnet client from apache), the device requires us to send a CTRL-B to go into a certain mode. How can ... |
I've already seen this thread, but I'm still having an issue: http://stackoverflow.com/questions/1731299/starting-vlc-player-in-java It appears the Java bindings for VLC are no longer under active development and do not support ... |
I need to make a small test program in java which has to communicate with remote Windows server using telnet, or openSSH. Which library would you suggest to use? I'd like ... |
I was wondering if anyone had experience retrieving data with the 3270 protocol. My understanding so far is:
Connection
I need to connect to an SNA server using telnet, issue a command and ... |
Is there an open source telnet API/library out there for Java (something like Python telnetlib)? I need to connect to a server using telnet and execute some commands from within a ... |
|
I work for a large organization that supports many different sites on a nation wide network. Our vendor supplies diagnostic tools for the hardware we use at each site. ... |
I have a simple game which you can play over telnet, but it refreshes the screen by printing a few line breaks and then sending the entire screen again. Sometimes this ... |
Is there any way to make a telnet app to clear the output client-side (using Java Socket connection + Buffers)? For example, the program queries the connected user for login and ... |
does anybody know how to read output from telnet with Java? I'm able to connect to
the server and execute some commands, but I need output from that commands.
For example, command ... |
I want to provide a telnet interface to my Java application, primarily so that developers can interact with the app, view debugging information, etc - before we've implemented our full end-user ... |
I've been trying to figure this one out for a while now:
I've set up an apache commons telnet client that can send commands to a server and read responses. My program ... |
I have looked at several questions here about using Java to drive a telnet session, and although I see some code down at the socket/protocol level, and a few recommendations for ... |
i am trying to interact with an application in windows server through telnet, so i am using TelnetClient() method. I could interact (send commands and retrieve results) using System.in.read(), however what ... |
I am Trying to connect to Host using Telnet but I am getting java.net.UnknownHostException:
Here is the Code for your reference....
public AutomatedTelnetClient(String server, String user, String password) throws IOException {
...
|
I am trying to get an solution but i have found any thing on it. I want to create an GuI Application where i am accepting Host Port Number,User Name ... |
hey, i am developing an application in which at help menu there will be an PDF file will be open in whatever browser depending uopmn the OS,i have done almost,but now the probelm is this that i am using windows Envoirenment,but now i also want to test on linux or solaris,i have thse envoiremnets on other machines,so i want to connect ... |
I am having trouble locating what I consider a reasonable telnet client. We have no real requirements except to be able to capture the output! The one we're using (mud.de?) either echos the output to the console or *eats* it - there seems to be no way to capture it in a buffer without having to insert delays to make sure ... |
Hello, I'm developing a program to send and receive output to a unix program using process builder. Problem is, I'm developing on Windows. What I want to do is execute the program remotely; What works when executing from Unix: ProcessBuilder pb = new ProcessBuilder("my_command"); Process process = pb.start(); ... OutputStream os = process.getOutputStream(); PrintStream ps = new PrintStream(new BufferedOutputStream(os), true); ps.println("my_input"); ... |
Hi friends, Now, there is a certain server that one can telnet into using old conventional way, that is from a shell. However, I would like to do the same from form on a webpage which, on submitting, does the logging in, querying the command and returning the results back to me on a web page. I have googled about java ... |
I have a server and client running on 2 separate machines. I want to invoke a telnet window from the client using WebStart. I was able to do that, but the catch is telnet should happen from the server machine, not from the client. Any suggestion as to how to do it? |
HI, I am using following program to ping a remote server-- import java.io.InputStream; import java.io.PrintStream; import org.apache.commons.net.telnet.TelnetClient; public class Test { private TelnetClient telnet = new TelnetClient(); private InputStream in; private PrintStream out; private String prompt = "#"; public Test(String server, String user, String password) { try { // Connect to the specified server telnet.connect(server, 22); // Get input and output ... |
It doesn't make sense to speak of "Telnet connectivity in Java code". You might ask whether there is Telnet connectivity to some other machine - that depends on whether the other machine is set up to be a Telnet host, and whether there's a network connection to that machine that allows Telnet traffic to go through. You can test this using ... |
Hi All, I am trying to connect to a server with the help of Form. the form contains host address, user name and password. I have a Small Code which works fine with Command prompt.Can any one help me doing the same with the help of GUI. Java Code: import org.apache.commons.net.telnet.TelnetClient; import java.io.InputStream; import java.io.PrintStream; public class AutomatedTelnetClient { private TelnetClient ... |
Dear Friends, This is my code. import java.net.*; import java.io.*; public class telnet { public static void main(String args[]) { try { Socket telnetClient=new Socket("sprasadh",23); BufferedReader input=new BufferedReader(new InputStreamReader(System.in)); BufferedReader stdin=new BufferedReader(new InputStreamReader(telnetClient.getInputStream())); PrintWriter out=new PrintWriter(telnetClient.getOutputStream()); System.out.println("connected"); String temp=""; while((temp=stdin.readLine())!=null) { System.out.println(temp); } } catch(Exception e) { e.printStackTrace(); } } } after executing this code, i can view only "connected" in ... |
hi, Is it possible to get the network device name (canonical name, vendor name) using telnet in JAVA. scenario => I have certain IPs in the local network that I need to know the name of them. So I thought of telnet using JAVA program. to get them. Is this possible. thank you. Oh & need to get the name in ... |
I used the FTP classes from Commons/Net and I didn't have much trouble figuring out what to do given just the API documentation. But then I know how FTP is supposed to work, I might have more problems with Telnet since I don't understand that quite as well. So no, if you're a beginner then you might have trouble getting up ... |
Hi: I have two servers hostA and hostB. hostA is my web server. I wantmy users who can reach the webserver on hostA, run an applet that connects to hostB using SSH and telnets to a remote host (somewhat like a telnet proxy). I am a newbie at java. So wondering if this can be done and if someone can provide ... |
I need something more complex than just establishing connection to port 23. I've used Ganymed SSH-2 (http://www.ganymed.ethz.ch/ssh2/) for my ssh implementation and it works like charm. I need to send IOS commands once I establish connection and also read the output as a result of my commands and therefore do something meaningful with this output. If I can find something similar ... |
Hello all, I am currently using the TelnetClient class from org.apache.commons.net.telnet.TelnetClient but i have encourntered a problem. When calling TelnetClient.disconnect() from some code excecuting on my home machine, the method returns instantly, but when calling the method from my code running on an android device the method just hangs, never returning. I know this is not an android forum but i ... |
|
Thanks for your replys. My current algoritm does not cover this as in.read() will block until there is something to read! I may try have two threads and a static flag to say weather the thread which sends commands to the server can perform its function.. ill let you know how i get on! |
|
Hi Guys, I work on a JAVA project that has two parts. In one part we provide Command Line Integration(CLI) for users. Now the CLI part exist in C++ .So, we use JNI to connect it to my java project for processing it. Now I am thinking of converting my whole project to JAVA. I need some suggestions, how I can ... |
|
Hello masijade, Thanks a lot for the reply. However I have Apache API and plink command line utility as well to do telnet. But whenever I try to do telnet to AS400 server, I always get bunch of garbage Strings on command prompt which makes me difficult to handle. But when I tried same using "telnet servername" from windows, I never ... |
You could try using a telnet URL. Something like this: telnet://201.78.23.122:1234 Of course, the user's browser needs to be configured correctly to call the telnet client. In Windows, try AbsoluteTelnet. It configures your browser for you so these types of telnet links will work properly. SSH links too: ssh://201.78.23.122:1234 Brian Pence Celestial Software AbsoluteTelnet (for telnet and ssh) |
|
MSSL wrote: It's not working, anyone familar with java with dos,please help if u are capable Since this is a Java forum, most people who respond to this forums are familiar with Java! Most people who visit here are familiar with DOS. Reading minds is a different matter since you don't say what the symptoms of "It's not working" are it ... |
|
hi all i am trying to build website in jsp.which will run with tomcat server on win xp..from the jsp i want to open one unix session and want to check there whether the particular script is running on unix or not by using (ps -ef | grep abc.pl) and then want to display the same in jsp... my problem is ... |
|
Ok, so, here's what I want to do. I want to make a java applet, that can access the terminal(console, commandline, whathaveyou) of a remote computer, that has an authorization process(public keys, over SSL, SSH, user pw login, etc) and so you can pass command line commands on any computer you put the applet on, and give the proper authorization. I'm ... |
This kind of using the telnet command is to have an easy, command-line controlled way of communicating with a server, to have a command-line driven interactive agent to a given server (assuming a textual protocol). There is absolutely no need to communicate with a mail server via the Windows telnet.exe program form a Java program, given the fact Java has the ... |
|
|
|
|
|