Sponsored Content
Top Forums Shell Programming and Scripting rsh to change multiple ip in multiple servers? Post 302168249 by kenshinhimura on Sunday 17th of February 2008 08:23:41 PM
Old 02-17-2008
rsh to change multiple ip in multiple servers?

good day. i jsut wanted to know what is the best script or the best way changing a lot of Ip's in all servers. Do you have any idea? im using awk to change IP,what if, you have lots of servers. You need to change it one by one? It will take time to change it manually.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

ftp to multiple servers

Hi folks. I am writing a ksh ftp script. The problem is, I need to transfer the files to several different servers. Is there a way to close a connection and move on to the next in one script or do I need to write a separate script for each one? Thanks, kristy (2 Replies)
Discussion started by: kristy
2 Replies

2. Shell Programming and Scripting

Multiple rsh in a script not working

Hi, From one of the unix servers i want execute an rsh command to 5 different servers. i want to go to these servers execute a command and come back. i have a main program which calls a function, where in i use the rsh command. The server name is passed as a parameter to teh function. it is... (3 Replies)
Discussion started by: praphul
3 Replies

3. Shell Programming and Scripting

I need a Script to rsh multiple hp boxes and shutdown

Hello I'm serving on a ship that has frequent power issues. Currently if we loose power we need to rush around to multiple UNIX machines and login to Sysadmin and power down each machine before we loose our ups. If sysadmin is asleep or not in the space we have some real problems. I would like to... (2 Replies)
Discussion started by: blackfam972
2 Replies

4. Shell Programming and Scripting

running multiple rsh command in a script

hi scripting experts, juz wondering if it's possible to have multiple rsh command in a single script? :confused: ie: rsh -l <username> "<command>" rsh -l <username> "<command>" thanks. regards, wee :) (0 Replies)
Discussion started by: lweegp
0 Replies

5. Shell Programming and Scripting

script to change passwords for the same user on multiple servers

I am trying to write a script to change passwords for the same user on multiple servers. My environment runs purely ssh / scp not rsh / rcp and therefore coping using rcp is not an option. I have been playing with expect to perform tasks but think there must be a better way. Has anyone got... (7 Replies)
Discussion started by: stolz
7 Replies

6. UNIX for Advanced & Expert Users

Help Me - How to grep in multiple servers

Hi All, I need help , Regarding the keyword search in multiple servers at a time . we are desiging a search website . we have a multiple servers and each of the server have 3 instances having Unix compressed files.Our requirement was we need to search the particular key word for eg. we need to... (7 Replies)
Discussion started by: prasad00124
7 Replies

7. Shell Programming and Scripting

Help with dial-up to multiple ppp servers

Hello all, I am trying to establish two ppp connections using chap authentication over dial-up. I am using the generic connect scripts and can connect to the first server but when I try to connect the second while the first one is connected there is a chat timeout that occurs. Any... (6 Replies)
Discussion started by: LAVco
6 Replies

8. Shell Programming and Scripting

Shell script to change the password on multiple servers in linux

Can any one please let me know the shell script to change the password for a particular user on multiple linux servers. (2 Replies)
Discussion started by: s_madras
2 Replies

9. UNIX for Beginners Questions & Answers

ssh multiple servers

Hi folks. I'm pretty new to unix, while I'm learning a lot I'm finding bash scripting quite confusing. Im sure it's not really, my head just hasn't clicked with it. Anyway, I need a script to loop the ip addresses stored in a file and run a "pgrep <process>" and return the pid or some... (2 Replies)
Discussion started by: MuntyScrunt
2 Replies

10. 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
KAS_SETPASSWORD(8)					       AFS Command Reference						KAS_SETPASSWORD(8)

NAME
       kas_setpassword - Changes the key field in an Authentication Database entry

