![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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 |