coltoff@PRC.Unisys.COM (Joel Coltoff) (01/29/88)
I'll start with the usual disclaimer that I'm posting this question for a friend. They have a bunch of PC's and a Sperry 5000/50. The PC's are connected to 5000/50 over an ethernet. If someone uses telent to login to the 5000/50 how can another application program determine the internet address of the PC? i.e. I notice that Debbie is using tty T0. What is the host address of the machine that Debbie is using? I've wracked my brains and can't figure out how to determine this. The information has to be hiding somehwere and I want to bring it to the surface. Thanks in advance. - Joel {psuvax1,sdcrdcf}!burdvax!coltoff (UUCP) coltoff@burdvax.prc.unisys.com (ARPA)
shankar@hpclscu.HP.COM (Shankar Unni) (02/02/88)
> the internet address of the PC? i.e. I notice that Debbie is using > tty T0. What is the host address of the machine that Debbie is using? > > I've wracked my brains and can't figure out how to determine this. > The information has to be hiding somehwere and I want to bring it > to the surface. Thanks in advance. I posted this question on an internal forum sometime back (having somewhat the same concerns). The answer seems to be: BSD-style unixes (unices?) have a place in the utmp entry for the hostname of the originator of a remote session. Sys5-style unices don't. The suggestions I got were: (a) hack up login/telnet/ rlogin etc. to put hostname info in the utmp entries or (b) do an ugly search of utmp entries, inetd logs, etc to match up entries to figure out who the originator was. Needless to say, it is not an easy task... Can someone else confirm this for me? ----------------------------------------------------------------------------- Shankar Unni allegra) Arpa Mail: shankar@hpda.HP.COM UUCP: ucbvax)!hplabs!hpda!shankar AT&T: (408) 447-5797 decwrl) -----------------------------------------------------------------------------