<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Nutanix AHV VM Reporting	</title>
	<atom:link href="https://magander.se/nutanix-ahv-vm-reporting/feed/" rel="self" type="application/rss+xml" />
	<link>https://magander.se/nutanix-ahv-vm-reporting/</link>
	<description></description>
	<lastBuildDate>Thu, 10 Jan 2019 14:04:17 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: magander3		</title>
		<link>https://magander.se/nutanix-ahv-vm-reporting/#comment-119029</link>

		<dc:creator><![CDATA[magander3]]></dc:creator>
		<pubDate>Thu, 23 Mar 2017 00:40:38 +0000</pubDate>
		<guid isPermaLink="false">http://magander.se/?p=8458#comment-119029</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://magander.se/nutanix-ahv-vm-reporting/#comment-118904&quot;&gt;Sergey&lt;/a&gt;.

so the problem was spaces in the VM names. Script is updated to manage this now.

//Magnus]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://magander.se/nutanix-ahv-vm-reporting/#comment-118904">Sergey</a>.</p>
<p>so the problem was spaces in the VM names. Script is updated to manage this now.</p>
<p>//Magnus</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: magander3		</title>
		<link>https://magander.se/nutanix-ahv-vm-reporting/#comment-118905</link>

		<dc:creator><![CDATA[magander3]]></dc:creator>
		<pubDate>Tue, 21 Mar 2017 15:56:33 +0000</pubDate>
		<guid isPermaLink="false">http://magander.se/?p=8458#comment-118905</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://magander.se/nutanix-ahv-vm-reporting/#comment-118904&quot;&gt;Sergey&lt;/a&gt;.

Hi,
no $(($numvcpu * $cpucores)) should be ok. Not getting any error when running the script.
Can you send me script output and also run the following 5 commands (replace vmname with a name of a VM in your environment) and send me the output?

numvcpu=`/usr/local/nutanix/bin/acli vm.get vmname &#124; grep -i num_vcpus &#124;awk -F&quot;:&quot; &#039;{print $2}&#039;&#124; awk -F&quot; &quot; &#039;{print $1}&#039;`
cpucores=`/usr/local/nutanix/bin/acli vm.get vmname &#124; grep -i num_cores_per_vcpu &#124;awk -F&quot;:&quot; &#039;{print $2}&#039; &#124; awk -F&quot; &quot; &#039;{print $1}&#039;`
echo $numvcpu
echo $cpucores
echo $(($numvcpu * $cpucores))

//Magnus]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://magander.se/nutanix-ahv-vm-reporting/#comment-118904">Sergey</a>.</p>
<p>Hi,<br />
no $(($numvcpu * $cpucores)) should be ok. Not getting any error when running the script.<br />
Can you send me script output and also run the following 5 commands (replace vmname with a name of a VM in your environment) and send me the output?</p>
<p>numvcpu=`/usr/local/nutanix/bin/acli vm.get vmname | grep -i num_vcpus |awk -F&#8221;:&#8221; &#8216;{print $2}&#8217;| awk -F&#8221; &#8221; &#8216;{print $1}&#8217;`<br />
cpucores=`/usr/local/nutanix/bin/acli vm.get vmname | grep -i num_cores_per_vcpu |awk -F&#8221;:&#8221; &#8216;{print $2}&#8217; | awk -F&#8221; &#8221; &#8216;{print $1}&#8217;`<br />
echo $numvcpu<br />
echo $cpucores<br />
echo $(($numvcpu * $cpucores))</p>
<p>//Magnus</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sergey		</title>
		<link>https://magander.se/nutanix-ahv-vm-reporting/#comment-118904</link>

		<dc:creator><![CDATA[Sergey]]></dc:creator>
		<pubDate>Tue, 21 Mar 2017 15:35:57 +0000</pubDate>
		<guid isPermaLink="false">http://magander.se/?p=8458#comment-118904</guid>

					<description><![CDATA[$(($numvcpu * $cpucores))  said bash -&#062; syntax error: operand expected (error token is &quot;* &quot;)

should be replaced with $((numvcpu * cpucores)) ?]]></description>
			<content:encoded><![CDATA[<p>$(($numvcpu * $cpucores))  said bash -&gt; syntax error: operand expected (error token is &#8220;* &#8220;)</p>
<p>should be replaced with $((numvcpu * cpucores)) ?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Object Caching 20/59 objects using Disk
Page Caching using Disk: Enhanced 

Served from: magander.se @ 2026-06-29 22:44:41 by W3 Total Cache
-->