change ip via remsh


 
Thread Tools Search this Thread
Operating Systems HP-UX change ip via remsh
# 8  
Old 04-12-2008
1. preparing for disaster recovery, We have live IP (production IP) and dr ip.
so when disaster strike the production server, automatically our DR servers will serve as live. So the IP's in Live server will be used by our DR servers. Its not wise to change 50 different unix flavor DR servers IP's manually. Hope you get what i mean. So i build a script a remote script that will execute changed of IP those server.

2. No need to use X, the important is you can chnged IP, you can remote administrartion.

-- regarding adduser, its just my sample that i can not adminster in hpux via remote Smilie.

anyway maybe i need to edit somne configuration file or whatsoever, to do remote administration Smilie

thanks dude..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Remsh

Hello All, I am on HP-UX. Problem is that my remote script behaves different depending on execution method. Method1 (Remote execution): remsh remoteserver /home/myscript.sh Method2 (Local execution): remoteserver :/home#sh myscript.sh In method 2, I can succesfully set timestamp with... (6 Replies)
Discussion started by: mrcrowley
6 Replies

2. UNIX for Advanced & Expert Users

Remsh command

Hi Can any 1 tell me how to use REMSH command with example actually i wanted to run the following command on different severs thru script "df -k .| tail -1 | tr -s ' ' ' ' | cut -d ' ' -f5" :) please reply ASAP.:) (3 Replies)
Discussion started by: maddy_07
3 Replies

3. Shell Programming and Scripting

Remsh

Hi All, Im using remsh to execute shell script on remote server. And this script gets called from another AIX server. My code is: remsh $rHost -l $rUser -n "export JAVA_HOME=/usr/java6_64_SR7; export ORACLE_HOME=/oravl01/oracle/11.1.0.7; export... (3 Replies)
Discussion started by: AB10
3 Replies

4. Shell Programming and Scripting

remsh variables

Hi, I have script. #!/bin/sh -x CD=masterservice remsh 132.196.133.185 -l root './export $CD > test.output' rcp root@132.196.133.185:test.output But I receive the following error. + remsh 132.196.133.185 -l root ./export $CD > test.output To make it work, I remove the ' signs.... (1 Reply)
Discussion started by: mr_andrew
1 Replies

5. UNIX for Dummies Questions & Answers

remsh from HP-UX to Solaris

Hi, I have encountered a problem when I try to issue a remsh command to a remote system (Solaris). I have created the .rhost file in the home directory on the remote system and added the hostname and user. "cat .rhosts 192.168.133.26 root" But when I issue the command from the... (5 Replies)
Discussion started by: mr_andrew
5 Replies

6. Shell Programming and Scripting

how to use remsh to duplicate all...

hi , Any idea how to use remsh to duplicate whatsoever ( / ) from host1 to host2 across network with root? Regards, (0 Replies)
Discussion started by: rauphelhunter
0 Replies

7. Solaris

remsh working one way

host Solaris 5.9 E250 host-name: sunsrv1 remote Solaris 5.8 Netra 250 host_name: sspfs_svr i am able to remsh (or rsh)from remote to host like ; $ remsh sunsrv1 uname -n sunsrv1 but opposite way not possible; # remsh sspfs_svr ls sspfs_svr: Connection refused OR # rsh -l username... (2 Replies)
Discussion started by: xramm
2 Replies

8. UNIX for Dummies Questions & Answers

remsh

i m try to do remsh i need to know what are the step to define the user and password i try .rhosts it give me operator:/export/home/operator>remsh billmed ps -ef permission denied just for testing (3 Replies)
Discussion started by: kazanoova2
3 Replies

9. UNIX for Dummies Questions & Answers

remsh question

Is there a way to execute more than one command on a remote server using remsh? (2 Replies)
Discussion started by: aaareyes
2 Replies

10. UNIX for Dummies Questions & Answers

remsh and nohup

I'm trying to nohup a job that executes a remote shell on another host but it breaks as soon as I launch it, and I get the following back to my terminal. + Stopped (tty input) nohup remsh target_host -l user "ls /proj" This is the command I'm running. nohup remsh target_host -l user "ls... (2 Replies)
Discussion started by: tavaresd
2 Replies
Login or Register to Ask a Question
rexec(3N)																 rexec(3N)

NAME
rexec(), rexec_af() - return stream to a remote command SYNOPSIS
DESCRIPTION
The routine performs the necessary tasks to arrange for the remote execution of cmd on the remote host as user, who is authenticated with passwd. Upon completion of authentication, a file descriptor is returned for the socket to which standard input and standard output of cmd are attached. A command-level interface to is provided by the command (see remsh(1)). When invoked, looks up host using (see gethostent(3N)) and returns -1 if the host does not exist. The host name can be either the official name or an alias. If the call succeeds, is set to the standard name of the host. Next, passes a user name and password to the remote host for authentication, as specified in the user and passwd parameters to If either user or passwd are NULL, searches for the appropriate information in the file (see netrc(4)) in the user's home directory. If no user or passwd are found, prompts the user for the remote user name and password, defaulting to the local user name and a NULL password. The inport variable specifies which TCP port to use for the connection; it is normally the value returned by the following call to (see getservent(3N)). The protocol used by is described in detail in rexecd(1M). If the call succeeds, a socket of type is returned to the caller, and given to the remote command as and If connection to a socket is denied after five tries, or for some other reason (other than the port is in use), returns -1. If fd2p is non-zero, an auxiliary connec- tion to a control process is set up and a file descriptor for it is placed in The control process returns diagnostic output from the com- mand on this connection and accepts bytes on this connection, interpreting them as UNIX signal numbers to be forwarded to the process group of the command. If the auxiliary port cannot be set up, returns -1. If fd2p is 0, of the remote command is made the same as and no provi- sion is made for sending arbitrary signals to the remote process. The routine is similar to the routine except for the additional parameter af. The af parameter in the routine can be used to specify an socket or an socket. If the address family specified in the af argument is not supported, fails with the following error code: DIAGNOTISCS
When invoked, produces the following diagnostic messages: The remote host name was not found by Error in executing the system call. The message specifies the cause of the failure. Error in connecting to the socket obtained for The message specifies the cause of the failure. Error in creating a secondary socket for error transmission to be used by Error in reading information transmitted over the socket. The message specifies the cause of the failure. The remote host did not connect within 30 seconds to the secondary socket set up as an error connection. The program attempts to read from the socket and fails. This means the socket connection with the remote host was lost. Error in opening file in the home directory for a reason other than the file not existing. The file is readable, writable or executable by someone other than the owner. Check whether has been modified by someone else and change the mode of An unrecognized keyword has been found in (see netrc(4)). Correct the keyword in While waiting for the secondary socket to be set up, had its primary connection shut down. This may have been caused by an security failure (see inetd(1M)). While trying to set up the secondary socket, had an error condition on its primary connection. While trying to set up a secondary socket, ran out of a resource, which caused the accept to time out. Repeat the command. If a timeout occurs, check whether the Internet Services are installed and is running. EXAMPLES
To execute the command on remote host using the remote account is invoked as follows: WARNINGS
There is no way to specify options to the call that makes. A program using should not be put in the background when is expected to prompt for a password or user name. Putting in the background will cause it to compete with the current shell process for input. Since replaces the pointer to the host name with a pointer to the standard name of the host in a static data area, this value must be copied into the user's data area if it is to be used later. The password is sent unencrypted through the socket connection. AUTHOR
was developed by the University of California, Berkeley. SEE ALSO
remsh(1), inetd(1M), rexecd(1M), gethostent(3N), getservent(3N), rcmd(3N), netrc(4). rexec(3N)