Selasa, 04 Juni 2013

How to view history of user access logs /system uptime and administration information on Solaris 10

View history of user access logs:
We can use last command for that,
The last command looks in the /var/adm/wtmpx file, which records all logins and logouts, for information about a user, a terminal, or any group of users and terminals.
SYNOPSIS
     last [-a] [-n number | -number]  [-f filename] [name |  tty]
The following options are supported:
-a                                             
Displays the hostname in the last column.
 -f filename                    
 Uses filename as the name of the accounting file instead of /var/adm/wtmpx.
 -n number|-number               
limits the number of entries displayed to that specified by number. These options are identical;    the    -number option is provided as   a transition tool only and is removed in future releases.
Eg:
#last –a

Tidak ada komentar:

Posting Komentar