03-31-2011
Script to login to several servers and get files
Hi ppl,
I am looking out for a shell script
a. That would have to login(from a main server) to say 16 servers individually.
b.On each server go to a particular location, check if a particular file is generated on a date(say every sunday it gets generated and i would be interested in the latest one),
c.if the latest file is present, retrieve the file to main server.
d.if the latest file is not present, wait and check later.
e. This has to be repeated until the files from all 16 servers reach the main server.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to login into multiple servers thru a script run couple commands and run find command as root. I only have ssh access to the servers as a user than I can "su" to root. If you have a similar script please post it. Also if you can suggest commands that I should consider please let me know.
... (1 Reply)
Discussion started by: avcert1998
1 Replies
2. Shell Programming and Scripting
Hi,
I want to write a shell script to compare two tables in teradata.these tables are present on different servers.
I want to connect to both servers in single login in order to fetch and compare the data in one go.
Thanks (1 Reply)
Discussion started by: monika
1 Replies
3. Shell Programming and Scripting
Hi Everybody,
I am bit new to shell scripting. I need some help in my script.
I have to login into 15 servers and check some logs daily. For that I've written one shell script, somewhere it is having some problems. After log into the first server, the script is not going with the next steps.... (6 Replies)
Discussion started by: raghu.iv85
6 Replies
4. UNIX for Dummies Questions & Answers
Hi ppl,
I am looking out for a shell script
a. That would have to login(from a main server) to say 16 servers individually.
b.On each server go to a particular location, check if a particular file is generated on a date(say every sunday it gets generated and i would be interested in the latest... (0 Replies)
Discussion started by: yohasini
0 Replies
5. Shell Programming and Scripting
Hi ppl,
I am looking out for a shell script
a. That would have to login(from a main server) to say 16 servers individually.
b.On each server go to a particular location, check if a particular file is generated on a date(say every sunday it gets generated and i would be interested in the latest... (8 Replies)
Discussion started by: yohasini
8 Replies
6. Shell Programming and Scripting
I am having the 15 servers which need to do the monitoring
Hi I need a shell script, By which i can log in to multiple servers and execute the commands.. I need to specify the username and password in the scripts.
Please help me to write the script so that it can login with username and... (5 Replies)
Discussion started by: nandan8a
5 Replies
7. Shell Programming and Scripting
I need a shell script using expect to login to couple of remote servers and read "crontab -l -u <username>" & "cat /etc/rc.local" & "df -h" and able to create output into a file saved locally with hostname.crontab & hostname.rc.local & disk.status. I can supply a file as list of hostname or IP... (4 Replies)
Discussion started by: jaipsharma
4 Replies
8. Shell Programming and Scripting
Hi all,
I am baffled on this. Solaris Irix system.:confused:
I have 4 servers all connected to one another, :b: I need to write a script line that would login on to server 1-3 ($HOST) start a script in the back ground and log off while the back ground script runs over a length of time.:eek:
... (10 Replies)
Discussion started by: weddy
10 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I am trying to create an expect script that backups up data from multiple servers with the same username, but with different passwords for each server. For example, I have two servers with the "myuser" account with different passwords for that account for each server.
I went ahead and... (2 Replies)
Discussion started by: richw92201
2 Replies
10. Shell Programming and Scripting
Hello,
I'm new to shell scripting and need a quick note on how to write a shell script to perform deletion of files from 5 different hostnames in various locations.
Found out to delete files from one path by using below command and made it to work on cron job but need to do it in a shell... (2 Replies)
Discussion started by: Teja G
2 Replies
LEARN ABOUT DEBIAN
nwfsctrl
NWFSCTRL(8) nwfsctrl NWFSCTRL(8)
NAME
nwfsctrl - Perform server command
SYNOPSIS
nwfsctrl [ -h ] [ -S server ] [ -U user name ] [ -P password | -n ] [ -C ] [ -p ncpfs path ] -c | -o | -[f]d
nwfsctrl [ -h ] [ -S server ] [ -U user name ] [ -P password | -n ] [ -C ] [ -p ncpfs path ] server command
DESCRIPTION
nwfsctrl performs command on server.
OPTIONS
-h
With -h nwfsctrl prints a little help text.
-S server
is the name of the server you want to use.
-U user
user is the user name to use for login. To set the server's time, you need supervisor privileges.
-P password
password is the password to use for login. If neither -n nor -P are given, and the user has no open connection to the server, nwfstime
prompts for a password.
-n
-n should be given if no password is required for the login. As you need supervisor privileges for setting the date and time, this
option is probably not used very often.
-C
By default, passwords are converted to uppercase before they are sent to the server, because most servers require this. You can turn off
this conversion by -C.
-o
Open bindery.
-c
Close bindery.
-d
Down fileserver. This command will complain if there are open files on server.
-fd
Down fileserver, regardless of opened files.
load module options...
Load module module with options options... on server. Program will complain if module is already loaded.
unload module
Unload module module from server. Program will complain if module is not loaded.
mount volume
Mount volume volume.
dismount volume
Dismount volume volume. If there are open files on volume, server displays prompt on console. You must go to the server (or telnet/xcon-
sole) and hit Y or N to get beyond this point).
set variable = value
Set server settable variable variable to value value.
open bindery
Open bindery.
close bindery
Close bindery.
enable login
Enable login to file server.
disable login
Disable login to file server.
disable tts
Disable TTS. This probably does not work on Netware 4.11.
enable tts
Enable TTS. This probably does not work on Netware 4.11.
BUGS
Other commands are not written yet (volume, clear connection ...)
CREDITS
This utility was created by Petr Vandrovec (vandrove@vc.cvut.cz) and is part of ncpfs since 2.2.0.11.
nwfsctrl 2/12/1999 NWFSCTRL(8)