1834136 Members
2485 Online
110064 Solutions
New Discussion

question about tty

 
njia_1
Trusted Contributor

question about tty

Hi

After I did a "w" command on a hpux server I saw a output like this
nmcman pts/0 9:15am 47.128.43.21
nmcman pts/1 9:18am telnet 147.128.43.21
nmcman pts/2 9:51am more -s
root pts/ta 11:33am w

what is the difference between pts/0 and pts/ta, also if someone login using exceed, how can I find out the remote IP address?

thanks
Nan
3 REPLIES 3
Bill Hassell
Honored Contributor

Re: question about tty

The pts/0 and pts/ta names are abbreviations for the devicefiles used to connect telnet to a pseudo terminal. See man page for pty. The complete devicefile name is /dev/pts/0.

Exceed offers several methods to connect including remote desktop (CDE). You can see how each session has been logged with the last command. Use the -R option:

last -R | more


Bill Hassell, sysadmin
Rajeev  Shukla
Honored Contributor

Re: question about tty

the difference between pts/0 and pts/ta is that they are different pseudo devices and to see people login from exceed, use who -u command
This will give you the IP address and the tty
Steven E. Protter
Exalted Contributor

Re: question about tty

you can't find out remote ip address from the psuedo term they get.

That can be gleened from the /var/adm/syslog/syslog.log file.

Its helpful if you have enhanced logging inetd -l if you have not already set that up.

The w command is putting this together for you, from the syslog.log file or the processing current sessions against the /var/adm/wtmp file


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com