Solved

auto mounter on aix

Posted on 2016-08-02
3
35 Views
Last Modified: 2016-08-28
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
0
Comment
Question by:lolaferrari
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
popesy earned 500 total points (awarded by participants)
ID: 41740226
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
0
 

Author Comment

by:lolaferrari
ID: 41748932
Thank you JP
0
 
LVL 4

Expert Comment

by:popesy
ID: 41748952
Of course, hope it works out for you :)

Cheers, JP
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now