Skip to content

Instantly share code, notes, and snippets.

@BlackMaria
Created July 14, 2015 20:23
Show Gist options
  • Select an option

  • Save BlackMaria/8b17388c16c10bbb9317 to your computer and use it in GitHub Desktop.

Select an option

Save BlackMaria/8b17388c16c10bbb9317 to your computer and use it in GitHub Desktop.
#!/bin/sh
for MACHINE in $*
do
sdc-vmapi /vms/$MACHINE | json -Ha uuid alias state
eval "sdc-vmapi /job_results -X POST --data '{\"vm_uuid\": \"$MACHINE\", \"execution\": \"failed\" }'"
sdc-vmapi /vms/$MACHINE | json -Ha uuid alias state
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment