rsh is enable, so rsh reboot hostname or rsh /usr/sbin/shutdown -r now will work.
What I need is to reboot multiple hosts and read from a file that contain name of hosts.
FOR or WHILE loop is ok.
Thanks
rsh actually dont use secure channels.
(maybe with -x provides activate des about just input and output stream.
(like username, but already is not used because of probably you save to user credentials to .rhosts) .
some variants also does not support this also..
if you still want rsh , you can use this command if you start in.rshd in remote machines.
but you must certainly use ssh instead of rsh if security is important.
Hi,
I need to copy a file ( say 1MB file ) to multiple hosts( no of machines is huge).
What would be the most optimal way of doing it with minimal user intervention ?
Thanks,
Sumit (5 Replies)
I am trying get "df -k" output from multiple hosts along with their hostnames via ssh, my script is appending the "df -k" output from all the nodes to a single file but not getting the hostnames for those nodes, just wondering how to pass more than one command via ssh or may be someone could come... (6 Replies)
Hi Folks,
I have scanned the threads all day and have not found anything close enugh to what I need. I'm probably more confused now than before.
Here's what I'm trying to do:
1. automate for running in the early am. (I think I can handle the cron part)
2. get the newest file from a... (5 Replies)
We recently had an smtp server go down and didn't have a backup. Now that the backup server is up and running, I'd like to set up sendmail on our Solaris 10 servers to failover to the backup mail (smtp) server if the primary refuses connections.
I've googled "mailhost" and haven't found... (0 Replies)
Hello,
This question has been posted by another member previously, but no reply/answer was posted to that thread and it has been closed. Searches do not seem to turn up a straight answer as to whether or not this is possible.
So I ask the same question:
We recently had our SMTP server go... (2 Replies)
I have a script on about 15 hosts that I need to run for each host whenever I want (not crontab). Problem is, this script takes 5-10 mins to run for each host. Is there a way I can run the script in parallel for all the hosts instead of 1 at a time? Also, I'm remotely running the script on the... (3 Replies)
I wonder whether someone can help me with what I'm trying to achieve
Basically, the objective is one script to create new user on more than 70 linux hosts if required.
Everything works apart from the highlighted part. It gave me an output
passwd: Unknown user name ''. when try to set... (35 Replies)
Hi everyone!
Some time ago, I had to check connectivity with a big list of hosts, using different formats (protocol://server:port/path/, server:port, ....).
I developed a script that checks the connectivity using different commands (ping, telnet, nc, curl).
It worked for me so I'm sharing it... (9 Replies)
Hello,
I'm trying to create a mechanism wherein a set of Production servers will email me the results of system checks like Uptime, NFS Mounts and a Process after every scheduled reboot.
For this, I figured I'd use the @reboot parameter that crond comes with.
I have added the below onliner... (3 Replies)
Hello,
I am trying to login to multiple servers and i have to run multiple loops to gather some details..Could you please help me out.
I am specifically facing issues while running for loops.
I have to run multiple for loops in else condition. but the below code is giving errors in for... (2 Replies)
Discussion started by: mohit_vardhani
2 Replies
LEARN ABOUT DEBIAN
krcp
RCP(1) BSD General Commands Manual RCP(1)NAME
rcp -- copy file to and from remote machines
SYNOPSIS
rcp [-45FKpxz] [-P port] file1 file2
rcp [-45FKprxz] [-P port] file... directory
DESCRIPTION
rcp copies files between machines. Each file argument is either a remote file name of the form ``rname@rhost:path'' or a local file (contain-
ing no colon or with a slash before the first colon).
Supported options:
-4, -5, -K, -F, -x, -z
These options are passed on to rsh(1).
-P port
This will pass the option -p port to rsh(1).
-p Preserve file permissions.
-r Copy source directories recursively.
DIAGNOSTICS
rcp is implemented as a protocol on top of rsh(1), and thus requires a working rsh. If you intend to use Kerberos authentication, rsh needs
to be Kerberos aware, else you may see more or less strange errors, such as "login incorrect", or "lost connection".
HISTORY
The rcp utility first appeared in 4.2BSD. This version is derived from 4.3BSD-Reno.
HEIMDAL April 16, 2003 HEIMDAL