Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

List instances on all compute nodes on stack.it.ntnu.no

Code Block
tmp_file=/tmp/$$.stack.tmp
while true ; do
  rm /tmp/bjarneskvms*.stack.tmp
  for a in $(seq -w 01 07);
    do echo compute$a  >> /tmp/bjarneskvms$tmp_file
    openstack server list --all --host compute$a >> /tmp/bjarneskvms$tmp_file
  done
  clear
  cat /tmp/bjarneskvms
  sleep rm $tmp_file
  sleep 1
done

List all instances in a project

...