Solved

Unix system history log

Posted on 2004-04-02
5
312 Views
Last Modified: 2006-11-17
Hi, all,
  We are using Compaq Thru 64 machine and if we hope to know how many times we restart that machine or when did we restart it in the past 1 month, which log file can give us these information?
  On the other hand, if we hope to know what settngs were changed in the past 1 month, which log info we can clear understand?
  Thanks a lot.
0
Comment
Question by:chen0426
5 Comments
 
LVL 18

Accepted Solution

by:
liddler earned 63 total points
ID: 10739330
last |grep boot
gives system boot times

Which systems settings do you mean?  Most are held in files in /et/ so an ls -l will give you the modification times on the files
0
 
LVL 61

Expert Comment

by:gheist
ID: 10747067
Most likely system was not restarted last month.
uptime command outputs time since last boot.
System reboots are logged into utmp/wtmp files, and best seen with last command.(but you can reboot without logging too...)
If you want to know a bit more about running processes you can enable process accounting by running (as root) /usr/sbin/acct/turnacct on, and looking into turnacct manual page for analysis tools for gathered data.


For file alterations - make a script which copies files you consider holding configurations into shadow subtree, and  then simply run diff utility, which even shows files changed.
For binary config files - extract data in text form or use checksums (no information what has changed then).
Since you write script on your own, you have much flexibility, like mailing/logging script results, reverting config file to previous version(s) with ease etc...
0
 

Assisted Solution

by:charlie250
charlie250 earned 62 total points
ID: 11020921
There are a number of ways..
1. Add a command to the system startup to append the date /time to a file (making sure the file is in a filesystem that is mounted at the time!)

2. The data is already there if you go looking for it..
You can use (as root)  uerf -R |more and look for event 300

The above will work as long as you don't remove system log information.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now