Command to connect to remote AIX server


 
Thread Tools Search this Thread
Operating Systems AIX Command to connect to remote AIX server
# 1  
Old 09-18-2014
Command to connect to remote AIX server

Hi All,
Im looking for a command that can remotely connect to another AIX machine and execute scripts present in that server(Possible scenarios are a complete a restart of 3 servers in a cluster through a single script execution present in one of the servers). Im relatively new to AIX and any help would be deeply apprecieted.

Regards,
Vishakh
# 2  
Old 09-18-2014
The most common way to do this nowadays is through "ssh" (secure shell). Classical means to achieve this would be "rexec"/"rcmd" and/or "rlogin", but these protocols and tools are typically disabled today, along with "telnet", because passwords would be transmitted in clear text over the network.

All these have been replaced by "ssh" nowadays. You can even exchange secret keys and this way establish "chains of trust" between systems so that you can execute commands remotely (within these chains of trust) without giving any password. This is handy for automated processes.

I hope this helps.

bakunin

Last edited by bakunin; 09-18-2014 at 08:31 AM..
This User Gave Thanks to bakunin For This Post:
# 3  
Old 09-18-2014
Thanks you so much for the response. Can you also post a sample code of the same, so that i can get an insight as well as develop a sample one based on that.
# 4  
Old 09-18-2014
There is no sample - "ssh" is a complete package (open source, btw.), which is provided as installable software. Install it, configure it, done. There are lots of manuals and configuration samples out there, no need to provide one more.

In fact the configuration is pretty simple, there are 2-3 settings you have to edit for a basic configuration.

I hope this helps.

bakunin
# 5  
Old 09-18-2014
Hi Vishakh,

You would normally use something like this;

Code:
ssh "username"@"hostname" '/path/to/my_script'

example

ssh monitor@server123 'uname -a'

This per supposes that you have setup the required keys in the known hosts file etc.

Regards

Dave
# 6  
Old 09-23-2014
I am not sure about the cluster your talking for 3 servers. Smilie
But according to my understanding for your query,

I will make one server as master for SSH key gen and share the keys to other servers, so there would be a free login to those servers.

And for executing the script , The script is placed in the NFS directory(Master) and mounted to those three servers.

Then a basic for loop script is executed in master.

Tested: I use to create users in one shot for multiple servers.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script connect to remote server, not find files and exit only from remote server, but not from scrip

I have a script, which connecting to remote server and first checks, if the files are there by timestamp. If not I want the script exit without error. Below is a code TARFILE=${NAME}.tar TARGZFILE=${NAME}.tar.gz ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;... (3 Replies)
Discussion started by: digioleg54
3 Replies

2. Shell Programming and Scripting

Sudo connect to a remote server and execute scripts in remote server

Hello Every one!! I am trying to write a shell script which will connect to a remote server and execute scripts which are at a certain path in the remote server. Before this I am using a sudo command to change the user. The place where I am stuck is, I am able to connect to the... (6 Replies)
Discussion started by: masubram
6 Replies

3. HP-UX

Connect to remote server using sftp with password define within command/script

I am trying to connect to remote server in hp-ux, using sftp command (using sftp username@ip and password ) able to connect to remote server but, in this case sftp prompt for password and user need to manually enter it. I want sftp can read a password define in script or from file, so it can... (1 Reply)
Discussion started by: ketanraut
1 Replies

4. Red Hat

unable to connect remote server using ssh

hi all i am unable to connect remote server using ssh but i am able to ping the server ssh service is running. (5 Replies)
Discussion started by: nikhil kasar
5 Replies

5. AIX

AIX Remote Connect Fail With “No more multiple IP addresses to connect” Error

We have a production server at a client site running AIX. And recently when users are trying to connect to it via telnet, it prompts "No more multiple IP addresses to connect". Can I know what does this error mean? and how to rectify this? Thanks. (2 Replies)
Discussion started by: a_sim
2 Replies

6. UNIX for Dummies Questions & Answers

How do I connect to a remote X11 server ?

Hi, how do I connect to a remote x server? i tried this: startx -display 192.168.0.1:0 # when I do this, it just connects to my own x server i.e I see my own desktop. and export DISPLAY=192.168.0.1:0.0 # when I do this nothing happens. (it doesn't even try to connect, no activity in... (7 Replies)
Discussion started by: uxfuser
7 Replies

7. Shell Programming and Scripting

connect to remote server by applying password

Hi , I am new to shell script. I have to write a shell script which will login to remote server then check for the space there. There 50 remote ervers all are having different password. Could you please suggest me some way. I am working on solaris box. Thanks in advance (2 Replies)
Discussion started by: vikash_k
2 Replies

8. Shell Programming and Scripting

Connect to a Remote Sybase Server Through Script

Hi all, I am trying to connect to Remote Sybase database Server through shell script. I am operating on WindowsXP, connect to Unix(version SunOS: 5.8) The thing is i dont know how to connect to Sybase Server through my script file? Are there any manual pages which can guide me through the... (3 Replies)
Discussion started by: Aparna_k82
3 Replies

9. Windows & DOS: Issues & Discussions

Connect to a Remote Sybase Server Through Script.

Hi all, I am trying to connect to Remote Sybase database Server through shell script. I am operating on WindowsXP, connect to Unix(version SunOS: 5.8) The thing is i dont know how to connect to Sybase Server through my script file? Are there any manual pages which can guide me through the... (2 Replies)
Discussion started by: Aparna_k82
2 Replies

10. UNIX for Dummies Questions & Answers

Remote Connect - SCO Open Server

Hello.. Please helppppppp...!!! I am using SCO Open Server version 5.0 at work. I am trying to find a third party software to use on my computer at home which has windows 98 on it to do remote connect to my work. Is there any such software ? I know there is PC ANYWHERE but i don't think it... (2 Replies)
Discussion started by: jackpotp
2 Replies
Login or Register to Ask a Question