SYNOPSIS
       kas setpassword -name <name of user>
	   [-new_password <new password>] [-kvno <key version number>]
	   [-admin_username <admin principal to use for authentication>]
	   [-password_for_admin <admin password>] [-cell <cell name>]
	   [-servers <explicit list of authentication servers>+]
	   [-noauth] [-help]

       kas setpasswd -na <name of user> [-ne <new password>]
	   [-k <key version number>]
	   [-a <admin principal to use for authentication>]
	   [-p <admin password>] [-c <cell name>]
	   [-s <explicit list of authentication servers>+] [-no] [-h]

       kas setp -na <name of user> [-ne <new password>]
	   [-k <key version number>]
	   [-a <admin principal to use for authentication>]
	   [-p <admin password>] [-c <cell name>]
	   [-s <explicit list of authentication servers>+] [-no] [-h]

       kas sp -na <name of user> [-ne <new password>]
	   [-k <key version number>]
	   [-a <admin principal to use for authentication>]
	   [-p <admin password>] [-c <cell name>]
	   [-s <explicit list of authentication servers>+] [-no] [-h]

DESCRIPTION
       The kas setpassword command accepts a character string of unlimited length, scrambles it into a form suitable for use as an encryption key,
       places it in the key field of the Authentication Database entry named by the -name argument, and assigns it the key version number
       specified by the -kvno argument.

       To avoid making the password string visible at the shell prompt, omit the -new_password argument. Prompts then appear at the shell which do
       not echo the password visibly.

       When changing the afs server key, also issue bos addkey command to add the key (with the same key version number) to the
       /etc/openafs/server/KeyFile file. See the OpenAFS Administration Guide for instructions.

       The command interpreter checks the password string subject to the following conditions:

       o   If there is a program called kpwvalid in the same directory as the kas binary, the command interpreter invokes it to process the
	   password. For details, see kpwvalid(8).

       o   If the -reuse argument to the kas setfields command has been used to prohibit reuse of previous passwords, the command interpreter
	   verifies that the password is not too similar too any of the user's previous 20 passwords. It generates the following error message at
	   the shell:

	      Password was not changed because it seems like a reused password

	   To prevent a user from subverting this restriction by changing the password twenty times in quick succession (manually or by running a
	   script), use the -minhours argument on the kaserver initialization command. The following error message appears if a user attempts to
	   change a password before the minimum time has passed:

	      Password was not changed because you changed it too
	      recently; see your systems administrator

OPTIONS
       -name <name of user>
	   Names the entry in which to record the new key.

       -new_password <new password>
	   Specifies the character string the user types when authenticating to AFS. Omit this argument and type the string at the resulting
	   prompts so that the password does not echo visibly. Note that some non-AFS programs cannot handle passwords longer than eight
	   characters.

       -kvno <key version number>
	   Specifies the key version number associated with the new key.  Provide an integer in the range from 0 through 255. If omitted, the
	   default is 0 (zero), which is probably not desirable for server keys.

       -admin_username <admin principal>
	   Specifies the user identity under which to authenticate with the Authentication Server for execution of the command. For more details,
	   see kas(8).

       -password_for_admin <admin password>
	   Specifies the password of the command's issuer. If it is omitted (as recommended), the kas command interpreter prompts for it and does
	   not echo it visibly. For more details, see kas(8).

       -cell <cell name>
	   Names the cell in which to run the command. For more details, see kas(8).

       -servers <authentication servers>+
	   Names each machine running an Authentication Server with which to establish a connection. For more details, see kas(8).

       -noauth
	   Assigns the unprivileged identity "anonymous" to the issuer. For more details, see kas(8).

       -help
	   Prints the online help for this command. All other valid options are ignored.

EXAMPLES
       In the following example, an administrator using the "admin" account changes the password for "pat" (presumably because "pat" forgot the
       former password or got locked out of his account in some other way).

	  % kas setpassword pat
	  Password for admin:
	  new_password:
	  Verifying, please re-enter new_password:

PRIVILEGE REQUIRED
       Individual users can change their own passwords. To change another user's password or the password (server encryption key) for server
       entries such as "afs", the issuer must have the "ADMIN" flag set in his or her Authentication Database entry.

SEE ALSO
       bos_addkey(8), kas(8), kaserver(8), kpwvalid(8)

COPYRIGHT
       IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.

       This documentation is covered by the IBM Public License Version 1.0.  It was converted from HTML to POD by software written by Chas
       Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.

OpenAFS 							    2012-03-26							KAS_SETPASSWORD(8)
All times are GMT -4. The time now is 05:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy