Skip to content

Instantly share code, notes, and snippets.

@dhilst
Created January 21, 2020 21:36
Show Gist options
  • Save dhilst/f13f903a6f7b6789284a50efd2d53367 to your computer and use it in GitHub Desktop.
Save dhilst/f13f903a6f7b6789284a50efd2d53367 to your computer and use it in GitHub Desktop.
Get xcat token
curl -X POST 'http://localhost/xcatws/tokens?pretty=1' -H 'Content-type: application/json' --data "{ \"userName\": \"root\", \"userPW\": \"$(/opt/xcat/sbin/tabdump passwd | grep '^"system' | cut -f3 -d, | sed 's/"//g')\" }"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment