<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Script no returning empty in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-no-returning-empty/m-p/1759947#M55808</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much. That was it. It now returns the correct response.&lt;/P&gt;&lt;P&gt;Thanks again...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Mar 2017 18:46:25 GMT</pubDate>
    <dc:creator>habs3</dc:creator>
    <dc:date>2017-03-02T18:46:25Z</dc:date>
    <item>
      <title>Script no returning empty</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-no-returning-empty/m-p/1759945#M55806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;the following is not returning correctly. I was wondering if there was actual data but not being shown? It always comes back as "&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Nic Teaming Configured Properly" weather i have a nic in standby mode or not.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$esxhst = "Hostname"&lt;/P&gt;&lt;P&gt;$NicTeaming = Get-VirtualSwitch -VMHost $esxhst | Get-NicTeamingPolicy&lt;/P&gt;&lt;P&gt;if ( $NicTeaming.standbyNic -and $NicTeaming.UnusedNic -Eq $Null )&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;$NicTeamPolicy = "Nic Teaming Configured Properly"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else &lt;/P&gt;&lt;P&gt;{ $NicTeamPolicy = "Nic Teaming NOT Configured properly" }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 18:28:49 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-no-returning-empty/m-p/1759945#M55806</guid>
      <dc:creator>habs3</dc:creator>
      <dc:date>2017-03-02T18:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Script no returning empty</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-no-returning-empty/m-p/1759946#M55807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if the expression is what you actually want.&lt;BR /&gt;Don't you want to check if there no standby &lt;SPAN style="text-decoration: underline;"&gt;nor&lt;/SPAN&gt; unused NICs?&lt;/P&gt;&lt;P&gt;Then that line should probably be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="text-align: Left; font-family: Segoe UI; font-style: normal; font-weight: normal; font-size: 12; color: #000000;"&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 16;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #00008b;"&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;&lt;SPAN&gt;$NicTeaming&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;standbyNic &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;-eq&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;&lt;SPAN&gt;$null&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;-and&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;&lt;SPAN&gt;$NicTeaming&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;UnusedNic &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;-Eq&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;&lt;SPAN&gt;$Null&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 18:39:39 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-no-returning-empty/m-p/1759946#M55807</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2017-03-02T18:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Script no returning empty</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-no-returning-empty/m-p/1759947#M55808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much. That was it. It now returns the correct response.&lt;/P&gt;&lt;P&gt;Thanks again...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 18:46:25 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-no-returning-empty/m-p/1759947#M55808</guid>
      <dc:creator>habs3</dc:creator>
      <dc:date>2017-03-02T18:46:25Z</dc:date>
    </item>
  </channel>
</rss>

