Solved

auto mounter on aix

Posted on 2016-08-02
3
22 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
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 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…

705 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

15 Experts available now in Live!

Get 1:1 Help Now