<?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 esxi 4.1 - cli - vim-cmd hostsvc/net/portgroup_set  ==&amp;gt; cannot deactive all nics in vSphere Upgrade &amp; Install Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-Upgrade-Install/esxi-4-1-cli-vim-cmd-hostsvc-net-portgroup-set-gt-cannot/m-p/2642293#M30701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this is the wrong forum, please move it to the right one. thnx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use esxi 4.1u1 with no hotfix (customer want so) - all commands run from a script local on esxi during kickstart installation and interpreter is ash/busybox (not python - maybe this is a solution ?):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During installation process I create a function which can override the portgroup nic policy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vSwitch has 4 nics: vmnic0 - 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Portgroup active: vmnic0&lt;/P&gt;&lt;P&gt;Porgroup standby: vmnic1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with the command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;vim-cmd hostsvc/net/portgroup_set --nicorderpolicy-active=vmnic0&amp;nbsp; --nicorderpolicy-standby=vmnic1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can set vmnic2 and 3 to unused. I can check this with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;esxcfg-vswitch -l&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how can I set a vmnic to "not use" without this command. I am so sorry, but I cannot find any command in portgroup_set to disable a nic:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;--nicorderpolicy-active=vmnic_list&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List of active NICs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;--nicorderpolicy-standby=vmnic_list&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Order in which failover should occur.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I leave the parameter --nicorderpolicy-(active/standby) empty, I get a syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jochen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Sep 2012 08:46:11 GMT</pubDate>
    <dc:creator>jojo</dc:creator>
    <dc:date>2012-09-14T08:46:11Z</dc:date>
    <item>
      <title>esxi 4.1 - cli - vim-cmd hostsvc/net/portgroup_set  ==&gt; cannot deactive all nics</title>
      <link>https://communities.vmware.com/t5/vSphere-Upgrade-Install/esxi-4-1-cli-vim-cmd-hostsvc-net-portgroup-set-gt-cannot/m-p/2642293#M30701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this is the wrong forum, please move it to the right one. thnx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use esxi 4.1u1 with no hotfix (customer want so) - all commands run from a script local on esxi during kickstart installation and interpreter is ash/busybox (not python - maybe this is a solution ?):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During installation process I create a function which can override the portgroup nic policy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vSwitch has 4 nics: vmnic0 - 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Portgroup active: vmnic0&lt;/P&gt;&lt;P&gt;Porgroup standby: vmnic1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with the command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;vim-cmd hostsvc/net/portgroup_set --nicorderpolicy-active=vmnic0&amp;nbsp; --nicorderpolicy-standby=vmnic1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can set vmnic2 and 3 to unused. I can check this with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;esxcfg-vswitch -l&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how can I set a vmnic to "not use" without this command. I am so sorry, but I cannot find any command in portgroup_set to disable a nic:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;--nicorderpolicy-active=vmnic_list&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List of active NICs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;--nicorderpolicy-standby=vmnic_list&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Order in which failover should occur.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I leave the parameter --nicorderpolicy-(active/standby) empty, I get a syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jochen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2012 08:46:11 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Upgrade-Install/esxi-4-1-cli-vim-cmd-hostsvc-net-portgroup-set-gt-cannot/m-p/2642293#M30701</guid>
      <dc:creator>jojo</dc:creator>
      <dc:date>2012-09-14T08:46:11Z</dc:date>
    </item>
  </channel>
</rss>

