- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Compare script before and after a reboot
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2004 04:37 AM
09-27-2004 04:37 AM
Compare script before and after a reboot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2004 05:21 AM
09-27-2004 05:21 AM
Re: Compare script before and after a reboot
# run this code at boot time
cd /etc
cp -r * /tmp/etc
# you can tar it for space.
#
# run this part at shutdown
cd /etc
ls -r > /tmp/filelist
read -r filename
do
diff $filename /tmp/etc/$filename
done < /tmp/filelist
This will give you a listing of every change to every configuration file since reboot.
Direct the output to a file and you'll have a log of everything that was done since boot.
I didn't try this and it may need work, this is merely a brainstorm effort.
Because I don't trust myself or totally trust technology, I keep a paper notebook with a written record of what I did when. Thats useful too.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2004 05:33 AM
09-27-2004 05:33 AM
Re: Compare script before and after a reboot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2004 07:35 AM
09-27-2004 07:35 AM
Re: Compare script before and after a reboot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2004 07:41 AM
09-27-2004 07:41 AM
Re: Compare script before and after a reboot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2004 09:30 AM
09-27-2004 09:30 AM
Re: Compare script before and after a reboot
#sysreport
This is a bite of an overkill but what it does is prepare a diagnostic report for to mail to redhat in case you need help ! "But this mail is generated but not send ,you have to manualy send this"
sysreport will log all hardware and software environment (rpm,disk,tape,ps -ef,network setup and much more)
If you run prio/after change and the make a diff on the two mails you get a very exhaustive picture of what is different.
I also like to save a copy of this to a read only media support for contigency.
It may but more then what you ask for but hope it helps .
J-P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2004 09:30 AM
09-27-2004 09:30 AM
Re: Compare script before and after a reboot
Some distributions have one called /etc/init.d/template which is generic and is used for creating new scripts from scratch. my original code might work if called from such a script.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com