Solved

view log files quickly

Posted on 2010-08-23
22
582 Views
Last Modified: 2012-05-10
Here is what I do:
------------------------
I open 6 putty terminal  using putty.exe.
Connect to Linux servers  using id/pass .
After that I browse to respective log file location in each server and see the  6 log files.

What I want:
----------------------
This is inconvenient for me. Can I make this work easy ?  Is there any tool where I could save id/pass , server info  and respective log file name.  When I click on the "start" button , it will display  6 log files instantly ?  

Can we do this ?
0
Comment
Question by:cofactor
  • 11
  • 10
22 Comments
 
LVL 5

Expert Comment

by:vaska94
ID: 33499832
You Could Write Simple Script for it :) or use secureCRT
0
 
LVL 35

Expert Comment

by:torimar
ID: 33500109
Might be useful for you to take an intensive look at the "PuttY Connections Wizard": http://puttycm.free.fr/cms/

It allows you to create a database of stored Putty connections, and inside the "New Connection" feature, you can specify a "Login Macro" for automated login via specified credentials, and a variety of post-login commands. Started sessions will load as tabs inside the Connection Wizard for easy reviewing and switching.
Now you only need to find out how to start all connections inside a database at once, and you may have found what you are looking for.

ps:
The connection database can be setup to use encryption.
0
 

Author Comment

by:cofactor
ID: 33500282
I have downloaded secureCRT
but does it help to view all logs in different server at once in multiple tab ?
If so, I need help at this part . I searched web but did not find any tutorial for how to set up and save paths to view log files.
0
 
LVL 35

Expert Comment

by:torimar
ID: 33500601
SecureCRT is commercial software. Do you really wish to pay for simply reviewing some logs?

In the Putty Connection Wizard, just create a database with all your servers, containing login macros and post-login commands. Save the database, then right-click the database in the side panel and select "Connect all". That's it.
0
 

Author Comment

by:cofactor
ID: 33500646
>>>>>In the Putty Connection Wizard, just create a database with all your servers, >>>containing login macros and post-login commands. Save the database, then right->>>click the database in the side panel and select "Connect all". That's it.
you are not understanding my question.
when I click "Connect all"  ..can  it show me the log file I'm interested in ?
How do you configure the log file path and log file name in this tool ? Can it save this information for viewing anytime ?  
If so, tell me the configuration steps to try with.
Regards
0
 

Author Comment

by:cofactor
ID: 33500706
>>> containing login macros and post-login commands
As of now , I do the following
(i) server:   xcfrgh  
(ii)id:  axcsd   pass:  678dfg
(iii) cd /tmp/adf/wer/logs
(iv)tail -100f   abc.log
I am not good at writing scripts or macro .
Can we use these as macro in your tool ? how ?
I would like to give it a try.
0
 
LVL 35

Expert Comment

