12 l_nodes = plc.getNodes()
16 name = host['hostname']
19 f = open("known_hosts", 'w')
22 key = node['ssh_rsa_key']
26 l_nw = plc.getNodeNetworks({'nodenetwork_id':node['nodenetwork_ids']})
30 # TODO: check for '==' at end of key.
32 print "Host with corrupt key! for %s %s" % (node['boot_state'], node['hostname'])
33 s_date = time.strftime("%Y/%m/%d_%H:%M:%S",time.gmtime(time.time()))
34 print >>f, "%s,%s %s %s" % (host,ip, key, "PlanetLab_%s" % (s_date))
37 for node in nokey_list:
38 print "%5s %s" % (node['boot_state'], node['hostname'])
40 if __name__ == '__main__':