Logging Connections in Solaris

Hi All,

Is there a built in function/tool in Solaris that enables creation of a history file on any connection (via telnet, ssh, rsh or nfs) to Solaris machine?

I would like to create a script that records IP Address, date and timestamp, and command excuted for any connection to a Solaris server. Im wondering if this is possible.

Any insights is much highly appreciated.

Thanks,
racbern

http://www.unix.com/ip-networking/106271-logging-network-connections.html
Network Monitoring Tools

check the command last