4 Replies Latest reply on Dec 12, 2013 4:03 PM by Alan Russell

    Compliance Rule to parse /etc/filesystem on AIX

    Alan Russell

      I am trying to create a rule to parse /etc/filesystems on AIX hosts without using an extended object. I thought I could use only if /for / next loops and configuration files entry etc to do it but I can't get the result I am looking for. Perhaps it isn't possible without using an extended object script.  Using the below example what I am trying to do is to locate files systems that are of type = nfs and then determine if the options line contains nosuid or not.  It is easy to locate where vfs = nfs but then to continue the loop only within that particular file system section is where I am having the problem. Any thoughts appreciated.

       

      /local/utils:
              dev             = "/vol/unximage/unximage/utils"
              vfs             = nfs
              nodename        = dropboxshare
              mount           = true
              type            = sys
              options         = bg,soft,intr
              account         = false

      /oracle:
              dev             = /dev/lv_oracle
              vfs             = jfs2
              log             = INLINE
              mount           = true
              options         = noatime,rw
              account         = false

      /usr/local/bmc:
              dev             = /dev/lv_bmclv
              vfs             = jfs2
              log             = /dev/hd8
              mount           = true
              options         = noatime,rw
              account         = false