Solved

Unix system history log

Posted on 2004-04-02
5
316 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

634 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