The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Confused about redirecting output from awk. face1 Shell Programming and Scripting 3 05-20-2008 11:23 AM
Redirecting OUTPUT Chanakya.m Shell Programming and Scripting 1 08-13-2007 01:27 PM
redirecting the output of aspell leekb UNIX for Advanced & Expert Users 6 07-10-2006 02:50 AM
Redirecting the startup output blakmk UNIX for Dummies Questions & Answers 3 10-28-2003 04:22 AM
Redirecting output to multiple log files? darthur UNIX for Dummies Questions & Answers 3 01-15-2002 09:54 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-30-2003
Registered User
 

Join Date: Oct 2002
Posts: 5
Question Redirecting output to TCP port

Hi All, I suspect this is simple but I cannot find any info on it.

I have a logfile on a solaris box (EMS) that I want to tail -f but I want the output of this to be redirected to a TCP port.

I have a second solaris box (PEM) running patrol enterprise manager that I am using as an alarm collector.

What I want to happen is for the alarm collector (PEM) to telnet to the first solaris box (EMS) on a specific port and for it to recieve any new additions to the logfile.

Any help would be gratefully recieved

Cheers

Mike
Forum Sponsor
  #2  
Old 09-30-2003
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
What you're proposing would actually be very difficult to implement. The output from tail -f would need to go to a program that would be a homebrew telnet server.

And what is supposed to happen to the output from tail -f if no one has connected to the telnet server? Just discard it?

And when the log file gets too big...then what? Kiill the tail -f and roll the log file? By the time you get tail -f going again, you may have missed some lines. Is that acceptable?

I would think that patrol can do this sort of thing via snmp. Have you looked into that?

If patrol can't handle this, then I would package up the log entries in little files and retrieve them via ftp.

And one thing to not try is syslog. It moves error messages around via UDP and does not care if they get lost.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:32 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0