Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 08-01-2016 11:47 AM
[root@centos ~]# pssh -v -t 0 -l root -h clusterhost.txt -x "-t -t -oStrickHostKeyChecking=no" 'touch testing'
[1] 17:06:00 [FAILURE] 10.00.01 Exited with error code 255
[2] 17:06:00 [FAILURE] 10.00.02 Exited with error code 255
[3] 17:06:00 [FAILURE] 10.00.03 Exited with error code 255
[4] 17:06:00 [FAILURE] 10.00.04 Exited with error code 255
[root@centos ~]#
Created 08-01-2016 01:27 PM
@Shiv Kumar
try this command:-
pssh -v -h clusterhost.txt -l root -A -i "touch testing"--------->>>>------->>>>Added ip's in clusterhost.txt
And for the hostname this command is works:-
pssh -v -h "clusterhost.txt" -A -i "-O StrictHostKeyChecking=no" -l root "touch abc.txt" ------->>>>Added hostname in clusterhost.txt
Because this both command works for me.
If this this is the your answer, then let's close this.
Created 08-01-2016 12:40 PM
check your clusterhost.txt - did you provide correct IP addresses?? - 10.00.01 is not a valid ip address. You may have missed a '.' between 2 0's (10.0.0.1) instead??
Were you able to ssh to the hosts individually??
Created 08-02-2016 03:36 AM
Yep i have given all correct IP for this , while pasting here i changed it.
Created 08-01-2016 01:27 PM
@Shiv Kumar
try this command:-
pssh -v -h clusterhost.txt -l root -A -i "touch testing"--------->>>>------->>>>Added ip's in clusterhost.txt
And for the hostname this command is works:-
pssh -v -h "clusterhost.txt" -A -i "-O StrictHostKeyChecking=no" -l root "touch abc.txt" ------->>>>Added hostname in clusterhost.txt
Because this both command works for me.
If this this is the your answer, then let's close this.
Created 08-02-2016 12:52 PM
Thanks for your reply it worked for me.
[root@ces ~]# pssh -v -h "host.txt" -A -i "-O StrictHostKeyChecking=no" -l root "touch sshkeys.txt"
Warning: do not enter your password if anyone else has superuser privileges or access to your account. Password:
[1] 18:04:48 [SUCCESS] cens
[2] 18:04:48 [SUCCESS] cent
[3] 18:04:48 [SUCCESS] cen
[4] 18:04:48 [SUCCESS] cen4
[root@centos ~]# ls -lrt
-rw-r--r-- 1 root root 31 Aug 2 18:01 host.txt -rw-r--r-- 1 root root 0 Aug 2 18:04 sshkeys.txt