by:torimar
ID: 33500935
- File > New > Database: create a new database (or use the first icon to the left in
- File > New > Connection
---- Under "Connection", specify "Host" (IP or hostname) and Protocol (SSH).
---- Then choose a name which will represent this connection in the database; like Servername/Logfile
---- Then check "Enable login macro mode"
---- Under "Login Macro", specify:
---- Auto-login credentials: login ID and pass
---- Check "Enable post-login commands"
---- As Command1: cd /tmp/adf/wer/logs
---- As Command2: tail -100f   abc.log
---- Hit OK
- File > New > Connection
---- Do the same for the other 5 connections
- Click the icon "Save current database". Save and set as default.

All your connections will now show in the Connection Manager side bar. If it isn't there, go View > Tool bars > Connection manager.
Right click yopur databyse in the side bar, select "Connect all".
0
 
LVL 35

Expert Comment

by:torimar
ID: 33500971
Sorry: correcting.

Don't right-click your database name, but the SSH folder underneath your database name. That will give you the option to "Connect all".
0
 

Author Comment

by:cofactor
ID: 33508541
This does NOT work.
I exactly followed the steps.
but when I connect
It shows    login as: cd /tmp/adf/wer/logs   in the console
Obviously , this can not login.
Its not picking the login id from the config , but picking the the post-login command to login !

 
0
 
LVL 35

Expert Comment

by:torimar
ID: 33508737
It works, believe me.
The test connection on this screenshot works just fine for me, whether I connect it alone or together with another test connection in "Connect All" mode. It even works very well when I duplicate this connection, connect twice to the same server and have it open two separate locations simultaneously.

If you already made all your 6 connections, you must have obviously messed up one of them. Did you check each connection separately by right-clicking and selecting "Connect"?
login-macros.png
0
 
LVL 35

Expert Comment

by:torimar
ID: 33508780
In fact, this works so perfectly well that although I only have one remote server to take care of at present, I already started a database for all kinds of automated tasks on that server. Hadn't thought of this before.
0
Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

 

Author Comment

by:cofactor
ID: 33514011
I'm doing that  for one server only at present....later on I want to add 6 more.

my settings are exactly as yours . there is nothing wrong .

by the way , I have downloaded the executable version 1.8 MB .  did you try with the setup version ?

you are doing this for SSH ..right ?
0
 
LVL 35

Expert Comment

by:torimar
ID: 33514999
>>>you are doing this for SSH ..right ?
Yes.

>>>by the way , I have downloaded the executable version 1.8 MB .  did you try with the setup version ?

Actually, you may be up to something here.
It's not the executable version (I ran several tests that all turned out well), BUT: You need, of course, a) either place the program executable (puttycm.exe) inside the same folder that contains your PuTTY.exe, or b) have putty.exe in your PATH environment variable.

I thought this was obvious; but maybe they don't tell you when you download.
0
 

Author Comment

by:cofactor
ID: 33517697
>>>either place the program executable (puttycm.exe) inside the same folder that contains your PuTTY.exe,

yea. I normally use putty.exe   ....I have been using putty for a long time.
I have put the putty.exe in the path also. ..in fact the executable asks for the putty path ...so this is not an issue at all.

do I need to set the same timeout as I see in the screen ? I don't think so .

problem is , its not picking the login ID   to login ...instead its picking the post login command to login !
0
 
LVL 35

Expert Comment

by:torimar
ID: 33517891
Will it take the login correctly if you empty the post-login commands (or switch them off)?
0
 

Author Comment

by:cofactor
ID: 33519546
>>>Will it take the login correctly if you empty the post-login commands (or switch them off)?
I tried this.
It shows this ..
login as:     // stuck here ..nothing happens
0
 
LVL 35

Expert Comment

by:torimar
ID: 33522457
This is most odd. I tried it in all possible and impossible ways - and it always worked.
Make sure, under "Putty Session" "Default settings" are selected, also make sure, in the "Connection" tab, that "Login macro mode" is enabled.

Does the 'Quick Connection' work? It's located in the "Host" bar underneath the tool bar; use 'Default Settings' and specify your credentials, then hit the green arrow.
If that doesn't work, check your PuttY auto-logon directly:
putty.exe user@IP_address -pw password

If that won't work, then there is something wrong with your Putty version or configuration.

Also, what Windows are you using? Maybe Windows 7? Maybe 64bit?
Do you need to run Putty in compatibility mode?

Lastly: I still have the old version from 2007 around here - used it myself until yesterday; the new version on the website is from 2009. I could upload the older version for you to test, if wished.
0
 

Author Comment

by:cofactor
ID: 33529485
I'm very much disatisfied with this software.  This is disgusting . 'Save database' also does not work properly . Everytime , you have to save if you click on the database but does not change any settings!
As a summary, I am very much unhappy with this crap .  This just waste my time .
Do you know any other alternative software which also do the same ?
any other putty wrapper software ?
0
 
LVL 35

Expert Comment

by:torimar
ID: 33530472
Strangely, this tool seems to be working perfectly well for everybody else but you, and it has been in use by Putty power users for many years. So there is no much need for alternative software.
The only other product I've heard of is this: http://puttysm.sourceforge.net/

ps:
Believe me, I'm very critical about software quality, even if it is free. If there were anything even slightly annoying or malfunctioning about the Putty Connection Wizard (which, as I said, I have been using myself for years), I would not use it, let alone recommend it to others.

Talking of it: the program in its new version requires the .NET 2.0 framework to be installed. Are you sure it is installed and functioning properly on your system?
0
 

Author Comment

by:cofactor
ID: 33532321
Yes. my systems is ok . I have checked in Laptop and also in Desktop . both are windows XP  OS.  and they have .NET 2.0 installed.

Thanks for your support so far.  If you could tell any other software which could solve my original question ,that will be just wonderful to try with.
0
 

Accepted Solution

by:
cofactor earned 0 total points
ID: 37638888
I'm using ZOC terminal . It also has a script record facility. This is quite  helpful .
0
 

Author Closing Comment

by:cofactor
ID: 37653675
ZOC terminal
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

In our personal lives, we have well-designed consumer apps to delight us and make even the most complex transactions simple. Many enterprise applications, however, are a bit behind the times. For an enterprise app to be successful in today's tech wo…
David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
The viewer will learn common shortcuts with easy ways to remember them. The viewer will then learn where to find all of the keyboard shortcuts, how to create/change them, and how to speed up their workflow.
This video will demonstrate how to find the puppet warp tool from the edit menu and where to put the points to edit.

757 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