Scripting in one server to apply other servers?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Scripting in one server to apply other servers?
# 1  
Old 10-31-2016
Scripting in one server to apply other servers?

Hey everyone,

I have got 100 different servers(all linux and same version).One of them admin server can reach to others and their structures are same.For example I want to change OS dates and weblogic(java dates) for the timezone project.But I do not want to deal with each one separately.I want to write one script on admin server and this script will change the timezone after that it will check the results and print results to sheet for my last check in admin server.How can I do this, do you have any example for this kind automation?

Ty for your answers
Regards
# 2  
Old 10-31-2016
Dear daggerphobia_ ,

I have a few to questions pose in response first:-
  • What have you tried so far?
  • What output/errors do you get?
  • What OS and version are you using?
  • What are your preferred tools? (C, shell, perl, awk, etc.)
  • What logical process have you considered? (to help steer us to follow what you are trying to achieve)
Most importantly, What have you tried so far?

There are probably many ways to achieve most tasks, so giving us an idea of your style and thoughts will help us guide you to an answer most suitable to you so you can adjust it to suit your needs in future.


We're all here to learn and getting the relevant information will help us all.



Robin
# 3  
Old 10-31-2016
I would add:
Quote:
do you have any example for this kind automation?
Have you searched the forum?
# 4  
Old 10-31-2016
Hi,

for 100 servers I strongly recommend some real deployment tool like ansible, saltstack, chef, cfengine, ...

This should provide some useful words for further searching.

Regards
# 5  
Old 11-01-2016
Quote:
Originally Posted by rbatte1
Dear daggerphobia_ ,

I have a few to questions pose in response first:-
  • What have you tried so far?
  • What output/errors do you get?
  • What OS and version are you using?
  • What are your preferred tools? (C, shell, perl, awk, etc.)
  • What logical process have you considered? (to help steer us to follow what you are trying to achieve)
Most importantly, What have you tried so far?

There are probably many ways to achieve most tasks, so giving us an idea of your style and thoughts will help us guide you to an answer most suitable to you so you can adjust it to suit your needs in future.


We're all here to learn and getting the relevant information will help us all.



Robin
Dear Robin,

Im using Linux 2.6.32, I expect some output type like, "scripting completed, there is no error in the systems" or if it will crash, I have to see fail message in my script output like "cant find the java path, grep method failed" or "getting error in this line" etc etc. I prefer shell, C or java languages.My main purpose get rid of unnecessary works.

This will be my first automation project.Normally Im coding with object oriented langs on IDE's.But I never tried in linux or derivatives OS.(tried a little scripting for some configuration in linux)I dont know how to try or where should I start?Should I use automation tools or not? I have got many questions about that and sorry for my lang Im not native Smilie


Quote:
Originally Posted by vbe
I would add:

Have you searched the forum?
Dear vbe, I searched it but I couldnt find exactly informations Smilie


Quote:
Originally Posted by stomp
Hi,

for 100 servers I strongly recommend some real deployment tool like ansible, saltstack, chef, cfengine, ...

This should provide some useful words for further searching.

Regards
Dear stomp, I still searching which one more effectiable for devops.Do u have any suggest?
# 6  
Old 11-01-2016
Hi dagger,

I'm not sure what you especially have in mind by using devops with your provisioning. The classical devops-tool for deploying apps from an rcs is jenkings(I have not used that so for). Our developers use dokku for deploying ruby on rails applications to docker containers.

I am working with opscode chef. There is some rcs included which keeps track of different versions of the configuration elements. I suppose the other automation tools are the like.

May be you'll need different software packages/services for your aim.

Regards

Last edited by stomp; 11-03-2016 at 04:41 AM..
# 7  
Old 11-03-2016
Quote:
Originally Posted by stomp
Hi dagger,

I'm not sure what you especially have in mind by using devops with your provisioning. The classical devops-tool for deploying apps from an rcs is jenkings(I have not used that so for). Our developers use dokku for deploying ruby on rails applications to docker containers.

I am working with opscode chef. There is some rcs included which keeps track of different versions of the configuration elements. I suppose the other automation tools are the like.

May be you'll different software packages/services for your aim.

Regards

Dear stomp

I could'nt start my project yet.Because Im still confusing how to start it.I decided to learn ansible bec lots of people suggest it.I want to tell simple example.I want to work on only one admin server(reaching other servers) and my goal influence same job to other servers.

