- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: capture terminal session
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2007 08:46 AM
01-09-2007 08:46 AM
capture terminal session
I was wondering if it would be possible to capture the output from a telnet session on the server side and save it to a file for later review. I currently log entries typed at the command line by session, but for trouble shooting purposes it might be useful to see everything that would have been sent to the user. Keep in mind that the user on the other end still needs to see the output. I want to send a copy of it to a file, if possible.
I'm running running HP-UX 11.0 on the server in question.
Thank you
Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2007 09:02 AM
01-09-2007 09:02 AM
Re: capture terminal session
Gary,
"if it would be possible to capture the output from a telnet session " :
Yes, you can do it by runnning the session with log enabled mode,
If you are using telnet client like putty , just do the following :
Putty session--> right click on the top --> change settings--> Logging --> Log All session output and provide a file name (ex: server1.txt ) , and till the end of the session everything will be logged in that file.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2007 09:03 AM
01-09-2007 09:03 AM
Re: capture terminal session
if the output of session is the aim,i think it is not necessary captured on the server side.You can capture session from your PC by using SecureCRT or like other programs.
regards;
mustafa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2007 09:04 AM
01-09-2007 09:04 AM
Re: capture terminal session
If you were to insert this into a users ~/.profile, then everything they do would be recorded in the file specified.
Be aware that this is fine for command line stuff, but it really doesn't work well if the user is using menus and things like SAM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2007 09:09 AM
01-09-2007 09:09 AM
Re: capture terminal session
Also you can put a line on the .profile of the user , and it makes a typescript of everything printed on your terminal.
All will be logged in to the file,
cd ~username
edit the .profile
# enter the line in .profile,
script logfilename.txt
#####
And all output of the session will be logged in this file.
Check your space on that filesystem as the script file grows significantly, and logs everything including menu based programs.
For further details you can check :
http://docs.hp.com/en/B2355-90680/script.1.html
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2007 05:38 AM
01-10-2007 05:38 AM
Re: capture terminal session
Thanks for your idea.
I know you can log from putty or reflections but that wasn't what I wanted to do.
I'd forgotten about the script command and I'll give it a whirl and see if that works for me. The account users do not do anything fancy just some command line stuff and the sessions tend to be pretty short. I'll tinker with it.
thanks
Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2007 05:58 AM
01-10-2007 05:58 AM
Re: capture terminal session
Most of the work done on these logins are done automatically via remote script execution and I would want to avoid the need changes on the other end.
thanks again
Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2007 05:59 AM
01-10-2007 05:59 AM
Re: capture terminal session
Keep in mind, that activating such logging tools could lead to unencrypted passwords stored in plain text files at non-secure places !
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2007 06:08 AM
01-10-2007 06:08 AM
Re: capture terminal session
This is a fairly limited circumstance we're interested in monitoring. Very few people have access to the machine to begin with and I can place the logs in a place in which even fewer do or lock read access down to root only. If we feel that it's a security risk I can encrypt the files too.
Also the script command doesn't capture typed characters only echoed characters so normal password entry should be protected.