LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   shell script to login on multiple server. (https://www.linuxquestions.org/questions/linux-server-73/shell-script-to-login-on-multiple-server-4175492488/)

Gunjo 01-25-2014 01:28 AM

shell script to login on multiple server.
 
Hello,

I work as a administrator in my company, so need to login multiple linux servers. so i need a shell script which can login multiple servers. It should be like that, for each server there is separate tab.

Please help me.

druuna 01-25-2014 02:48 AM

Quote:

Originally Posted by Gunjo (Post 5104842)
I work as a administrator in my company, so need to login multiple linux servers. so i need a shell script which can login multiple servers. It should be like that, for each server there is separate tab.

What exactly is it what you need and what is it based upon?

- You talk about each server having its own tab. Which tabbed terminal or program are you using? Would multiple terminals (example: xterm) do, which aren't tabbed.

- You also mention logging into multiple servers. Do you need to log into all the remote servers at once when the script runs? Or do you need/want to log into one or more based on a selection?

- Which mechanism is used to log into the servers?

It would be nice if you showed what you have tried. This might also give us an indication about the above questions.

pingu 01-25-2014 02:58 AM

Isn't this what you're looking for?
http://askubuntu.com/questions/20349...th-two-differe
In short: gnome-terminal --tab -e "command1" --tab -e "command2"

You could also checkout remmina, it's not exactly what you're asking for but might be a good complement.

btmiller 01-25-2014 11:03 AM

If you have a large number of servers and aren't using a configuration management tool already, you might look into Puppet, CfEngine, or Chef. It might reduce the amount of time you need to spend logging inrto many servers to do the exact same task.

TB0ne 01-26-2014 11:14 AM

Quote:

Originally Posted by Gunjo (Post 5104842)
Hello,
I work as a administrator in my company, so need to login multiple linux servers. so i need a shell script which can login multiple servers. It should be like that, for each server there is separate tab.
Please help me.

We'll be glad to HELP you..so show us what you've done/tried of your own and tell us where you're stuck. But we are NOT going to write your scripts for you...and as an administrator, shouldn't YOU be able to write them? Research what tools will fit your environment already?

Show us what you've done/tried of your own, and what your goals are. But a script to login to multiple servers is pointless..unless it actually DOES SOMETHING after it logs in. And depending on what the 'something' is, you may not even NEED a script.

Gunjo 12-17-2014 11:00 PM

Ok, I will do it.


All times are GMT -5. The time now is 03:43 AM.