Solved

Looking for Freeware terminal emulator with macro function

Posted on 2008-10-29
5
1,711 Views
Last Modified: 2012-05-05
Hi

I'm looking for a terminal emulator freeware (like Putty or possibly QVTerm)
that could program a macro or a series of commands/instructions that's
sent to the host server :

The  macro or series of instructions I plan to take are :
a) login using ssh into the server
b) run repeatedly the server's OS commands :
      date
      netstat -an | grep 1521
      df -k
c)I plan to do "screen capture" to capture

The set of commands in step (b) above will be repeated
continuously & I will stop it manually (by exiting the terminal
emulator) once I'm done capturing enough info

Appreciate if you can give me some instructions on how to get
this going quickly for the freeware that you've recommended

tks

0
Comment
Question by:sunhux
  • 2
  • 2
5 Comments
 
LVL 16

Assisted Solution

by:Blaz
Blaz earned 250 total points
ID: 22829993
I believe that what you are trying to accomplish can be done in other ways. For example you could log in to the server and run:
watch -n 10 "date >> report.txt; netstat -an | grep 1521 >> report.txt; df -k >> report.txt"
All the data will be saved to report.txt file in interval of 10 seconds. You can view the contents of the report file by logging in a separate session by issuing the command:
tail -f report.txt


On the other hand for scripting purposes putty includes a command line utility plink
http://the.earth.li/~sgtatham/putty/0.60/htmldoc/Chapter7.html#plink

0
 

Author Comment

by:sunhux
ID: 22830017
Well, actually I'm not trying to capture those outputs in a Unix server,
it's a customized Unix that don't have "watch"/"tail" that runs on
Netapp's Filer : they have weird commands but I need to be able
to run the custom Unix commands repeatedly with 10 seconds
pause in between before repeating the same set of commands
all over again
0
 
LVL 16

Accepted Solution

by:
Blaz earned 250 total points
ID: 22830093
Does this system have ssh key logon? If it does the read section 7.2.2 as this will solve the a) part of your question.

http://the.earth.li/~sgtatham/putty/0.60/htmldoc/Chapter7.html#plink

So create a batch file currentState.bat that will read:
date /T>> report.txt
"plink login.example.com -l myUserName netstat -an | grep 1521" >> report.txt
"plink login.example.com -l myUserName df -k" >> report.txt

Create a job that will run this batch file every 10 seconds...
0
 
LVL 22

Assisted Solution

by:Syed Mutahir Ali
Syed Mutahir Ali earned 150 total points
ID: 22830924
use teraterm

that might help

http://ttssh2.sourceforge.jp/
0
 

Author Comment

by:sunhux
ID: 22831085
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
We all know how boring and exhausting it is to transfer huge web projects developed locally to a webserver simply via FTP. The File Transfer Protocol is a really nice solution if you need to transfer small amounts of files, but if you're plannin…
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question