Can we build a tool for Windows to retrieve data from UNIX servers (putty console)


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Can we build a tool for Windows to retrieve data from UNIX servers (putty console)
# 1  
Old 07-28-2014
Can we build a tool for Windows to retrieve data from UNIX servers (putty console)

Hi Friends,

Is it possible to build a windows tool ( a java applet maybe? ) which can retrieve data and display after performing certain commands on unix servers ( simple grep / script output) after logging into putty console. I am on a company server so please bear that in mind. I might have no permissions installing 3rd party software. I can install freewares like eclipse and also MS Studio is possible.

Also, if it is possible, then how to get started . Is there guides available for this.
# 2  
Old 07-28-2014
You may want to look into java/applet clients that have an ssh library. Putty can do a number of protocols (ssh, telnet,...). I am guessing you are using putty via the ssh protocol to connect to the server. In short, what you will be looking for is a java ssh library or a tool someone already has written. Check out... MindTerm SSH Client 3.1.2 Signed Java Applet

You can also issue commands using ssh and parse the return; something like....
Code:
ssh user@host  ls

# 3  
Old 07-28-2014
Not sure I understand what you're about. You are extracting data on a windows PC, which you want to work upon on a *nix server, and then?

Did you consider using *nix "emulations" immediately on windows PCs, like busybox or cygwin?
# 4  
Old 07-28-2014
Also, plink makes it possible to run PUTTY-like things in a batch file. It's made by the same people as putty.
# 5  
Old 07-28-2014
Quote:
Originally Posted by RudiC
Not sure I understand what you're about. You are extracting data on a windows PC, which you want to work upon on a *nix server, and then?

Did you consider using *nix "emulations" immediately on windows PCs, like busybox or cygwin?
I think i dint make myself very clear. Actually i work on a windows PC and i occasionally login to putty, then ssh to servers to check for performance logs etc. I want to create a tool which willl have different buttons. If i click one button, it will login to putty, then ssh to the server from there, then fetch performance logs and display it on the Tool screen. Other buttons for other purposes etc. It will make things very easy for me and my team. Smilie

---------- Post updated at 12:11 PM ---------- Previous update was at 12:08 PM ----------

Quote:
Originally Posted by blackrageous
You may want to look into java/applet clients that have an ssh library. Putty can do a number of protocols (ssh, telnet,...). I am guessing you are using putty via the ssh protocol to connect to the server. In short, what you will be looking for is a java ssh library or a tool someone already has written. Check out... MindTerm SSH Client 3.1.2 Signed Java Applet

You can also issue commands using ssh and parse the return; something like....
Code:
ssh user@host  ls

Actually i have to login to the putty server first using my credentials. From there, i can ssh to different servers. So i cannot directly use ssh command from Windows.
# 6  
Old 07-28-2014
Is it possible we're talking past each other again? putty is one implementation of the "ssh" protocol (and others) on windows systems, with which you can login to any ssh server within reach. What be a "putty server"? Never heard of (may be my fault, please enlighten me).
What I once did is: within putty on a windows machine, I created several named setups (target server & login script) that allowed users to click that setup to provide that certain service and that other setup for that other service...
# 7  
Old 07-28-2014
Read your putty documentation again. Chapter 9 describes using pagent to supply authentication. Once pagent is running you can do stuff like this:
Code:
C:\Windows\System32>
C:\Windows\System32>
C:\Windows\System32>plink joeblow@corp-linux4  uname -a
Linux corp-linux4.dulles.orbital.com 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:19 EDT 2007 x86_64

C:\Windows\System32>

This means you can write batch files (or powershell or vbscript, etc) that log into a unix system and run a command.
These 2 Users Gave Thanks to Perderabo For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

I need to build a tool for Automatic GUI Validation

Hi Friends, So we have an internal link in my project. We generally login into it with our ids , then enter some generic values to check whether the functionality is working fine. If it is fine, the webpage delivers a successful preview or else throws error. What i want to do is write a... (3 Replies)
Discussion started by: srkmish
3 Replies

2. Shell Programming and Scripting

How can i run sql queries from UNIX shell script and retrieve data into text docs of UNIX?

Please share the doc asap as very urgently required. (1 Reply)
Discussion started by: 24ajay
1 Replies

3. Windows & DOS: Issues & Discussions

Connecting to UNIX from Windows without using putty

Hi Is there any command which we can try connecting unix from windows without using any third party tool. Thanks in advance KVB (9 Replies)
Discussion started by: bikky6
9 Replies

4. Solaris

M5000 XSCF Console disconnecting when putty session is closed

Hi, I would appreciate some help. I remotely access, across a VPN, an M5000 and when I connect to the XSCF I can then access the OS using console -d0 and then I can get to the console. The problem I have is that I need to run something which will take many hours and I can't run it in the... (6 Replies)
Discussion started by: giles.cardew
6 Replies

5. Shell Programming and Scripting

regarding Color scheme in linux console connected through putty.

Hi All, I am connecting to SunOs 5.8 server from windows machine through putty. My problem is commands are not showing any colours results. I want to see 'ls' command should list directories in 'red' and files in 'green' etc. How to do it . Please help. Also How to enable syntax colouring in... (6 Replies)
Discussion started by: Sooraj_Linux
6 Replies

6. UNIX for Dummies Questions & Answers

startX windows application during boot.....putty connection takes the windows

Dear all i am new to linux/debian i run my application on the computer...during startup in bashrc i wrk wid dis script to invoke startx..i do this above command and it works perfectly... if && ; then startx -- -br 1>/dev/null exit 0 fi i use winscp for file transfer and putty for... (1 Reply)
Discussion started by: venkat_330
1 Replies

7. UNIX for Dummies Questions & Answers

tool scan my network and get all Unix servers

Hello, is there any tool where I can scan my netwrk and get all types of Unix servers? (2 Replies)
Discussion started by: fsmadi
2 Replies

8. UNIX for Dummies Questions & Answers

Windows to Linux remote console using VNC brings up blank console screen with only mouse pointer

:confused:Hi This was installed on the Linux box a few weeks back by a guy that no longer works for us. All worked fine until last week. Now when we connect its just a blank screen with no icons. I get a whole bunch of errors when starting the service too: Tue Feb 23 14:29:45 2010 ... (1 Reply)
Discussion started by: wbdevilliers
1 Replies

9. UNIX for Dummies Questions & Answers

Script runs fine on UNIX Server...Not through MSK Tool kit on Windows Server

I have a .sh script which was running fine on all the UNIX Servers (AIX, SunSolaris). The script requires two mandatory parameters and many optional parameters. Now at a different client place who are on a Windows Server, when I try to execute the script through MKS Toolkit, there are couple of... (5 Replies)
Discussion started by: madhunk
5 Replies
Login or Register to Ask a Question