Hostsvc/rsrc/pools get: Difference between revisions
Jump to navigation
Jump to search
New page: ==== vimsh hostsvc/rsrc/pools_get ==== Usage: pools_get poolId Get the list of pools nested within the specified pool. Category: Vimsh |
No edit summary |
||
Line 3: | Line 3: | ||
Get the list of pools nested within the specified pool. | Get the list of pools nested within the specified pool. | ||
==== Example ==== | |||
To extract the poolId, you actually have to look in the following file: | |||
/etc/vmware/hostd/pools.xml | |||
Here is a quick snippet of code to extract the poolId based on a VM Name: | |||
cat /etc/vmware/hostd/pools.xml | grep "RESOURCE_POOL_NAME" -A1 | grep "<objID>" | sed 's/<objID>//;s/<\/objID>//g' | sed -e 's/^[[:blank:]]*//;s/[[:blank:]]*$//' | |||
[[Category: Vimsh]] | [[Category: Vimsh]] |
Revision as of 00:20, 6 January 2009
vimsh hostsvc/rsrc/pools_get
Usage: pools_get poolId
Get the list of pools nested within the specified pool.
Example
To extract the poolId, you actually have to look in the following file:
/etc/vmware/hostd/pools.xml
Here is a quick snippet of code to extract the poolId based on a VM Name:
cat /etc/vmware/hostd/pools.xml | grep "RESOURCE_POOL_NAME" -A1 | grep "<objID>" | sed 's/<objID>//;s/<\/objID>//g' | sed -e 's/^blank:*//;s/blank:*$//'