Sponsored Content
Operating Systems Linux Red Hat Need help with automount.. is not working!! Post 302942320 by bkilaru on Monday 27th of April 2015 10:56:46 PM
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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
SYSTEMD.AUTOMOUNT(5)						 systemd.automount					      SYSTEMD.AUTOMOUNT(5)

NAME
systemd.automount - Automount unit configuration SYNOPSIS
automount.automount DESCRIPTION
A unit configuration file whose name ends in ".automount" encodes information about a file system automount point controlled and supervised by systemd. This man page lists the configuration options specific to this unit type. See systemd.unit(5) for the common options of all unit configuration files. The common configuration items are configured in the generic [Unit] and [Install] sections. The automount specific configuration options are configured in the [Automount] section. Automount units must be named after the automount directories they control. Example: the automount point /home/lennart must be configured in a unit file home-lennart.automount. For details about the escaping logic used to convert a file system path to a unit name see systemd.unit(5). For each automount unit file a matching mount unit file (see systemd.mount(5) for details) must exist which is activated when the automount path is accessed. Example: if an automount unit home-lennart.automount is active and the user accesses /home/lennart the mount unit home-lennart.mount will be activated. Automount units may be used to implement on-demand mounting as well as parallelized mounting of file systems. If an automount point is beneath another mount point in the file system hierarchy, a dependency between both units is created automatically. FSTAB
Automount units may either be configured via unit files, or via /etc/fstab (see fstab(5) for details). For details how systemd parses /etc/fstab see systemd.mount(5). If an automount point is configured in both /etc/fstab and a unit file, the configuration in the latter takes precedence. OPTIONS
Automount files must include an [Automount] section, which carries information about the file system automount points it supervises. The options specific to the [Automount] section of automount units are the following: Where= Takes an absolute path of a directory of the automount point. If the automount point does not exist at time that the automount point is installed, it is created. This string must be reflected in the unit filename. (See above.) This option is mandatory. DirectoryMode= Directories of automount points (and any parent directories) are automatically created if needed. This option specifies the file system access mode used when creating these directories. Takes an access mode in octal notation. Defaults to 0755. SEE ALSO
systemd(1), systemctl(8), systemd.unit(5), systemd.mount(5), mount(8), automount(8), systemd.directives(7) systemd 208 SYSTEMD.AUTOMOUNT(5)
All times are GMT -4. The time now is 10:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy