Collect command histories from remote hosts