PDSH pada FreeBSD 8.0-RELEASE

BY : Ogev Gustav Pdsh adalah high-performance, utilitas paralel shell remote . Ia memiliki built-in, thread-safe  klien untuk Berkeley dan K...

BY : Ogev Gustav
Pdsh adalah high-performance, utilitas paralel shell remote . Ia memiliki built-in, thread-safe  klien untuk Berkeley dan
Kerberos V4 dan rsh dapat menghubungi SSH eksternal (meskipun dengan kinerja berkurang).
Pdsh menggunakan "sliding window" algoritma paralel untuk menghemat sumber daya soket pada inisiasi node  dan 
melewatkan progress untuk dilanjutkan ketika timeout terjadi pada beberapa koneksi.
Pdsh mirip dengan DSH, bagian dari PSSP software IBM, tapi menawarkan peningkatan kinerja dan penanganan kondisi kesalahan. 
Ini berjalan pada berbagai platform (termasuk sebagai pengganti DSH pada AIX / PSSP), tetapi terutama dikembangkan di Linux 
Baru-baru ini, Pdsh telah memiliki kemampuan untuk menjalankan pekerjaan MPI pada interkoneksi Elan3 quadrics di Linux. 

RPM biner yang disediakan untuk di-download tidak menyediakan fungsi ini, jika Anda ingin menggunakan ini, 
bisa mengacu pada tarball source atau e-mail  penulis mark.grondona untuk informasi lebih lanjut.
Untuk download pdsh dan dukungan, kunjungi halaman pdsh SourceForge.net dihttp://sourceforge.net/projects/pdsh.

Pdsh didistribusikan di bawah GNU General Public License, versi 2. Untuk pertanyaan teknis tentang Pdsh, menghubungi Mark Grondona.
Demikian uraian singkat mengenai pdsh ,  marilah kita mulai pada tahap installasi 
login sebagai root pada  FreeBSD anda 
login as: ogeb
Using keyboard-interactive authentication.
Password:
Last login: Wed Oct 12 09:28:34 2011 from this.isplud.net
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
>sudo su -
ogeb# cd /usr/ports/sysutils/pdsh


[root@ogeb /usr/ports/sysutils/pdsh]# pwd
/usr/ports/sysutils/pdsh
[root@ogeb /usr/ports/security/pssh]#make install
===>  Vulnerability check disabled, database not found
===>  License GPLv2 accepted by the user
===>  Found saved configuration for pdsh-2.23_2
=> pdsh-2.23.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/.
---snif----
Making install in etc
Making install in scripts
test -z "/usr/local/bin" || /bin/sh ../config/mkinstalldirs "/usr/local/bin"
 install  -o root -g wheel -m 555 'dshbak' '/usr/local/bin/dshbak'
Making install in config
===>   Compressing manual pages for pdsh-2.23_2
===>   Registering installation for pdsh-2.23_2
Kemudian kita daftarkan nama node yang mau kita pdsh kan 
[root@ogeb /usr/ports/security/pssh]# nano  /etc/hosts
203.84.136.29 node2
110.44.171.1 node1
110.44.171.78 node3

Pada editor nano  untuk mengsave file tersebut kita tekan ctrl+x lalu Y untuk konfirmasi save atau tidak kemudian enter
Seperti kita ketahui  PDSH memerlukan koneksi ssh yang automatis login , maka diperlukan memiliki  ssh key yang sama pada setiap node dengan cara mengkopikan ke setiap node.
untuk melakukan hal itu ada beberapa langkah yang harus kita lakukan 
1. Membuat ssh key untuk server yang menjalankan pdsh 
2. Menginstall ssh-copy-id 

Pada saat  ada pertanyaan untuk memasukan passphrase langsung di enter saja jika tidak mau menggunakan passphrase

 [root@ogeb /usr/ports/security/pssh]#  ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
a7:30:c1:4f:e7:6b:0e:4b:10:67:a2:da:41:ea:5a:24 root@ogeb.networklab.cakralintas.net.id
The key's randomart image is:
+--[ RSA 2048]----+
|                 |
|     .           |
|    . = + .      |
|   o . O o       |
|E o o + S o      |
| + o . + o .     |
|  + .   + o      |
| o     . =       |
|.       . .      |
+-----------------+

Setelah selesai menggenerate ssh key , selanjutnya kita harus  mengcopy kan ke setiap node menggunakan ssh-copy-id  dari node 1 sampai node3

[root@ogeb ~]# /usr/local/bin/ssh-copy-id -i ~/.ssh/id_rsa.pub node1
root@node1's password:
Permission denied, please try again.
root@node1's password:
Now try logging into the machine, with "ssh 'node1'", and check in:

  ~/.ssh/authorized_keys


to make sure we haven't added extra keys that you weren't expecting.


[root@ogeb ~]# /usr/local/bin/ssh-copy-id -i ~/.ssh/id_rsa.pub 



[root@ogeb ~]# /usr/local/bin/ssh-copy-id -i ~/.ssh/id_rsa.pub node2
root@node2's password:
Now try logging into the machine, with "ssh 'node2'", and check in:


  ~/.ssh/authorized_keys


to make sure we haven't added extra keys that you weren't expecting.


[root@ogeb ~]# /usr/local/bin/ssh-copy-id -i ~/.ssh/id_rsa.pub node3
Password:
Now try logging into the machine, with "ssh 'node3'", and check in:


  ~/.ssh/authorized_keys


to make sure we haven't added extra keys that you weren't expecting.


setelah selesai mengcopykan ssh key pada setiap server  , berarti pdsh kita sudah selesai di setting , tinggal mencobanya saja
[root@ogeb ~]# pdsh -w node[1-3]


pdsh> id
node2: uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
node1: uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
node3: uid=0(root) gid=0(wheel) groups=0(wheel),5(operator)


Demikian Uraian dan tahapan singkat mengenai PDSH , mudah mudahan bermanfaat.


Salam, 
ogev gustav

COMMENTS

Name

Application Support,19,database server,1,Desktop/XWindow,1,DNS Server,2,Email Server,3,Firewall,1,FTP Server,2,General,2,IPFilter,1,Kernel,2,Networking,8,Proxy Server,4,Security,6,Tips and Trick,5,Web Server,2,
ltr
item
IndoFreeBSD: PDSH pada FreeBSD 8.0-RELEASE
PDSH pada FreeBSD 8.0-RELEASE
IndoFreeBSD
https://www.indofreebsd.or.id/2015/02/pdsh-pada-freebsd-80-release.html
https://www.indofreebsd.or.id/
http://www.indofreebsd.or.id/
http://www.indofreebsd.or.id/2015/02/pdsh-pada-freebsd-80-release.html
true
1901051463523757307
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content