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

About this Entry

This page contains a single entry by Pank published on April 22, 2016 2:54 PM.

ssh/sftp no matching cipher found was the previous entry in this blog.

Nexus 5X photo/video upside down problem is the next entry in this blog.

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

Monthly Archives