Solved

Looking for Freeware terminal emulator with macro function

Posted on 2008-10-29
5
1,712 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
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…
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…
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…

752 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