Shell: April 2016 Archives

dcmd dssh

user-pic
Vote 0 Votes

dcmd 可以將 command 一次下到多台機器,
前提是要先建立 ssh key, 管理端那台必需先把 public key 送到各台的 authorized_keys
機器清單存在 /etc/dcmd.hosts
然後就可以用 dssh 批次下指令, 例如 dssh uptime
# dssh uptime
host1 14:05:44 up 18 days, 4:12, 0 users, load average: 0.11, 0.10, 0.09
host2 14:05:45 up 19 days, 4:53, 39 users, load average: 1.37, 1.08, 1.08
host3 14:05:45 up 50 days, 4:28, 5 users, load average: 6.06, 6.02, 6.01

Recent Entries

About this Archive

This page is an archive of entries in the Shell category from April 2016.

Shell: February 2016 is the previous archive.

Shell: May 2016 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives