-
-
Save jasonpincin/4771721 to your computer and use it in GitHub Desktop.
Get UUID of a SmartOS VM given it's alias
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
# | |
# Given a SmartOS VM alias, returns the UUID. | |
# | |
# Usage: | |
# | |
# vmid <alias> | |
# | |
# vmadm get `vmid <alias>` | |
# | |
# <alias> must be an exact match. | |
vmadm lookup alias=$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment