initial checkin
diff --git a/xos/openstack/get_token.sh b/xos/openstack/get_token.sh
new file mode 100755
index 0000000..f8012fb
--- /dev/null
+++ b/xos/openstack/get_token.sh
@@ -0,0 +1,4 @@
+curl --insecure -X POST $ENDPOINT/v2.0/tokens \
+  -H "Content-type: application/json" \
+  -d '{"auth": {"tenantName": "'$TENANT'", "passwordCredentials":{"username": "'$USERNAME'", "password": "'$PASSWORD'"}}}' \
+  | python -c 'import json,sys;obj=json.load(sys.stdin);print obj["access"]["token"]["id"];'