Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command or procedure

Status
Not open for further replies.

xyz786

IS-IT--Management
Apr 5, 2006
45
US
Is there any way or procedure to run a script or command on all the partitions attached to an HMC at same time , just like using dsh from control work station to all the nodes attached to that frame.
Thanks

 
Thanks for the reply. What if I need to create a file system on all partitions at a time ? Is there anyway do get this done? We use dsh from SP Control work station to run scripts or commands on all the nodes attached to that CWS. I was wondering is there anything similar to dsh in partitioning environment?


 
You could do it with some good scripting and ssh.

1. write your script
2. deliver the script to the client with ssh private/public key pair
3. execute the script using ssh

I do things like this all the time. You may have to get tricky and use sudo if you have strict rules about remote logins as root.
 
What hfaix said is absolutely right

having him mentioning ssh i will say you can use rsh as well but ssh is more secure off course.

you just have to specify the hostname of the machine you want to use (machine1) to connect to the current machine(machine2). You just have to put machine1 name in .rhost file one machine2 on root directory (/).

then from machine1 you can use the following command:

rsh machine2 Action_to_be_done_on_machine2

example:

rsh machine2 ls -al

Exactly this can be used as specified by hafix with ssh (after configuring it)

ssh machine2 ls -al

Regards,
Khalid
 
dsh is still available for CSM which replaced PSSP whose last version was 3.5. You aren't using CSM?
 
You can install the csm.core and csm.client filesets without installing a 1600 cluster. The dsh command is in /opt/csm/bin and you can run it as you would for pssp.

# /opt/csm/bin/dsh -w node1 df
or set the working collection:
echo node1 > /tmp/nodelist
echo node2 >> /tmp/nodelist
# export WCOLL=/tmp/nodelist
# dsh df

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top