title: compare mount and /etc/filesystems in AIX
body: <p>I want to compare the output put of mount command to the /etc/filesystems. Basically we want to validate everything is getting mounted properly as defined in /etc/filesystems after any system change(reboot etc.)</p>
  
  <p>My basic script is: </p>
  
  <pre><code>#!/bin/bash
  mountpoint="/vol/test/abc"
  
  if grep -qs "$mountpoint" /etc/filesystems; then
    echo "good"
  else
    echo "bad"
  fi
  </code></pre>
  
  <p>Is this right approach? Please suggest. Also How can I get all the volumes that are being returned by executing mount command?</p>