Sponsored Content
Top Forums Shell Programming and Scripting Useradd on 200 servers from one server. Post 302899560 by nixhead on Wednesday 30th of April 2014 03:52:04 AM
Old 04-30-2014
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.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

win 200 server + Redhat 9 + FreeBSD 5.1 ?

hi all : i am new to unix and linux world , my experience is near zero, so i am seeking your help to maintain a learning environment to try to catch up with linux and unix in the same time , furthermore win 2000 server is a must for my current job , so what do u think , can this triple boot... (1 Reply)
Discussion started by: behmoth
1 Replies

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

3. Shell Programming and Scripting

scp between 2 servers - invoked at 3rd server

I have a couple of servers that can't see each other and need to copy files from one to the other. I try to invoke scp from a 3rd server that can see both servers - get error msgs that are cryptic. from server C I can do scp user@serverA:~/file . scp file user@serverB:~ but if I try to... (2 Replies)
Discussion started by: bigjohn-nj
2 Replies

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

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

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

7. Solaris

Solaris 11 AI Server Backup existing servers?

Hey Guys i've got a question about the AI Server. Is there any possibility to backup existing servers to reinstall them automaticly by using the AI Server? Regards Marcus (3 Replies)
Discussion started by: Marcusg562
3 Replies

8. UNIX for Advanced & Expert Users

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... (10 Replies)
Discussion started by: daggerphobia_
10 Replies
SIBLINGS(3PVM)							  PVM Version 3.4						    SIBLINGS(3PVM)

NAME
pvm_siblings - return the number and associated task ids of processes that were started together in a single spawn call. SYNOPSIS
C int ntids = pvm_siblings( int **tids ) Fortran call pvmfsiblings( ntids, index, sibling ) PARAMETERS
ntids Returns the number of tids that were spawned together. Value less than 0 indicates an error. tids Pointer to the array of tids that contains the siblings. Indexed from 0 to (ntids - 1) index Integer index of tid to be returned in sibling. If index is set to -1, then sibling is unchanged. Otherwise, must be in the range [0, ntids - 1] sibling When index is in the range [0, ntids -1], this contains the tid of the desired index. DESCRIPTION
The routine pvm_siblings returns the number of tasks and a list of task ids of processes that were spawned together in a single spawn call. The spawning task multicasts the list of successful to the spawned tasks so that each task has an identical copy of the sibling list. pvm_siblings uses local storage to keep the list of tids and does not update this list when sibling tasks exit the virtual machine. The FORTRAN version allows calling programs read a particular index in the internal sibling array. If pvm_siblings is successful, ntids will be > 0. If some error occurs then ntids will be < 0. pvm_siblings is designed to simplify the logic in static spmd-style programs. By giving tasks an identical list of tids and its size, pro- grams may self size and treat the sibling as static map between instances and tasks. The internal list is not updated when sibling tasks exit the virtual machine and should be treated as a snapshot of the parallel program when it was first started. If a task was started by pvm_spawn, then pvm_siblings will return ntids = 1 and ntids = 1 and tids will contain a single entry identical to the task id returned by pvm_mytid() EXAMPLES
C: int *tids; ntids = pvm_siblings(&tids); Fortran: INTEGER TIDS(0:MAXNPROC) CALL PVMFSIBLINGS(NTIDS, -1, IDUM) DO I = 0, NTIDS-1 CALL PVMFSIBLINGS(NTIDS, I, TIDS(I)) ERRORS
pvm_siblings can return the following error codes PvmNoTask No task at that index, or index is invalid. SEE ALSO
pvm_spawn(3PVM), pvm_mytid(3PVM), pvm_parent(3PVM) 26 June, 1997 SIBLINGS(3PVM)
All times are GMT -4. The time now is 09:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy