The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
identify this mobo blowFish@ubuntu What's on Your Mind? 0 07-17-2007 10:06 PM
How to identify User Machine name? ganapati Shell Programming and Scripting 12 03-01-2007 02:30 AM
identify function xinfinity Shell Programming and Scripting 7 04-04-2006 03:18 PM
identify hardware patrickb Filesystems, Disks and Memory 0 02-21-2006 06:29 AM
Access problem wiht mountpoint, 5.1 ML6 bakunin AIX 1 06-20-2005 09:38 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-16-2005
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,854
Stumble this Post!
HPUX : identify NFS mountpoint

Is there a way to identify a directory as the start of an NFS mountpoint in HPUX 11.0? Using existing utilities & without root priv.

If you stat the directory and use the S_ISNWK macro you can find network special files that way. The requirement will have to go through other channels if I need to code a C routine to do this.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 11-16-2005
Registered User
 

Join Date: Oct 2005
Posts: 135
Stumble this Post!
not sure if this helps...
$ grep nfs /etc/fstab | awk '{print $2}'
/usr/sap/trans
/ftp_interfaces
/icp_d
Reply With Quote
  #3 (permalink)  
Old 11-16-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,450
Stumble this Post!
Network special files are an artifact of a very old (predates NFS!) HP-only feature and have nothing to do nfs. If you can cd into a directory, then you can do:
df -n . ; df -n ..

If the last field of the first line is nfs3, the current directory is an nfs directory. If the 2nd fields of each line differ, the current directory is a mountpoint. Do not depend on the last fields differing because one nfs filesystem can be mounted on another.
Reply With Quote
  #4 (permalink)  
Old 11-16-2005
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,854
Stumble this Post!
Thank you.

How would you interpret this?
Code:
/banner_remote/banner_rpts (vcspnm:/banner_envs/banner_rpts) :     nfs3
/banner_remote/banner_tst1 (kcsqa1:/banner_envs/banner_tst1) :     nfs3
/banner_remote/banner_rpts (vcspnm:/banner_envs/banner_rpts) :     nfs3
.... more stuff removed
Reply With Quote
  #5 (permalink)  
Old 11-16-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,450
Stumble this Post!
Quote:
Originally Posted by jim mcnamara
Thank you.

How would you interpret this?
Umm, I would interpret it as having nothing at all to do with what I said. I cannot see what command generated that output. My suggestion was to produce two lines of output, one from a directory and a second from that directory's parent. I seem to be counting three lines of output and I do not believe that I see a parent child relationship between any two of the three lines. And more stuff was removed?? Two lines is all you should get! A mount point is in a different filesystem than it's parent. Comparing the difference between a directory and its parent is the key. Again, cd to some-directory, then do:
df -n . ; df -n ..
Reply With Quote
  #6 (permalink)  
Old 11-16-2005
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,854
Stumble this Post!
I ignored/missed the . and .. No wonder I'm confused.

I've got it now, thank you.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:09 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0