For example:

Code:
ps -ef|grep java (have to take every specific servers java path value)
java path/javac sample.java
java path/java sample
date

Automating has to apply these lines in every servers.I don't want to login all 100 servers and do it, plus if I can add check status for this deploy it will be amazing.How can I do this please help Smilie sorry lang again


Moderator's Comments:
Mod Comment
Please wrap all code, files, input & output/errors in CODE tags.
It makes them far easier to read and preserves multiple spaces for indenting or fixed-width data.

Last edited by rbatte1; 11-04-2016 at 05:52 AM.. Reason: Added CODE tags
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to apply the update statement in multiple servers on multiple dbs at a time .?

Hi , Can any please help the below requirement on all multiple servers and multiple dbs. update configuration set value='yes' ;1) the above statement apply on 31 Databases at a time on different Ip address eg : 10.104.1.12 (unix ip address ) the above ip box contains 4 db's eg : db... (2 Replies)
Discussion started by: venkat918
2 Replies

2. Shell Programming and Scripting

Useradd on 200 servers from one server.

I have a list of around 250 machines(IPs). I have few lines of task on each machine like adding users. I don't want to logon to each machine and then change. Can anybody help me getting logic to do it from one machine through SSH, where I can hardcode the password as well as other tasks. (6 Replies)
Discussion started by: nixhead
6 Replies

3. UNIX for Dummies Questions & Answers

Ssh not working to one server from any of the servers

Hello, I tried ssh in debug mode and below is the debug snippet.ssh to a host is not working from any of the hosts No credentials cache found debug1: Miscellaneous failure No credentials cache found debug1: Next authentication method: publickey debug1: Offering RSA public key:... (7 Replies)
Discussion started by: Vishal_dba
7 Replies

4. Ubuntu

Any way we can create an SMTP server and use any scripting language to read emails from that server

Is there any way to create an SMTP mail server will all granular permissions to it so that I can read emails which that server receives through any scripting language and also reply from the same server automatically? (3 Replies)
Discussion started by: sandeepcm
3 Replies

5. Shell Programming and Scripting

C shell scripting, check if link exists on remote servers

Hi, I'm new to C Shell programming. I'm trying to check if a sym link exists on remote server if not send email. I'm not having much luck. Can anyone help? Here is what I have written but it doesn't work. It tells me that my variable was not defined. Here is part of the script, the second... (0 Replies)
Discussion started by: CDi
0 Replies

6. Shell Programming and Scripting

How to stop monitoring of servers at the time of reboot through shell scripting?

We have number of servers which belongs to platforms Solaris, AIX,HP-UX and LINUX. Monitoring tool 'Patrol Agent' process run on the servers to check for the server health and communicate with the Patrol server through the port 5181. During scheduled reboot and maintenance of servers we do receive... (1 Reply)
Discussion started by: subharai
1 Replies

7. Shell Programming and Scripting

Need advices on scripting for remote servers

Hi guys, I need some advice and recommendations for a work project I am doing. Let me state that security is not a concern as this is a closed network and the data is not sensitive. Here's what I would like to do and how I was planning to accomplish it: I have an application on my remote... (1 Reply)
Discussion started by: blueicedrop2000
1 Replies

8. Shell Programming and Scripting

Executing certain commands on different servers from one server only

hi I wish to fire certain set of commands on different servers using single script on one of the server. The problem is that these servers only allow ssh session. telnet to these systems is blocked. Is there any way i can do this as rsh does not works. Regards Rochit (7 Replies)
Discussion started by: rochitsharma
7 Replies

9. AIX

Servers still querying old DNS server?

Hello, I've created new DNS servers and changed all of the clients /etc/resolv.conf to point to them, but when I check the old DNS logs, I see that the clients are still querying it. Does anybody know why? thanks, (2 Replies)
Discussion started by: ctcuser
2 Replies

10. Solaris

Booting Up Servers from the Terminal Server.

All, I have a problem with booting up of servers. I am involved in application programming(Perl/Shell), but don't have much hardware knowledge about the Sun Solaris Server's we use. Our Development Servers are located at a remote place from the Development Centre. Every time there is a Power... (1 Reply)
Discussion started by: rahulrathod
1 Replies
Login or Register to Ask a Question