Visit Our UNIX and Linux User Community


Unable to view contents of a directory


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Unable to view contents of a directory
# 8  
Old 10-23-2001
You can type "man automount" and "man automountd" to get started understanding the automounter as implemented on HP-UX. You really will need a fairly good understanding of NFS to be able to understand the automounter.
# 9  
Old 10-23-2001
Please run the following command on both machines and post the output:
Code:
df -k

Also, do you beleive that /net should be the same flie system on both hosts?
# 10  
Old 10-24-2001
Ok, did the dt -k command

On one workstation, (called lowlife), the directory on the remote machine I am trying to view is listed and the total usage is 75% etc + other stuff is shown, as I would expect.

when I do the same command on the other machine, (sausage), for the same directory. it shows the directories but lists them as 0% used, 0% available etc. Everything 0% - even though they are not!!


????
# 11  
Old 10-24-2001
What about this:
Type mount. It should show you a list of mounted filesystems. Is that directory in the list? If so, is it mounted the same place as the working servers?
# 12  
Old 10-24-2001
Question

Hmm curious and curiouser!!

I did the mount command.

The working directory is mounted in
/tmp_mnt/net/remotedirectory

The non working directory is mounted in
/net/remotedirectorey
- no tmp_mnt

This has something to do with the automounter doesn't it?
On lowlife in the net directory there is a link called the remote host linking to /tmp_mnt/net/remotedirectory

On the sausage there is no link just a directory called the remote host.

Does this mean anything, it is the only difference I can find between the two machines.

Oh by the way sorry for using "remote host" instead of the actual name I cant really say what it is. Confidential you see!! Might get in trouble!

I have tried to create a link in the net directory of sausage but this cannot be created for some reason.
# 13  
Old 10-24-2001
I might have found a possible cause!!

It turns out the patch levels of the NFS server, the remote host directory are lower than the machine I am using to connect too. This is causing incompatabilities between the two!

I think the problem is sorted!!

cheers everyone for your help!

David
# 14  
Old 10-25-2001
try the command

showmount -e remotehostname

(where remotehostname is ............the Remote Hostname!!)

this will show which directories have been exported by the remote host. If you don't see anything, check to see if nfs.client is running on you system:

if not, start nfs client daemons

/sbin/init.d/nfs.client start


RECON
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #336
Difficulty: Easy
sed -e 'r' /etc/passwd will recover lost password on a Unix system.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

View all jar files contents in one go ?

I can view a jar file contents using the below command: $ jar -tvf ./checker-compat-qual-2.0.0.jar 0 Mon May 02 18:28:46 IST 2016 META-INF/ 184 Mon May 02 18:28:44 IST 2016 META-INF/MANIFEST.MF 0 Mon May 02 17:20:16 IST 2016 afu/ 0 Mon May 02 17:20:16 IST 2016 afu/org/ ... (5 Replies)
Discussion started by: mohtashims
5 Replies

2. UNIX for Beginners Questions & Answers

View file contents created by dbCAmplicons as tab delimited

I have run the following command : od -c Results_May18.fixrank | head Here is the result. I wanted the results in tab delimited. Thanks $ od -c Results_May18.fixrank | head 0000000 M 0 1 6 0 1 : 1 2 9 : 0 0 0 0 0 0000020 0 0 0 0 - A T T D Y ... (2 Replies)
Discussion started by: Benard
2 Replies

3. UNIX for Advanced & Expert Users

Using vim to view the contents of a directory

When I use this command: vi /home/bob/.vimI expect to see. " ============================================================================ " Netrw Directory Listing (netrw v149) " /home/bob/.vim " Sorted by name " Sort sequence:... (4 Replies)
Discussion started by: cokedude
4 Replies

4. Red Hat

Unable to view output of Sar File for memory

Hi I am unable to view the output of sar file using below command sar -f sar07, it is showing below error. Invalid system activity file: sar07 (0x920) above file is in location /var/log/sa wheather for memory it is creating the file at different location? (1 Reply)
Discussion started by: manoj.solaris
1 Replies

5. Shell Programming and Scripting

trying to view contents of an existing script

root#pwd /opt/tools root# cat check_traffic /opt/tools/utils/commands $1 /opt/tools/utils/DIR/check_traffic root# cat /opt/tools/utils/DIR/check_traffic gew "check_traffic -v" Hi above script works for checking traffic for an ip address im trying to view the check_traffic script by... (5 Replies)
Discussion started by: slashbash
5 Replies

6. HP-UX

[Solved] How to view the contents of the .depot files

Hi, I have one depot file. I would want to view the contents of this file with out extracting and with out installing in a machine. Like for $rpm -qlp rpmfilename will list out all the files in a rpm. Like I would want a command to view the files from a .depot file. I tried with swlist... (2 Replies)
Discussion started by: skmdu
2 Replies

7. UNIX for Dummies Questions & Answers

Unable to view files in a particular directory under /opt

Hi Everybody, I am Unable to view files in a particular directory under /opt. But, when I reboot the server, I am able to view the files.. Its happening daily. Do u 've n e answers/suggestions. Kindly help.. :eek: (1 Reply)
Discussion started by: its.simron
1 Replies

8. Linux

Unable to view files in a particular directory under /opt

Hi Everybody, I am Unable to view files in a particular directory under /opt. But, when I reboot the server, I am able to view the files.. Its happening daily. Do u 've n e answers/suggestions. Kindly help.. :confused: (1 Reply)
Discussion started by: its.simron
1 Replies

9. Programming

view contents of shared library

Hi , i have two doubts in Hp-Ux 1) How to View objects or contents in a shared library in HP-Ux 2) Can i added a c object file to the existing shared file from a different directory . for example : I have two directories X and Y I have a.o b.o c.o object files in X directory I... (4 Replies)
Discussion started by: naren_chella
4 Replies

10. UNIX for Dummies Questions & Answers

unable to view the output through this cgi

#!/bin/env perl read(STDIN,$temp,$ENV{'CONTENT_LENGTH'}); @pairs=split(/&/,$temp); $DISPLAY1 = "/u/inarram111/dev/web/HNW/BNY/unsecure-html/myscript2.html"; $DATAFILE1 = "/u/inarram111/dev/web/HNW/BNY/unsecure-cgi-bin/datafile"; open (DATAFILE1, ">$DATAFILE1") || die " Error opening log file... (0 Replies)
Discussion started by: rishchand
0 Replies

Featured Tech Videos