Bug 490500

Summary: Display off line status of slave on "main page"
Product: [Eclipse Project] Platform Reporter: David Williams <david_williams>
Component: RelengAssignee: Platform-Releng-Inbox <platform-releng-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 4.6   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description David Williams CLA 2016-03-27 13:18:37 EDT
I have learned one or two ways to determine if a node is "offline". 

It would help to know that as soon as possible. 

Currently, I only notice when a test seems to be taking a long time, and find it has been offline a long time, and that is usually the time of day that it is too late to fix that day, so we lose another day. 

In "bash form" it might look like this: 

#!/usr/bin/env bash

# Find machine (slave) from job
wgetcmd="https://hudson.eclipse.org/shared/job/ep46N-unit-win32/235/api/xml?xpath=/*/builtOn/text()"
machine=$(wget --no-verbose --quiet -O - "${wgetcmd}" )i
# THen check machine status
wgetcmd="https://hudson.eclipse.org/shared/computer/${machine}/api/xml?xpath=/*/offline/text()"
machineStatus=$(wget --no-verbose --quiet -O - "${wgetcmd}" )

echo -e "\n\tMachine: \t${machine} \tStatus: ${machineStatus}"