Skip to content

Instantly share code, notes, and snippets.

@ewindisch
Created February 1, 2010 21:54
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ewindisch/292068 to your computer and use it in GitHub Desktop.
Get details of your Xen guest from inside an instance.
#!/bin/bash
for i in $(seq 0 1024); do x=$(cut -d/ -f3 <(xenstore-read /local/domain/$i/vm 2>/dev/null)); if [ $x ] && [ $x == $(cat /sys/hypervisor/uuid) ] ; then xenstore-ls /local/domain/$i ; fi ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment