Vagrant machine status

If you need to get the status of a vagrant machine you can run the following in a command window:

vagrant status aws --machine-readable | awk -F"," '{if ($3 == "state") print $4;}'

Will output:


if the machine is running or


if it is not.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>