+
+ time.sleep(5)
+ #for i in a.down: print i
+
+ time.sleep(5)
+ #print cdb
+ for host in cdb.keys():
+ #if cdb[host]['keyok'] == "0":
+ # null implies that it may not be in PL DB.
+ if cdb[host]['bootstate'] != "null" and \
+ cdb[host]['bootstate'] == "2" and \
+ cdb[host]['keyok'] == "0":
+ print("%-40s \t Bootstate %s nodetype %s kernver %s keyok %s" % (
+ host, cdb[host]['bootstate'], cdb[host]['nodetype'],
+ cdb[host]['kernver'], cdb[host]['keyok']))
+ #ssh = soltesz.SSH('root', host)
+ #try:
+ # val = ssh.run("uname -r")
+ # print "%s == %s" % (host, val),
+ #except:
+ # pass
+ # else:
+ # print("key mismatch at: %s" % host)
+ #print a.codata['michelangelo.ani.univie.ac.at']