Solved

Looking for Freeware terminal emulator with macro function

Posted on 2008-10-29
5
1,706 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:mutahir
mutahir 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Local Printing Using Remote Desktop Windows 7 sometimes has issues with printing to a local printer using a Remote Desktop Connection (RDC). The 1st step is to verify that printers are checked on the Local Resources tab of the Remote Desktop C…
Hello to you all, I hear of many people congratulate AWS (Amazon Web Services) on how easy it is to spin up and create new EC2 (Elastic Compute Cloud) instances, but then fail and struggle to connect to them using simple tools such as SSH (Secure…
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now