lastlog

There is also "host_last_login" information in a file /etc/security/lastlog .
If I login to an appl (on AIX) via 'rexec' from my pc, I can see there pc's name or its IP:
tty_last_login = rexec
host_last_login = 10.50.38.74
I already collect login time/date/user into my own log file and I want to catch pc's name, too.
Exist maybe a command to do this?

Franci

I am not entirely clear what you are asking... Does this help?:

The "last" command will tell of previous entries.

"who", and specifically "who am i" will tell who you are. On my system, it tells the system that you are from. "who -m" is the equivalent and will allow you to (potentially) mix options with this.

In my case it tells the hostname because it *knows* the hostname - meaning it is resolvable (reverse and forward lookups work).