![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| 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 03: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 07:29 AM |
| Access problem wiht mountpoint, 5.1 ML6 | bakunin | AIX | 1 | 06-20-2005 09:38 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
not sure if this helps...
$ grep nfs /etc/fstab | awk '{print $2}' /usr/sap/trans /ftp_interfaces /icp_d |
|
#3
|
||||
|
||||
|
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. |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
||||
|
||||
|
Quote:
df -n . ; df -n .. |
|
#6
|
|||
|
|||
|
I ignored/missed the . and .. No wonder I'm confused.
I've got it now, thank you. |
|||
| Google The UNIX and Linux Forums |