X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=nodehistory.py;h=a7f030baa39c9126f9e10ed764d7b5910bab5504;hb=32e6f3bdf4fe68b057cf070b756418333ae707d6;hp=abbcee8bb78f44df9b3245131c5086f5875b7e82;hpb=c3f2afdc81c6711c3825c82e2cd4970671575438;p=monitor.git diff --git a/nodehistory.py b/nodehistory.py index abbcee8..a7f030b 100755 --- a/nodehistory.py +++ b/nodehistory.py @@ -43,9 +43,10 @@ def fb_print_nodeinfo(fbnode, verbose, date=None): else: fbnode['bootcd'] = "unknown" fbnode['state'] = color_boot_state(get_current_state(fbnode)) + fbnode['boot_state'] = getvalue(fbnode, 'plcnode/boot_state') if len(fbnode['kernel'].split()) >= 3: fbnode['kernel'] = fbnode['kernel'].split()[2] - print " %(state)5s | %(ssh)5.5s | %(pcu)5.5s | %(bootcd)6.6s | %(category)8.8s | %(kernel)s" % fbnode + print " %(state)5s | %(boot_state)s | %(ssh)5.5s | %(pcu)5.5s | %(bootcd)6.6s | %(category)8.8s | %(kernel)s" % fbnode def pcu_print_info(pcuinfo, hostname): print " Checked: ",