v811_spc009/external/autotest/server/samples/uname.srv

6 lines
140 B

hosts = [hosts.create_host(h) for h in machines]
for host in hosts:
print host.hostname
print host.run('uname -a').stdout.rstrip()