auto mounter on aix

lolaferrari
lolaferrari used Ask the Experts™
on
On linux if i want to check what's auto mounted i would do the following. What would the equivalent be on aix?

if [ ` ps -ef | grep -v grep | grep -c automount ` -eq 1 ]; then
        if [ -z /etc/auto.misc ]; then
            cat /etc/auto.misc
     else
           echo "nothing mounted with auto mounter"
fi
      fi
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
IT Consultant
Commented:
Hi

The only thing different with our installs of automount on Linux compared to AIX are the file names as far as I can see.

Where Linux has:

/etc/auto.master
/etc/auto.misc

Open in new window


AIX has:

/etc/auto_master
/etc/auto_direct

Open in new window


Your code should work fine other than that.  Let us know how you get on.

Cheers, JP

Author

Commented:
Thank you JP
John PopeIT Consultant

Commented:
Of course, hope it works out for you :)

Cheers, JP

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial