<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Compare script before and after a reboot in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/compare-script-before-and-after-a-reboot/m-p/3387805#M14224</link>
    <description>This is by no means complete, but should get you started. You need a decent amount of space on the /tmp directory to do this. You can do this whereever you want.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# run this code at boot time&lt;BR /&gt;cd /etc&lt;BR /&gt;&lt;BR /&gt;cp -r * /tmp/etc&lt;BR /&gt;&lt;BR /&gt;# you can tar it for space.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# run this part at shutdown&lt;BR /&gt;&lt;BR /&gt;cd /etc&lt;BR /&gt;ls -r &amp;gt; /tmp/filelist&lt;BR /&gt;&lt;BR /&gt;read -r filename&lt;BR /&gt;do &lt;BR /&gt;  diff $filename /tmp/etc/$filename&lt;BR /&gt;done &amp;lt; /tmp/filelist&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This will give you a listing of every change to every configuration file since reboot.&lt;BR /&gt;&lt;BR /&gt;Direct the output to a file and you'll have a log of everything that was done since boot.&lt;BR /&gt;&lt;BR /&gt;I didn't try this and it may need work, this is  merely a brainstorm effort.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Mon, 27 Sep 2004 12:21:37 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2004-09-27T12:21:37Z</dc:date>
    <item>
      <title>Compare script before and after a reboot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compare-script-before-and-after-a-reboot/m-p/3387804#M14223</link>
      <description>I'm not sure if anyne have ever asked this but does anyone have a script and or a tool that comapres what was on  a system beofre a reboot to whats on a system after a reboot. There are times when you do things to a system but then you forget all about it and after you reboot, you lose everything. I want to be able to have something that I can run before a reboot and compare that data to after a reboot to see if I have lost or missed anything. Something like a compare script of some sort. Thanks and points will definitely be assigned.</description>
      <pubDate>Mon, 27 Sep 2004 11:37:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compare-script-before-and-after-a-reboot/m-p/3387804#M14223</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2004-09-27T11:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Compare script before and after a reboot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compare-script-before-and-after-a-reboot/m-p/3387805#M14224</link>
      <description>This is by no means complete, but should get you started. You need a decent amount of space on the /tmp directory to do this. You can do this whereever you want.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# run this code at boot time&lt;BR /&gt;cd /etc&lt;BR /&gt;&lt;BR /&gt;cp -r * /tmp/etc&lt;BR /&gt;&lt;BR /&gt;# you can tar it for space.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# run this part at shutdown&lt;BR /&gt;&lt;BR /&gt;cd /etc&lt;BR /&gt;ls -r &amp;gt; /tmp/filelist&lt;BR /&gt;&lt;BR /&gt;read -r filename&lt;BR /&gt;do &lt;BR /&gt;  diff $filename /tmp/etc/$filename&lt;BR /&gt;done &amp;lt; /tmp/filelist&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This will give you a listing of every change to every configuration file since reboot.&lt;BR /&gt;&lt;BR /&gt;Direct the output to a file and you'll have a log of everything that was done since boot.&lt;BR /&gt;&lt;BR /&gt;I didn't try this and it may need work, this is  merely a brainstorm effort.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 27 Sep 2004 12:21:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compare-script-before-and-after-a-reboot/m-p/3387805#M14224</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-09-27T12:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Compare script before and after a reboot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compare-script-before-and-after-a-reboot/m-p/3387806#M14225</link>
      <description>I'll try this but I was hoping for more.</description>
      <pubDate>Mon, 27 Sep 2004 12:33:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compare-script-before-and-after-a-reboot/m-p/3387806#M14225</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2004-09-27T12:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Compare script before and after a reboot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compare-script-before-and-after-a-reboot/m-p/3387807#M14226</link>
      <description>You may want to consider putting a startup/shutdown script. You can include comments and commands to compare the results you want in it and output to a log file. Tools you want to include in this script depend on your specific need. You may include disk utilization checks, kernel change checks, network checks, configuration check, application check etc. Is this what you looking for?</description>
      <pubDate>Mon, 27 Sep 2004 14:35:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compare-script-before-and-after-a-reboot/m-p/3387807#M14226</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2004-09-27T14:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Compare script before and after a reboot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compare-script-before-and-after-a-reboot/m-p/3387808#M14227</link>
      <description>Yes, thats exactly what I'm looking for. Does someone already have a script that does that? If not, then I will start working on one.</description>
      <pubDate>Mon, 27 Sep 2004 14:41:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compare-script-before-and-after-a-reboot/m-p/3387808#M14227</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2004-09-27T14:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Compare script before and after a reboot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compare-script-before-and-after-a-reboot/m-p/3387809#M14228</link>
      <description>Sanjit, I do not know what version/distribution of linux you are running, but if it is a "Redhat" then what i use is sysreport ... to invoke just type &lt;BR /&gt;&lt;BR /&gt;#sysreport&lt;BR /&gt;&lt;BR /&gt;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" &lt;BR /&gt;&lt;BR /&gt;sysreport will log all hardware and software environment (rpm,disk,tape,ps -ef,network setup and much more)&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;I also like to save a copy of this to a read only media support for contigency.&lt;BR /&gt;&lt;BR /&gt;It may but more then what you ask for but hope it helps .&lt;BR /&gt;&lt;BR /&gt;J-P</description>
      <pubDate>Mon, 27 Sep 2004 16:30:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compare-script-before-and-after-a-reboot/m-p/3387809#M14228</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2004-09-27T16:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Compare script before and after a reboot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compare-script-before-and-after-a-reboot/m-p/3387810#M14229</link>
      <description>Usually to start a start/shut script i copy one i like from /etc/init.d&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 27 Sep 2004 16:30:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compare-script-before-and-after-a-reboot/m-p/3387810#M14229</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-09-27T16:30:47Z</dc:date>
    </item>
  </channel>
</rss>

