Hi

So im writing a compliance script for my company(i'm an intern and this is my first big project). The script has to search for the version of linux on the machine then apply the relevent compliance commands.

If anyone can give me simple commands for any version of linux(fedora, redhat, ubuntu and any more) it would help me no end.

the commands i am looking for are to check:

antivirus settings(is it installed)

screensaver settings(is it enabled, is it password enabled e.t.c.)

BIOS password(is it enabled)

i also have to check runlevels on iptables, nfs and smb

with redhat i use the command /sbin/chkconfig --list smb for example and
it prints out the different run levels which is perfect but i dont know how to do this
with different flavours of linux.

the script doesn't change these settings it just prints the results to html file

all i need to do is populate the script with commands to check the settings i have the rest done. ANY HELP WOULD BE MUCH APPRECIATED!!! thanks in advance.