<?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 Get-NaTime returns NULL in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Get-NaTime-returns-NULL/m-p/44606#M9172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to write a command that retrieves the local date and time of the filer.&amp;nbsp; Code snippet below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;param (&lt;/P&gt;&lt;P&gt;&amp;nbsp; [parameter(Mandatory=$true, HelpMessage="Array name or IP address")]&lt;/P&gt;&lt;P&gt;&amp;nbsp; [string]$PrimaryArray&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# connect to controller&lt;/P&gt;&lt;P&gt;Connect-WFAController -Array $PrimaryArray -VFiler $VFilerName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$PrimaryDateTime =&amp;nbsp; Get-NaTime&lt;/P&gt;&lt;P&gt;$PrimaryDateTimeLocal = $PrimaryDateTime.LocalTimeDT&lt;/P&gt;&lt;P&gt;Get-WFALogger -Info -message $($PrimaryDateTimeLocal)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, Get-NaTime always seems to return null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the Get-WFALogger fails complaining that there is a null message as per extract below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11:08:40.188 INFO&amp;nbsp; [timezone test] Connected to controller&lt;/P&gt;&lt;P&gt;11:08:43.843 ERROR&amp;nbsp; [timezone test] Cannot bind argument to parameter 'message' because it is null.&lt;/P&gt;&lt;P&gt;11:08:44.187 INFO&amp;nbsp; [timezone test] Command completed, took 7030 milliseconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has any ideas what might be going wrong I'd really appreciate it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 06:13:44 GMT</pubDate>
    <dc:creator>markrob</dc:creator>
    <dc:date>2025-06-05T06:13:44Z</dc:date>
    <item>
      <title>Get-NaTime returns NULL</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Get-NaTime-returns-NULL/m-p/44606#M9172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to write a command that retrieves the local date and time of the filer.&amp;nbsp; Code snippet below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;param (&lt;/P&gt;&lt;P&gt;&amp;nbsp; [parameter(Mandatory=$true, HelpMessage="Array name or IP address")]&lt;/P&gt;&lt;P&gt;&amp;nbsp; [string]$PrimaryArray&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# connect to controller&lt;/P&gt;&lt;P&gt;Connect-WFAController -Array $PrimaryArray -VFiler $VFilerName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$PrimaryDateTime =&amp;nbsp; Get-NaTime&lt;/P&gt;&lt;P&gt;$PrimaryDateTimeLocal = $PrimaryDateTime.LocalTimeDT&lt;/P&gt;&lt;P&gt;Get-WFALogger -Info -message $($PrimaryDateTimeLocal)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, Get-NaTime always seems to return null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the Get-WFALogger fails complaining that there is a null message as per extract below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11:08:40.188 INFO&amp;nbsp; [timezone test] Connected to controller&lt;/P&gt;&lt;P&gt;11:08:43.843 ERROR&amp;nbsp; [timezone test] Cannot bind argument to parameter 'message' because it is null.&lt;/P&gt;&lt;P&gt;11:08:44.187 INFO&amp;nbsp; [timezone test] Command completed, took 7030 milliseconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has any ideas what might be going wrong I'd really appreciate it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:13:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Get-NaTime-returns-NULL/m-p/44606#M9172</guid>
      <dc:creator>markrob</dc:creator>
      <dc:date>2025-06-05T06:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NaTime returns NULL</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Get-NaTime-returns-NULL/m-p/44610#M9174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've tested your command with a 7.3.5 array and its working fine.&lt;/P&gt;&lt;P&gt;Can you please add the following right after the "Connect-WfaController" so I can test if this is related to ONTAP version:&lt;/P&gt;&lt;PRE&gt;Get-WfaLogger -Info -message $(Get-NaSystemVersion)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;M.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, regardless of this problem, the "Connect-WfaController" in your command i referring to $VFilerName which isn't defined as a parameter and is never initialized. It is safe to remove this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Dec 2012 20:51:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Get-NaTime-returns-NULL/m-p/44610#M9174</guid>
      <dc:creator>yakobi</dc:creator>
      <dc:date>2012-12-15T20:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NaTime returns NULL</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Get-NaTime-returns-NULL/m-p/44615#M9175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for responding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried it with controllers running 7.3.4 and 8.1.1 but get the same response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The commands run fine on those controllers when ran as part of a script or interactively i.e. it only seems to be an issue when running the commands from WFA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll export the command and email you the DAR file in a few moments...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Dec 2012 01:40:00 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Get-NaTime-returns-NULL/m-p/44615#M9175</guid>
      <dc:creator>markrob</dc:creator>
      <dc:date>2012-12-16T01:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NaTime returns NULL</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Get-NaTime-returns-NULL/m-p/44620#M9176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I upgraded from WFA 2.0RC1 to the version on the download site&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran the command again and it also failed.&amp;nbsp; But this time it told me why:-)&amp;nbsp; The user I am running the WFA service as doesnt have access to call the clock-get APIs.&amp;nbsp; I nodified my roles on the filer and it now works...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Dec 2012 02:13:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Get-NaTime-returns-NULL/m-p/44620#M9176</guid>
      <dc:creator>markrob</dc:creator>
      <dc:date>2012-12-16T02:13:27Z</dc:date>
    </item>
  </channel>
</rss>

