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