<?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 PowerShell Tool Kit case sensitivity issue in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/PowerShell-Tool-Kit-case-sensitivity-issue/m-p/120438#M25813</link>
    <description>&lt;P&gt;I'm using the latest version of the PSTK and I'm writing some scripts to check the status of SnapVault relationships and ran into an interesting issue with case sensitivity. When I run the cmdlet, Get-NaSnapvault, it returns the secondary path in all lowercase. It just so happens that there are capital letters in the volume name which contains the qtree, so if I try to parse the text or even run the Get-NaQtree cmdlet using the SecondaryPath property of the objects returned by Get-NaSnapvault, I get nothing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PS H:\&amp;gt; Get-NaSnapvault | Format-Table -AutoSize

PrimarySystem PrimaryPath             SecondaryPath                                                   MaxRate MaxTries
------------- -----------             -------------                                                   ------- --------
ahnfas8978    /vol/test_snapvault_wfa /vol/test_snapvault_wfa_mirror_2016_06_v1/qtree_02062016_153641    4 TB        2
ahnfas8978    /vol/test_snapvault_wfa /vol/test_snapvault_wfa_mirror/qtree_02062016_153641               4 TB        2



PS H:\&amp;gt; Get-NaQtree /vol/test_snapvault_wfa_mirror_2016_06_v1/qtree_02062016_153641 | Format-Table -AutoSize

PS H:\&amp;gt; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I correct the volume name, it works fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PS H:\&amp;gt; Get-NaQtree /vol/test_snapvault_wfa_mirror_2016_06_V1/qtree_02062016_153641 | Format-Table -AutoSize

Volume                               Qtree                 Status Security OpLocks
------                               -----                 ------ -------- -------
test_snapvault_wfa_mirror_2016_06_V1 qtree_02062016_153641 normal unix     enabled



PS H:\&amp;gt; &lt;/PRE&gt;&lt;P&gt;I can correct this by using PowerShell to do a case insensitive match, but that's a little messy and shouldn't be necessary. If ONTAP is case sensitive anywhere, it should be case sensitive everywhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 20:19:06 GMT</pubDate>
    <dc:creator>jgebhart2</dc:creator>
    <dc:date>2025-06-04T20:19:06Z</dc:date>
    <item>
      <title>PowerShell Tool Kit case sensitivity issue</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/PowerShell-Tool-Kit-case-sensitivity-issue/m-p/120438#M25813</link>
      <description>&lt;P&gt;I'm using the latest version of the PSTK and I'm writing some scripts to check the status of SnapVault relationships and ran into an interesting issue with case sensitivity. When I run the cmdlet, Get-NaSnapvault, it returns the secondary path in all lowercase. It just so happens that there are capital letters in the volume name which contains the qtree, so if I try to parse the text or even run the Get-NaQtree cmdlet using the SecondaryPath property of the objects returned by Get-NaSnapvault, I get nothing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PS H:\&amp;gt; Get-NaSnapvault | Format-Table -AutoSize

PrimarySystem PrimaryPath             SecondaryPath                                                   MaxRate MaxTries
------------- -----------             -------------                                                   ------- --------
ahnfas8978    /vol/test_snapvault_wfa /vol/test_snapvault_wfa_mirror_2016_06_v1/qtree_02062016_153641    4 TB        2
ahnfas8978    /vol/test_snapvault_wfa /vol/test_snapvault_wfa_mirror/qtree_02062016_153641               4 TB        2



PS H:\&amp;gt; Get-NaQtree /vol/test_snapvault_wfa_mirror_2016_06_v1/qtree_02062016_153641 | Format-Table -AutoSize

PS H:\&amp;gt; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I correct the volume name, it works fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PS H:\&amp;gt; Get-NaQtree /vol/test_snapvault_wfa_mirror_2016_06_V1/qtree_02062016_153641 | Format-Table -AutoSize

Volume                               Qtree                 Status Security OpLocks
------                               -----                 ------ -------- -------
test_snapvault_wfa_mirror_2016_06_V1 qtree_02062016_153641 normal unix     enabled



PS H:\&amp;gt; &lt;/PRE&gt;&lt;P&gt;I can correct this by using PowerShell to do a case insensitive match, but that's a little messy and shouldn't be necessary. If ONTAP is case sensitive anywhere, it should be case sensitive everywhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 20:19:06 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/PowerShell-Tool-Kit-case-sensitivity-issue/m-p/120438#M25813</guid>
      <dc:creator>jgebhart2</dc:creator>
      <dc:date>2025-06-04T20:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: PowerShell Tool Kit case sensitivity issue</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/PowerShell-Tool-Kit-case-sensitivity-issue/m-p/120439#M25814</link>
      <description>&lt;P&gt;Use get-nasnapvaultsecstatus - see if that's different.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm on v3.3 build 65&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 13:27:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/PowerShell-Tool-Kit-case-sensitivity-issue/m-p/120439#M25814</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2016-06-21T13:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: PowerShell Tool Kit case sensitivity issue</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/PowerShell-Tool-Kit-case-sensitivity-issue/m-p/120440#M25815</link>
      <description>&lt;P&gt;It also returns in all lowercase:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PS H:\&amp;gt; Get-NaSnapvaultSecStatus | ft -AutoSize

