Solved

Unix system history log

Posted on 2004-04-02
5
313 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 62

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Generate FIPS 140-2 Public Key on Unix 5 71
Hyper-threading config in Solaris 6 130
Invalid password trying to cannect to Unix server 2 78
awk sed variable in file 3 33
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

816 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

14 Experts available now in Live!

Get 1:1 Help Now