Redirecting output to remote monitor over TCP/IP.


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Redirecting output to remote monitor over TCP/IP.
# 1  
Old 02-03-2009
Redirecting output to remote monitor over TCP/IP.

We have AIX4.1 (yeah I know - we're upgrading to 5 soon) and have been running almost entirely on ASynch direct connects. We're now converting to TCP/IP thin client terminals and PC's. One of processes was a Turn Around Time screen job that would constantly update various information from 6 different jobs and display this information on one of 3 different tty's based on the job. I'm sort of stuck on how to convert this process to TCP/IP. everything runs, but I don't know how to get the output to each of the specfic terminals in full screen mode.

The data isn't saved so it's not a file that I can 'tail' or 'cat'.
Coming in through TCP/IP, I can't control which pts will be assigned. I really want to keep this down to a single process that loops through these jobs becuase of some underlying licensing issues and space constraints. I think I could create 3 users and just have them loop through their 2 jobs each based on a startup script, but I'd like to explore some other options.

I'm new to the forums and hope I selected the best group. I could have gone to a more specific thread but was afraid that I'd end up with the wrong audience.
# 2  
Old 02-05-2009
Quote:
I'm new to the forums and hope I selected the best group. I could have gone to a more specific thread but was afraid that I'd end up with the wrong audience.
I moved it to "Advanced UNIX users" because your question is certainly more advanced. Also doesn't seem specific to AIX.

So you want to update several TTYs with information from 6 different jobs? How do you get this information from the jobs? And why does it have to be in "full screen mode". The thin clients are running X Windows or something, correct? Or are the thin clients simply running a large monolithic TTY what is delivered over TCP/IP ?
# 3  
Old 02-05-2009
Our system supports a hospital lab. We're running an Open-M version of MUMPS. These 6 jobs are queries that produce data from the system that's used to populate Turn Around Time screens and /or late specimens and such for the techs in various departments. One unix PID actually runs the various jobs- JOB 1 >tty1 hold for 5 seconds, job 2>tty2 hold for 5 seconds job 3>tty 3, hold, job 4>back to tty1 and hold.... This continues in an ongoing loop. I'd like to maintian this setup but want to replace tty1 with a monitor at X.X.X.1 and tty2 with a monitor at X.X.X.2.

I mentioned full screen just to differentiate between writing single lines.

As for our Thin Clients, we're actually running them through a windows terminal server and connecting to the UNIX box via a custom TELNET session.
# 4  
Old 02-05-2009
From the ouput like:
Code:
$ oslevel
4.2.1.0
$ who -uA|grep vbe
vbe         pts/8       Feb  5 19:32     .       61790  (ant)        
$

you can find my terminal session:
Code:
*                                                                             *
*******************************************************************************
Last unsuccessful login: Fri Aug 29 10:00:41 2008 on /dev/pts/21 from ant
Last login: Thu Feb  5 19:32:05 2009 on /dev/pts/8 from ant

$ who -uA|grep vbe
vbe         pts/8       Feb  5 19:32    0:01     61790  (ant)        
vbe         pts/21      Feb  5 19:35     .       51778  (ant)        
$ ll /etc/motd
-rwxrwxrwx   1 bin      bin          960 Feb 10 2004  /etc/motd
$ cat /etc/motd>pts/8
No such file or directory
ksh: pts/8: cannot create
$ ll /dev/pts/8
crw--w--w-   1 vbe      staff     34,  8 Feb  5 19:33 /dev/pts/8
$ id
uid=90(vbe) gid=1(staff)
$ cat /etc/motd>/dev/pts/8
$

on my other session (/dev/pts/8):
Code:
spooladm    pts/17      Aug 29 07:20     .       35924  (:0.0)          
spooladm    pts/18      Aug 29 07:20    old      36182  (:0.0)          
spooladm    pts/19      Aug 29 07:20     .       36440  (:0.0)          
spooladm    pts/20      Jan  5 13:48    old      54466  (:0.0)          
$ oslevel
4.2.1.0
$ who -uA|grep vbe
vbe         pts/8       Feb  5 19:32     .       61790  (ant)        
$ *******************************************************************************
*                                                                             *
*                                                                             *
*  Welcome to AIX Version 4.2  STATION  OPAGE  51  !!!!       *
*                                                                             *
*  VOUS ETES SUR   E S C A L A  "T"  IP ADDR = xxx.xx.xx.51  BONNE JOURNEE   *
*                                                                             *
*  Please see the README file in /usr/lpp/bos for information pertinent to    *
*  this release of the AIX Operating System.                                  *
*                                                                             *
*                                                                             *
*******************************************************************************

...
It seems to work...
# 5  
Old 02-06-2009
You should check out screen. This may be a solution to your problems. It's a virtual terminal emulator which among other features:
  • Allows multiple users to view (read-only or read-write) the same TTY
  • Split a screen into multiple sections, each with its own TTY
  • Centrally or user-custom configuration scripts
  • automatic launching of programs
  • Detach/reattach screen on a different IP address/terminal

The Wikipedia article seems quite complete. Check it out. If you need help configuring, post a new thread under the Scripts or the Applications forums.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk remote multiple hosts print remote hostname and output

Hi all, i'm trying to gether multiple pattern on remote hosts, and trying to print hostname and the pattern, ssh remoteserver1 -C 'hostname 2>&1;cat /var/log/server1.log | awk -F ";" '"'"'{ print " "$2" "$5}'"'"'| sort | uniq -c | sort -g -r ' The output is the following, remoteserver1 ... (8 Replies)
Discussion started by: charli1
8 Replies

2. Shell Programming and Scripting

Redirecting the output

For example, if we run the below command, symcfg list -thin -pool , results in an output most of the times and if the out is generated i'm able to redirect the output to a file. but sometimes it doesnt result any output and even though the output is being redirected, i can see "No Thin Pools "... (2 Replies)
Discussion started by: web2moha
2 Replies

3. Slackware

X terminal: Redirecting remote sound to my local audio device

Hello everybody, I'm testing some aspects of X Terminal implementation and it's going great. I can use remote applications on my local slow workstation at remote's processor speed by redirecting the remote DISPLAY variable to "my_local_ip:0.0"; but i'm having troubles to get remote audio and... (2 Replies)
Discussion started by: semash!
2 Replies

4. Shell Programming and Scripting

Redirecting output to file

Hi, Below is the whole string which is to be redirected to the new file. su - oracle -c "exp $user/$pass file=/oracle/oradata/backup/exp_trn_tables_`date +%d_%b_20%y_%H_%M_%S`.dmp log=/oracle/oradata/backup/exp_trn_tables_`date +%d_%b_20%y_%H_%M_%S`.log tables=table1,table2 statistics=none" ... (3 Replies)
Discussion started by: milink
3 Replies

5. Shell Programming and Scripting

A bi directional script that will monitor the TCP/IP connections between two physical

Dear All , I'm looking for a unix script that will monitor the TCP/IP connections between two physical ip addresses and when it dectes an IP is down it generates an alarm and sends SMS to mobile numbers. Can any one help, I need this urgently. Waiting for positive replies.. ... (3 Replies)
Discussion started by: samura
3 Replies

6. Shell Programming and Scripting

monitor remote file output

Greetings all, How to monitor the output of a file on a remote server. I want to use tail -f file... but the file is on a remote server, lets say server4 and Im working on server2. any ideas ??? (5 Replies)
Discussion started by: yahyaaa
5 Replies

7. Shell Programming and Scripting

Redirecting OUTPUT

Hi, I want to move the output of a command/script to a file as well as to to be displayed on stdout. Can anybody help me in this. Thanks in advace .. -Chanakya M (1 Reply)
Discussion started by: Chanakya.m
1 Replies

8. UNIX for Advanced & Expert Users

TCP port scanner for remote or for local

I am unable to find any TCP scanner for data captruing for a Remote or local server. Can anybody please help. i need it to read TCP port and capture the incoming/outgoing data , (3 Replies)
Discussion started by: fahadsiddiqui
3 Replies

9. UNIX for Dummies Questions & Answers

Redirecting the startup output

Is there any way to redirect the output of the startup of a sun E250. Im basically trying to troubleshoot some init scripts and it would be useful to have a log of the startup output. (3 Replies)
Discussion started by: blakmk
3 Replies

10. UNIX for Dummies Questions & Answers

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... (1 Reply)
Discussion started by: mscomms
1 Replies
Login or Register to Ask a Question