Compare two directories

Version 1
    Share:|

    Two directories - dir_1, dir_2 in /tmp on the same server.

    How_to_Compare_Two_Directories_01.png

    1. Create a new template:

    How_to_Compare_Two_Directories_02.png

    2. Name the template and click 'finish' (do not choose any parts, etc)

    How_to_Compare_Two_Directories_03.png

    3. open the template for editing, goto 'local properties' on the template

    How_to_Compare_Two_Directories_04.png

    4. Click the green + to add a new local property - call it 'MYPATH' and click ok

    How_to_Compare_Two_Directories_05.png

    5. Goto the 'instances' tab of the template's local properties

    How_to_Compare_Two_Directories_06.png

    6. Create a new instance, 1 for each different path - for this example I will have 2 instances, dir_1 and dir_2 which are my 2 different paths to the application. Click on the green + to create the new instance. Set the value of MYPATH for each instance appropriately

    How_to_Compare_Two_Directories_07.png

    7. when you are done, you should have 2 instances listed:

    How_to_Compare_Two_Directories_08.png

    8. go back to the 'parts' of the template

    How_to_Compare_Two_Directories_09.png

    9. click the green + to add a new part of the local property MYPATH

    How_to_Compare_Two_Directories_10.png

    How_to_Compare_Two_Directories_11.png

    How_to_Compare_Two_Directories_12.png

    10. click ok, then ok again and go to the 'discover' part of the template

    How_to_Compare_Two_Directories_13.png

    11. set your discovery conditions - for this we want to check that MYPATH exists on the server

    How_to_Compare_Two_Directories_14.png

    12. close and save the template. Create a new discovery job for this template. Run it against all the servers you need to discover this on.

    How_to_Compare_Two_Directories_15.png

    13. when the discovery job finishes, you should have discovered the instances of the template on your server(s) - eg you have both directories on the same server, so you would have 2 instances of the template (2 components) on 1 server, or you may have 1 instance on each server.

    14. now, we can compare these results directly. Create a new audit job and select 'audit components'

    How_to_Compare_Two_Directories_16.png

    15. for the template choose the component template you've created for this exercise.

    16. for the master, choose the master 'component' that you want to compare against.

    How_to_Compare_Two_Directories_17.png

    17. for the targets, choose the other components that were discovered

    How_to_Compare_Two_Directories_18.png

    note that in the example I'm comparing a master component instance of 'dir_1' from the blapp server against an instance of 'dir_2' on blapp and against instances of this component on red1 and red2

    18. finish the job creation and run the audit

    19. view your audit results

    How_to_Compare_Two_Directories_19.png