Commit 4bc8c274 authored by Mike Hibler's avatar Mike Hibler

First whack at a per-node stats program that will make a stats web page go.

Usage: plabstats [-dfh] [-CDHILMS]
  -d    print debug diagnostics
  -f    fetch new data, else use what is in /tmp/plabxml
  -h    this help message
  -i    print IP address along with metrics
  -n    do not print hostname with metrics

  -C    print Ganglia CPU metrics, sorted by %CPU usage
  -D    print Ganglia disk metrics, sorted by %disk usage
  -L    print Ganglia load metrics, sorted by one minute load
  -M    print Ganglia memory metrics, sorted by %mem usage
  -S    print Emulab state info, summarizing per-node availability

Default is to print a terse summary of per-node resource usage.
Use "plabstats -f" to get fresh data or try something whacky like:
	plabstats -S | grep accept_3
to get the list of nodes which are currently available for mapping
by a "level 3" (aka, average) resource consuming experiment, or:
	plabstats -S | grep reject
to get info about the nodes that cannot be used along with the reason(s) why.

Needs some refinement:
  plabmetrics should store raw info into the DB where plabstats can get it
  presentation of Emulab state info should be improved
parent 0d8dc235
......@@ -14,7 +14,7 @@ include $(OBJDIR)/Makeconf
SUBDIRS = libdslice etc
SBIN_STUFF = plabslice plabnode plabdaemon plabmetrics
SBIN_STUFF = plabslice plabnode plabdaemon plabmetrics plabstats
LIB_STUFF = libplab.py
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment