OCS Diff script

Here is the script I used to generate hardware change reports from the OCS NG database.  This script is implemented much like the daily disk reports from OCS (see this).  Sorry there is no better documentation for this, I just have not had the time and soon will no longer have access to test or refine this.  If you post a comment here I will try to help as best I can and as time allows.

Download OCS Diff Version 1.0

6 Responses to “OCS Diff script”

  1. Raman Pillai INDIA Windows XP Mozilla Firefox 3.0.5 says:

    Thanks, its functional now. But I am getting the output like :
    Computer name BANK-SUMANS last logged into by user sumans RAM has changed from 256 to 254
    Computer name IT-AJAYM last logged into by user ajaym CPU has changed from to Intel(R) Pentium(R) 4 CPU 2.40GHz
    Computer name IT-AJAYM last logged into by user ajaym RAM has changed from to 768
    Computer name BAG-HARSHU last logged into by user harshu CPU has changed from to Genuine Intel(R) CPU T2250 @ 1.73GHz

    Here the From field is empty for some instances , can you guess why this is happening . Here the users are in domain .

  2. Mike UNITED STATES Windows Vista Mozilla Firefox 3.0.5 says:

    I would suggest modifying the script – try adding

    print_r($snapram);

    below the line where snapram is set (shown below) and then run the script manually. What are the results?

    $snapram = $snapline['memory'];

  3. caio BRAZIL Windows XP Internet Explorer 7.0 says:

    onde colocar este script?

  4. Mike UNITED STATES Windows Vista Mozilla Firefox 3.0.11 says:

    I would suggest reading this article and following the same general instructions including the location for the script. There is no GUI component to this, it does not link to the web interface of OCS … it is simply a script you can run either manually or schedule with cron to generate a report.

    Let me know if that does not make sense (and I hope my answer in English is OK since I don’t speak Portuguese).

    Mike

  5. Dioni Vidal BRAZIL Windows Vista Google Chrome 3.0.192.1 says:

    Dei uma melhorada neste script de hardware e criei um para software, que notifica alterações de ip, espaço em disco, memória, processador, etc… e o de software que notifica instalações e desinstalações de softwares…

    Interessados entrem em contato pelo msn dionividal@hotmail.com ou pelo e-mail dionividal@gmail.com

  6. Mike UNITED STATES Windows Vista Mozilla Firefox 3.5.2 says:

    I think I guessed right that your comment was Portuguese, so translated to English it is (approximately):

    I gave one improved in this script of the hardware and created one for software, that notifies alterations of IP, space in record, memory, processor, etc… and of software that notifies installations and desinstalações of softwares…

    In which case I would ask if you have posted it somewhere or if you would be willing to either post it or send it to me so I can add it here.

    Mike

Leave a Reply