Two directories - dir_1, dir_2 in /tmp on the same server.
1. Create a new template:
2. Name the template and click 'finish' (do not choose any parts, etc)
3. open the template for editing, goto 'local properties' on the template
4. Click the green + to add a new local property - call it 'MYPATH' and click ok
5. Goto the 'instances' tab of the template's local properties
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
7. when you are done, you should have 2 instances listed:
8. go back to the 'parts' of the template
9. click the green + to add a new part of the local property MYPATH
10. click ok, then ok again and go to the 'discover' part of the template
11. set your discovery conditions - for this we want to check that MYPATH exists on the server
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.
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'
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.
17. for the targets, choose the other components that were discovered
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