?
Solved

auto mounter on aix

Posted on 2016-08-02
3
Medium Priority
?
53 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
John Pope earned 2000 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 5

Expert Comment

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

Cheers, JP
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:
Suggested Courses

649 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