The component template/compliance job should do it.
File permission in Windows or Linux???
create extended object with ll (el el) command... then add it as part in compliance job.
create bl package with ll command to redirect it output to a csv file..
for checking file permissions i don't think that using an EO or a blpackage would do what you want. the compliance job should work fine, that is one of the things it is designed to do.
1. I created an empty blpackage, then added external command: ls -l ??path?? > /tmp/report.csv
2. Ran deploy job (while executing job I defined the path /boot to check file permission available in /boot )
3. Once the job was successful, I browsed the target server (where I ran the job)
4. Open /tmp/report.csv with bl-editor
5. Result: shows whatever you required..
Extended object: ls –l is showing file permissions available in / directory.. creating extended object with predefine path (example: ls –l /boot) will show file permission in /boot directory.
Yes you right Bill..
the compliance job should work fine, that is one of the things it is designed to do. as we are not going to browse every machine and see that report.csv file..
you can take a snapshot of the EO and then export that to a file - that might be another way. the CJ export format is not great.
did you create the compliance job towards a snapshot or towards a component discovered?
Another question: I also need to check 3 directories umasks.
Is there an OOB way to do that? Or should I go custom?
In the second case, how?
What do you mean by ‘directory umask’? you can check the perms on the directory just like you check the perms on the file – w/ a compliance job…
yes I set it like this, it was my fault.
Now I'm trying to create a compliance job over an EO and a Configuration File (I need to check values in them).
I guess I should take snapshots first, cause I will not be able to read contents from a component, right?
1 of 1 people found this helpful
You do not run compliance on snapshots, the compliance job will run against the live server/component.
I created component template compliance job.
You can also do the same as bill said.. by exporting snapshot of EO to a file.
I uploaded a document based on it --> https://communities.bmc.com/communities/docs/DOC-20857