<?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: Get Filer dns info in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-Filer-dns-info/m-p/61600#M3075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah..rdfile.. no way.. I needed to do the following.. Check this out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;#&lt;BR /&gt; .SYNOPSIS&lt;BR /&gt;&amp;nbsp; Queries physical filers for dns info&lt;BR /&gt; .DESCRIPTION&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; .EXAMPLE&lt;BR /&gt;&amp;nbsp; .\dns_check.ps1&lt;BR /&gt; .DATE &lt;BR /&gt;&amp;nbsp; 05-20-2014&lt;BR /&gt; .Version &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v1&lt;BR /&gt; .Notes&lt;BR /&gt;&amp;nbsp; .Author &lt;BR /&gt;&amp;nbsp;&amp;nbsp; Josh Goldfarb &lt;BR /&gt; .Change Log&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v1.0 - Initial&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;#&amp;gt; &lt;BR /&gt; &lt;BR /&gt; cls&lt;BR /&gt; &lt;BR /&gt;## Define Global PWD&lt;BR /&gt;$password = read-host "Enter Root password" -assecurestring&lt;BR /&gt;#$password = ConvertTo-SecureString "*" -AsPlainText -Force&lt;BR /&gt;$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList "root",$password &lt;/P&gt;&lt;P&gt;#Import filers&lt;BR /&gt;$dfmimport = import-csv &lt;A href="https://community.netapp.com/" target="_blank"&gt;\\filershare\dfmcontrollers.csv&lt;/A&gt; | Select controller&lt;/P&gt;&lt;P&gt;#Clear Screen&lt;BR /&gt;cls&lt;BR /&gt;$global = @()&lt;/P&gt;&lt;P&gt; $dfmimport |&amp;nbsp; % {&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;$filer = $_.controller.tolower()&lt;BR /&gt;Write-host "`n`tConnectiong to controller " $filer&lt;BR /&gt;$c = connect-nacontroller $filer -cred $cred -https -ea "silentlycontinue"&lt;BR /&gt;if ($c -ne $Null) {&lt;BR /&gt;## Gather DNS info&lt;BR /&gt;$i = invoke-nassh "dns info"&lt;BR /&gt; $new = $i.split("`n")&lt;BR /&gt; $ip = $new | ? {$_ -like "*10.*"}&lt;BR /&gt; $ip&amp;nbsp; = $ip -replace '\s+', ' '&lt;BR /&gt; &lt;BR /&gt; $ip | % {&lt;BR /&gt; $s = $_.split(" ")&lt;/P&gt;&lt;P&gt;if ($s[1] -like "*no*") {&lt;BR /&gt;$info = "no info" &lt;BR /&gt;} else {&lt;BR /&gt;$info = $s[1]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt; $customobject = new-object psobject&lt;BR /&gt;&amp;nbsp; add-member -inputobject $customobject -membertype noteproperty -name Filer -value $filer&lt;BR /&gt;&amp;nbsp; add-member -inputobject $customobject -membertype noteproperty -name "Connection issue" -value ""&lt;BR /&gt;&amp;nbsp; add-member -inputobject $customobject -membertype noteproperty -name "IP Address" -value $s[0]&lt;BR /&gt;&amp;nbsp; add-member -inputobject $customobject -membertype noteproperty -name "Status" -value $info.tolower()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $global += $customobject&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;} else {&lt;BR /&gt; $customobject = new-object psobject&lt;BR /&gt;&amp;nbsp; add-member -inputobject $customobject -membertype noteproperty -name Filer -value $filer&lt;BR /&gt;&amp;nbsp; add-member -inputobject $customobject -membertype noteproperty -name "Connection issue" -value yes&lt;BR /&gt;&amp;nbsp; add-member -inputobject $customobject -membertype noteproperty -name "IP Address" -value ""&lt;BR /&gt;&amp;nbsp; add-member -inputobject $customobject -membertype noteproperty -name "Status" -value ""&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $global += $customobject&lt;BR /&gt;}&lt;BR /&gt;clear-variable -name ip&lt;BR /&gt;} &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;$global | ft -autosize&lt;BR /&gt;$global | export-csv c:\temp\dnsinfo.csv -notypeinformation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 May 2014 15:29:17 GMT</pubDate>
    <dc:creator>JGPSHNTAP</dc:creator>
    <dc:date>2014-05-28T15:29:17Z</dc:date>
    <item>
      <title>Get Filer dns info</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-Filer-dns-info/m-p/61591#M3073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unless i'm totally missing it or brainfreeze, is there not an API for DNS info for the powershell toolkit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:35:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-Filer-dns-info/m-p/61591#M3073</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2025-06-05T05:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Get Filer dns info</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-Filer-dns-info/m-p/61595#M3074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see any.&amp;nbsp; As an alternative, you could read the resolv.conf file with Read-NaFile.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 14:13:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-Filer-dns-info/m-p/61595#M3074</guid>
      <dc:creator>resqme914</dc:creator>
      <dc:date>2014-05-28T14:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get Filer dns info</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-Filer-dns-info/m-p/61600#M3075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah..rdfile.. no way.. I needed to do the following.. Check this out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;#&lt;BR /&gt; .SYNOPSIS&lt;BR /&gt;&amp;nbsp; Queries physical filers for dns info&lt;BR /&gt; .DESCRIPTION&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; .EXAMPLE&lt;BR /&gt;&amp;nbsp; .\dns_check.ps1&lt;BR /&gt; .DATE &lt;BR /&gt;&amp;nbsp; 05-20-2014&lt;BR /&gt; .Version &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v1&lt;BR /&gt; .Notes&lt;BR /&gt;&amp;nbsp; .Author &lt;BR /&gt;&amp;nbsp;&amp;nbsp; Josh Goldfarb &lt;BR /&gt; .Change Log&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v1.0 - Initial&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;#&amp;gt; &lt;BR /&gt; &lt;BR /&gt; cls&lt;BR /&gt; &lt;BR /&gt;## Define Global PWD&lt;BR /&gt;$password = read-host "Enter Root password" -assecurestring&lt;BR /&gt;#$password = ConvertTo-SecureString "*" -AsPlainText -Force&lt;BR /&gt;$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList "root",$password &lt;/P&gt;&lt;P&gt;#Import filers&lt;BR /&gt;$dfmimport = import-csv &lt;A href="https://community.netapp.com/" target="_blank"&gt;\\filershare\dfmcontrollers.csv&lt;/A&gt; | Select controller&lt;/P&gt;&lt;P&gt;#Clear Screen&lt;BR /&gt;cls&lt;BR /&gt;$global = @()&lt;/P&gt;&lt;P&gt; $dfmimport |&amp;nbsp; % {&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;$filer = $_.controller.tolower()&lt;BR /&gt;Write-host "`n`tConnectiong to controller " $filer&lt;BR /&gt;$c = connect-nacontroller $filer -cred $cred -https -ea "silentlycontinue"&lt;BR /&gt;if ($c -ne $Null) {&lt;BR /&gt;## Gather DNS info&lt;BR /&gt;$i = invoke-nassh "dns info"&lt;BR /&gt; $new = $i.split("`n")&lt;BR /&gt; $ip = $new | ? {$_ -like "*10.*"}&lt;BR /&gt; $ip&amp;nbsp; = $ip -replace '\s+', ' '&lt;BR /&gt; &lt;BR /&gt; $ip | % {&lt;BR /&gt; $s = $_.split(" ")&lt;/P&gt;&lt;P&gt;if ($s[1] -like "*no*") {&lt;BR /&gt;$info = "no info" &lt;BR /&gt;} else {&lt;BR /&gt;$info = $s[1]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt; $customobject = new-object psobject&lt;BR /&gt;&amp;nbsp; add-member -inputobject $customobject -membertype noteproperty -name Filer -value $filer&lt;BR /&gt;&amp;nbsp; add-member -inputobject $customobject -membertype noteproperty -name "Connection issue" -value ""&lt;BR /&gt;&amp;nbsp; add-member -inputobject $customobject -membertype noteproperty -name "IP Address" -value $s[0]&lt;BR /&gt;&amp;nbsp; add-member -inputobject $customobject -membertype noteproperty -name "Status" -value $info.tolower()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $global += $customobject&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;} else {&lt;BR /&gt; $customobject = new-object psobject&lt;BR /&gt;&amp;nbsp; add-member -inputobject $customobject -membertype noteproperty -name Filer -value $filer&lt;BR /&gt;&amp;nbsp; add-member -inputobject $customobject -membertype noteproperty -name "Connection issue" -value yes&lt;BR /&gt;&amp;nbsp; add-member -inputobject $customobject -membertype noteproperty -name "IP Address" -value ""&lt;BR /&gt;&amp;nbsp; add-member -inputobject $customobject -membertype noteproperty -name "Status" -value ""&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $global += $customobject&lt;BR /&gt;}&lt;BR /&gt;clear-variable -name ip&lt;BR /&gt;} &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;$global | ft -autosize&lt;BR /&gt;$global | export-csv c:\temp\dnsinfo.csv -notypeinformation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 15:29:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-Filer-dns-info/m-p/61600#M3075</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2014-05-28T15:29:17Z</dc:date>
    </item>
  </channel>
</rss>