Primary                                Secondary                                                                  State       Status   LagTimeTS
-------                                ---------                                                                  -----       ------   ---------
ahnfas8978:/vol/test_snapvault_wfa     ahnfas8978:/vol/test_snapvault_wfa_mirror/qtree_02062016_153641            snapvaulted idle      08:29:33
ahnfas8978:/vol/vol01_fl3677_cifs01_DR ahnfas8966:/vol/vault_current/vault_vol01_fl3677_cifs01                    source      idle   54.08:59:36
ahnfas8978:/vol/test_snapvault_wfa     ahnfas8978:/vol/test_snapvault_wfa_mirror_2016_06_v1/qtree_02062016_153641 source      idle   10.22:10:05&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Jun 2016 13:30:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/PowerShell-Tool-Kit-case-sensitivity-issue/m-p/120440#M25815</guid>
      <dc:creator>jgebhart2</dc:creator>
      <dc:date>2016-06-21T13:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: PowerShell Tool Kit case sensitivity issue</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/PowerShell-Tool-Kit-case-sensitivity-issue/m-p/121371#M26047</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really think this is not a powershell issue. Windows usually doesn't care about case but Ontap does. Since powershell make use of ONTAPI (Ontap API) it does really care about it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To help you with this I have a little trick. First get snapvault result to a variable then extract volume name in lowercase. After that you can do somethink like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$RightCasedVolumeName = (Get-NaVol|Where-Object{$_.Name -imatch $lowerCaseVolumeName}).Name&lt;/PRE&gt;&lt;P&gt;It's a little bit uggly (actually it's horrible) but works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use ZEDI Explorer to check API output just to be sure if this is an API issue.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 01:34:39 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/PowerShell-Tool-Kit-case-sensitivity-issue/m-p/121371#M26047</guid>
      <dc:creator>FelipeMafra</dc:creator>
      <dc:date>2016-07-18T01:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: PowerShell Tool Kit case sensitivity issue</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/PowerShell-Tool-Kit-case-sensitivity-issue/m-p/121394#M26050</link>
      <description>&lt;P&gt;Yes, that's basically what I'm doing with my code. It would be much better if the toolkit returned everything in the proper case to begin with.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 12:07:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/PowerShell-Tool-Kit-case-sensitivity-issue/m-p/121394#M26050</guid>
      <dc:creator>jgebhart2</dc:creator>
      <dc:date>2016-07-18T12:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: PowerShell Tool Kit case sensitivity issue</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/PowerShell-Tool-Kit-case-sensitivity-issue/m-p/121481#M26055</link>
      <description>&lt;P&gt;Hello&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/50689"&gt;@jgebhart2﻿&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really think this is not related to Powershell Toolkit. I've tried in my environment and i get response in correct case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be sure, you can download &lt;STRONG&gt;netapp-manageability-sdk&lt;/STRONG&gt; (not the .net bindings one) and go to the folder&lt;STRONG&gt; zedi&lt;/STRONG&gt;. Inside there is the an executable called &lt;STRONG&gt;zexplore.exe&lt;/STRONG&gt;. From there you can query your filer. This cmdlet uses the "snapvault-secondary-configuration-list-info" API call.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i had any filer in the same version you have and using snapvault in it I could try it.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 18:52:12 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/PowerShell-Tool-Kit-case-sensitivity-issue/m-p/121481#M26055</guid>
      <dc:creator>FelipeMafra</dc:creator>
      <dc:date>2016-07-19T18:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: PowerShell Tool Kit case sensitivity issue</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/PowerShell-Tool-Kit-case-sensitivity-issue/m-p/121483#M26056</link>
      <description>&lt;P&gt;You're correct, the issue is not specifically with the PowerShell Toolkit - I get the same case mismatch using the CLI:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ahnfas8978&amp;gt; snapvault status
Snapvault is ON.
Source                                  Destination                                                                 State          Lag        Status
ahnfas8978:/vol/test_snapvault_wfa      ahnfas8978:/vol/test_snapvault_wfa_mirror/qtree_02062016_153641             Snapvaulted    685:57:25  Quiescing
ahnfas8978:/vol/vol01_fl3677_cifs01_DR  ahnfas8966:/vol/vault_current/vault_vol01_fl3677_cifs01                     Source         1982:27:28  Idle
ahnfas8978:/vol/test_snapvault_wfa      ahnfas8978:/vol/test_snapvault_wfa_mirror_2016_06_v1/qtree_02062016_153641  Source         939:37:57  Idle
ahnfas8978&amp;gt;&lt;/PRE&gt;&lt;P&gt;Either way, it's sloppy. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.netapp.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 19:01:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/PowerShell-Tool-Kit-case-sensitivity-issue/m-p/121483#M26056</guid>
      <dc:creator>jgebhart2</dc:creator>
      <dc:date>2016-07-19T19:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: PowerShell Tool Kit case sensitivity issue</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/PowerShell-Tool-Kit-case-sensitivity-issue/m-p/121510#M26063</link>
      <description>The only thing I can think of is to upgrade your Ontap version.</description>
      <pubDate>Wed, 20 Jul 2016 13:12:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/PowerShell-Tool-Kit-case-sensitivity-issue/m-p/121510#M26063</guid>
      <dc:creator>FelipeMafra</dc:creator>
      <dc:date>2016-07-20T13:12:59Z</dc:date>
    </item>
  </channel>
</rss>

