Solved

Looking for Freeware terminal emulator with macro function

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Hibernate on windows 10 18 139
Configuring RDP Server with windows 2012 R2 8 46
RDP connection error 5 53
Looking for open port with Telnet 5 56
Have you ever had a hard drive that you can't boot into, but need to change the registry? Here is the solution! This article guides you through accessing and editing a registry of a non-primary drive. To read registry information on a non-prim…
Remote Desktop Connections allow you to control remote host machines via the magic of the Internet and RDP (Remote Desktop Protocol). For the purposes of this article we will assume you are connecting from your home PC or laptop to a remote offic…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

813 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