Skip to content

Instantly share code, notes, and snippets.

@iocanel
Created September 18, 2012 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iocanel/3745466 to your computer and use it in GitHub Desktop.
Save iocanel/3745466 to your computer and use it in GitHub Desktop.
Modified Hardware output configuration in jclouds cli.
#The column headers
hardware.headers=[id];[ram];[cpu];[cores];[volumes]
#Groovy expressions for displaying id, ram, sum of (cores X speed) for each proceessor, sum of cores.
hardware.expressions=hardware.id;hardware.ram;hardware.processors.sum{it.cores*it.speed};hardware.processors.sum{it.cores};hardware.volumes.collect{it.size + "GB " + it.type}
#Cell alignments. We prefer numbers to be right aligned.
hardware.alignments=left;right;right;right;left
#Sort by the [cpu] column in descending order
hardware.shortby=[cpu]
hardware.ascending=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment