<?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: Nimble Path Selection Policy with NCM -- Script? in Array Performance and Data Protection</title>
    <link>https://community.hpe.com/t5/array-performance-and-data/nimble-path-selection-policy-with-ncm-script/m-p/6983588#M538</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a sample script that will change Nimble device path policy from other to NIMBLE_PSP_DIRECTED. It'll first check to make sure the policy is available. Then for each Nimble device. If it's not in the NIMBLE_PSP_DIRECTED path policy, it'll set it to. This script can be run on ESX host.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;esxcli storage nmp psp list |grep NIMBLE_PSP_DIRECTED &amp;gt;/dev/null&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;installed=$?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;if [[ $installed -eq 0 ]]; then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; DEVICE_LIST_OUT=$(esxcli storage nmp device list)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; DEVICE_EUI=$(echo "$DEVICE_LIST_OUT" | sed '/^\ /d' | awk '{print tolower($0)}')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; for i in $(echo "$DEVICE_EUI")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; do&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oui=$(echo $i | cut -c21-26)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [[ "$oui" == "6c9ce9" ]]; then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PATH_POLICY=$(echo "$DEVICE_LIST_OUT" |grep -A 6 $i |awk '/Path Selection Policy:/{print $4}')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [[ $PATH_POLICY != "NIMBLE_PSP_DIRECTED" ]]; then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "$(date) Nimble device $i path policy is $PATH_POLICY, setting it to NIMBLE_PSP_DIRECTED."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; esxcli storage nmp device set --device $i --psp NIMBLE_PSP_DIRECTED&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "$(date) Nimble device $i path policy is NIMBLE_PSP_DIRECTED. No change required."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; done&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; echo "NIMBLE_PSP_DIRECTED is not an available policy on this host."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;fi&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Oct 2014 22:27:05 GMT</pubDate>
    <dc:creator>jwang131</dc:creator>
    <dc:date>2014-10-20T22:27:05Z</dc:date>
    <item>
      <title>Nimble Path Selection Policy with NCM -- Script?</title>
      <link>https://community.hpe.com/t5/array-performance-and-data/nimble-path-selection-policy-with-ncm-script/m-p/6983587#M537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have hosts that were recently setup. I installed the latest version of NCM via VMWare Update Manager prior to configuring/scanning for iscsi volumes. I am noticing now that the path policy is set to Round Robin and not Nimble_PSP_Directed. I am not sure if the old nimble psp (for IO change and Round Robin) script was run against these machines or what. I do notice when I create a new volume it sets to nimble_psp_directed as it should.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;That said is there a script that will change the psp to nimble_psp_directed? I only have one for the old round robin psp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 18:51:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-performance-and-data/nimble-path-selection-policy-with-ncm-script/m-p/6983587#M537</guid>
      <dc:creator>crw64</dc:creator>
      <dc:date>2014-10-16T18:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Nimble Path Selection Policy with NCM -- Script?</title>
      <link>https://community.hpe.com/t5/array-performance-and-data/nimble-path-selection-policy-with-ncm-script/m-p/6983588#M538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a sample script that will change Nimble device path policy from other to NIMBLE_PSP_DIRECTED. It'll first check to make sure the policy is available. Then for each Nimble device. If it's not in the NIMBLE_PSP_DIRECTED path policy, it'll set it to. This script can be run on ESX host.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;esxcli storage nmp psp list |grep NIMBLE_PSP_DIRECTED &amp;gt;/dev/null&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;installed=$?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;if [[ $installed -eq 0 ]]; then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; DEVICE_LIST_OUT=$(esxcli storage nmp device list)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; DEVICE_EUI=$(echo "$DEVICE_LIST_OUT" | sed '/^\ /d' | awk '{print tolower($0)}')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; for i in $(echo "$DEVICE_EUI")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; do&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oui=$(echo $i | cut -c21-26)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [[ "$oui" == "6c9ce9" ]]; then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PATH_POLICY=$(echo "$DEVICE_LIST_OUT" |grep -A 6 $i |awk '/Path Selection Policy:/{print $4}')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [[ $PATH_POLICY != "NIMBLE_PSP_DIRECTED" ]]; then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "$(date) Nimble device $i path policy is $PATH_POLICY, setting it to NIMBLE_PSP_DIRECTED."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; esxcli storage nmp device set --device $i --psp NIMBLE_PSP_DIRECTED&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "$(date) Nimble device $i path policy is NIMBLE_PSP_DIRECTED. No change required."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; done&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; echo "NIMBLE_PSP_DIRECTED is not an available policy on this host."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;fi&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 22:27:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-performance-and-data/nimble-path-selection-policy-with-ncm-script/m-p/6983588#M538</guid>
      <dc:creator>jwang131</dc:creator>
      <dc:date>2014-10-20T22:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Nimble Path Selection Policy with NCM -- Script?</title>
      <link>https://community.hpe.com/t5/array-performance-and-data/nimble-path-selection-policy-with-ncm-script/m-p/6983589#M539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 09:36:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-performance-and-data/nimble-path-selection-policy-with-ncm-script/m-p/6983589#M539</guid>
      <dc:creator>crw64</dc:creator>
      <dc:date>2014-10-21T09:36:09Z</dc:date>
    </item>
  </channel>
</rss>

