Need help with automount.. is not working!!

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Need help with automount.. is not working!!
# 8  
Old 03-06-2015
So on other systems the mount works with short hostnames?
Then compare the DNS resolver file /etc/resolv.conf
And compare the hosts: line in /etc/nsswitch.conf
# 9  
Old 03-09-2015
Could this be the issue?...I dont see the "sudoers: files ldap" in nsswitch.conf?
# 10  
Old 03-09-2015
No, "sudoers" can only have an impact on the "sudo" command.
Not related here.
# 11  
Old 03-09-2015
Hello -
So it worked by adding the hostname in the remote server in the /etc/hosts, and iam able to cd to the directory, where my scripts reside.

Thanks!Smilie
# 12  
Old 04-27-2015
I have a question: Below script that i wrote for Autosys install....and i want this to be installed on all the servers, currently 2 servers to test and run.

Now i dont think i will be able to run it from my Home Directory because there is an issue with 5.8 version, any other way i can run this?
Code:
#!/bin/bash
_ssh=/usr/bin/ssh
set -x
for host in `echo "ussdv101.ca.boeing.com ussdv102.ca.boeing.com"`

do
               hostname -f; ssh -qt $host "cat ~cg979d/.file

done

echo "Installing Autosys 11 and WAG.  May take a few minutes..."

# Install Autosys
cd /tmp
gtar xpf /net/ussdp137/opt/EHS/sw/WAAE_LinuxR1136.tar.gz
cd WAAE_TMP
./install
cd /
rm -r /tmp/WAAE_TMP

# Install WAG
cd /
gtar xpf /net/ussdp137/opt/EHS/sw/WAGagtRHEL.tar.gz
cd /opt/wag/autosys/bin
./install_auto_profile
cd /opt/wag/autosys/bin
./install

# Migrate Scripts
cp -p /home/autosys/cp8/bin/standard/* /home/autosys/DX1/bin/standard
cd /home/autosys/DX1/bin/standard
chmod 775 /home/autosys/DX1/bin/standard/*
sed -i 's/cp8/DX1/g' *
sed -i 's/\/opt\/autosys/\/opt\/wag/g' *

exit 0

---------- Post updated at 07:56 PM ---------- Previous update was at 12:33 PM ----------

Is it possible to run this command from my mount point

example:

Code:
#!/bin/bash
_servers="/tmp/servers.txt"
_out="/tmp/output.$$"
_ssh=/usr/bin/ssh
set -x
for server in $_servers
do
$_ssh $s  ./net/ussdp137/opt/EHS/scripts/auto.bash >>$_out
done

Iam trying to run auto.bash from the Mount point. Will this work?

Thanks in Advance!

Last edited by Franklin52; 04-28-2015 at 07:48 AM.. Reason: Please use code tags
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Automount through Autofs

I am trying to automount one of my NFS share to my client machine but it is not mounting here is the scenario : My server machine ip : 192.168.1.100 My client machine ip is : 192.168.1.102 on client machine i have configured the /etc/auto.master file : /share(My mount point) ... (0 Replies)
Discussion started by: Vaibhav.T
0 Replies

2. AIX

AutoMount in AIX

Hi Admins, I am new to AIX, pls help me on my below doubts 1) I have received below alerts Orange : PORTAL detected Filesystem (/nfs/sources) is 92.07% Utilized Here Orange is server name. When i did df -k in orange i do not see /nfs/sources filesystem in output. Doubts 1) how to... (2 Replies)
Discussion started by: saurabh84g
2 Replies

3. Linux

Automount problem

Hi, Please give step by step how to do automount in linux Thanks, Mani (9 Replies)
Discussion started by: Mani_apr08
9 Replies

4. AIX

Help on Unconfiguring Automount

Hi All, Please help. I need an advise on how to Unconfigure automount please. Many Thanks. (2 Replies)
Discussion started by: EngnrRG
2 Replies

5. Solaris

Automount in Solaris 10

Hi friends I'm a newbie trying to automount a nfs shared directory. Below is the configuration I'm using FreeBSD machine as NFS server. IP Address - 192.168.1.60 # cat /etc/exports /shared 192.168.1.50 Solaris 10 as NFS client. IP Address - 192.168.1.50 # cat... (1 Reply)
Discussion started by: pankajj
1 Replies

6. Shell Programming and Scripting

automount script

I'm attempting to take an fstab that looks something like this: /proc /proc proc rw,nosuid,nodev,noexec 0 0 /sys /sys sysfs rw,nosuid,nodev,noexec 0 0 /dev/shm /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0 /dev/pts /dev/pts devpts mode=0622 0 0... (6 Replies)
Discussion started by: unclecameron
6 Replies

7. Solaris

CD automount does not work

Hello, I have a SUN Solaris 9 machine (Sun-Fire-V490). I put a DVD in the reader to install a software. The automount procedure did not work (vold is running) : I have nothing under /cdrom When I try "eject" command I have the answer "No default media available" When I try to mount manually the... (3 Replies)
Discussion started by: aribault
3 Replies

8. UNIX for Advanced & Expert Users

AutoMount

Hi All How do I do a auto mount to a directory in a different unix server. I am using Solaris. Please advise!! TIA Jana (7 Replies)
Discussion started by: janavenki
7 Replies

9. UNIX for Advanced & Expert Users

Automount

My site has a few sun solaris server including out NIS server and NFS server on solaris machines. we also have few suse linux and redhat linux machine. All our home directory is on our NFS server(sun Solaris) and this is automounted through /etc/auto_master and /etc/auto_home this worked fine... (1 Reply)
Discussion started by: hassan2
1 Replies

10. UNIX for Advanced & Expert Users

automount

I install an external disk on my sun solaris 8 this went fine and I was able to access all filesystem on the disk. the new disk is mounted on /local then 6 hours later files under /local/files was 1 byte in size at the same time I received the following error message in... (4 Replies)
Discussion started by: hassan2
4 Replies
Login or Register to Ask a Question