Bug 490500 - Display off line status of slave on "main page"
Summary: Display off line status of slave on "main page"
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Releng (show other bugs)
Version: 4.6   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Releng-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-27 13:18 EDT by David Williams CLA
Modified: 2016-03-27 13:18 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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}"