<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NetApp Archives - VirtJunkie</title>
	<atom:link href="/category/netapp/feed/" rel="self" type="application/rss+xml" />
	<link>/category/netapp/</link>
	<description>Virtualization, Automation, and anything else that might be on my mind</description>
	<lastBuildDate>Tue, 29 Apr 2014 17:48:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.2</generator>

<image>
	<url>/wp-content/uploads/2020/04/cropped-vj4-150x150.png</url>
	<title>NetApp Archives - VirtJunkie</title>
	<link>/category/netapp/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Powershell &#8211; Provision NetApp Volume as NFS Datastore to vCenter</title>
		<link>/2014/04/29/powershell-provision-netapp-volume-as-nfs-datastore-to-vcenter/</link>
					<comments>/2014/04/29/powershell-provision-netapp-volume-as-nfs-datastore-to-vcenter/#respond</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Tue, 29 Apr 2014 17:48:11 +0000</pubDate>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[NetApp]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[VMware]]></category>
		<guid isPermaLink="false">http://45.63.13.214/?p=584</guid>

					<description><![CDATA[<p>For anyone that&#8217;s ever been through the process of provisioning a new datastore to multiple ESX hosts, you know it can take some time. Below are the steps I use Create Volume on NetApp Set Security Style to Unix Enable Storage Efficiency Set NFS Export permissions to allow Read/Write + Root Permissions to all applicable [&#8230;]</p>
<p>The post <a href="/2014/04/29/powershell-provision-netapp-volume-as-nfs-datastore-to-vcenter/">Powershell &#8211; Provision NetApp Volume as NFS Datastore to vCenter</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="alignright wp-image-585 " src="https://new.virtjunkie.com/wp-content/uploads/2014/04/powercli-icon.jpg" alt="powercli-icon" width="224" height="224" />For anyone that&#8217;s ever been through the process of provisioning a new datastore to multiple ESX hosts, you know it can take some time. Below are the steps I use</p>
<ol>
<li>Create Volume on NetApp</li>
<li>Set Security Style to Unix</li>
<li>Enable Storage Efficiency</li>
<li>Set NFS Export permissions to allow Read/Write + Root Permissions to all applicable hosts</li>
<li>Mount datastores on ESXi hosts</li>
</ol>
<p>For a handful of hosts this is fine, but adding it to anything more than 4-5 hosts is reaaally painful in my experience. Below is a script you can use to take care of these steps in one swipe.</p>
<p><span id="more-584"></span></p>
<p>Prerequisites:</p>
<p><a title="Install NetApp DataOnTap Powershell" href="http://45.63.13.214/?p=304">NetApp DataOnTap Toolkit</a></p>
<p><a href="https://my.vmware.com/web/vmware/details?downloadGroup=VSP510-PCLI-510&amp;productId=285" target="_blank" rel="noopener noreferrer">VMware PowerCLI</a></p>
<p>The script requires an array of the NFS clients (read ESXi hosts) you want to connect the datastore to.</p>
<p><strong>Example 1 &#8211; assign the array to a variable, and manually add it to a parameter</strong></p><pre class="urvanov-syntax-highlighter-plain-tag">$ESXHosts = @(&quot;10.1.1.100&quot;,&quot;10.1.1.101&quot;,&quot;10.1.1.102&quot;)
Add-VolumeAndAddToESXi.ps1 -VolName Volume100 -VolSize 1.5T -filerIP 10.1.1.10 -aggrName aggr0 -ExportedHosts $ESXHosts -vCenter vcenter-site1</pre><p><strong>Example 2 &#8211; Create an array, and pipe it to the script</strong></p><pre class="urvanov-syntax-highlighter-plain-tag">@(&quot;10.1.1.100&quot;,&quot;10.1.1.101&quot;) | Add-VolumeAndAddToESXi.ps1 -VolName Volume101 -VolSize 200G -filerIP 10.1.1.10 -aggrName aggr1 -vCenter vcenter-site1</pre><p></p>
<p>Enjoy! Let me know if you have any challenges or questions</p>
<p><a href="https://new.virtjunkie.com/wp-content/uploads/2014/04/Add-VolumeAndAddToESXi.ps1_.zip">Add-VolumeAndAddToESXi.ps1</a></p>
<p>&nbsp;</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;#	
	.NOTES
	===========================================================================
	 Created with: 	SAPIEN Technologies, Inc., PowerShell Studio 2014 v4.1.49
	 Created on:   	4/17/2014 10:39 PM
	 Created by:   	Jon Howe (www.cit3.net)
	 Filename:     	Add-VolumeAndAddToESXi.ps1
	===========================================================================
	.DESCRIPTION
		Create Volume and add to all hosts in a vCenter server
	.PARAMETER VolName
		The  Name of the Volume you want to create
	.PARAMETER VolSize
		The size of the newly created volume. Example: 10G, 1T, 100M
	.PARAMETER filerIP
		The IP Address of the filer
	.PARAMETER aggrName
		The aggregate that will contain the volume
	.PARAMETER ExportedHosts
		An array that contains IP Addresses of the ESXi hosts you want to provide NFS Export permissiosn to
	.PARAMETER vCenter
		The DNS or IP Address of the vCenter Server you want to provision the datastore to
	.LINK
		http://45.63.13.214/?p=584
	.EXAMPLE
		$ESXHosts = @(&quot;10.1.1.100&quot;,&quot;10.1.1.101&quot;,&quot;10.1.1.102&quot;)
		Add-VolumeAndAddToESXi.ps1 -VolName Volume100 -VolSize 1.5T -filerIP 10.1.1.10 -aggrName aggr0 -ExportedHosts $ESXHosts -vCenter vcenter-site1
	.EXAMPLE
		@(&quot;10.1.1.100&quot;,&quot;10.1.1.101&quot;) | Add-VolumeAndAddToESXi.ps1 -VolName Volume101 -VolSize 200G -filerIP 10.1.1.10 -aggrName aggr1 -vCenter vcenter-site1
#&gt;

Param (
	[Parameter(Mandatory=$true)] [string]$VolName,
	[Parameter(Mandatory=$true)] [string]$VolSize,
	[Parameter(Mandatory=$true)] [string]$filerIP,
	[Parameter(Mandatory = $true)] [string]$aggrName,
	[Parameter(Mandatory=$true)] [string]$vCenter,
	[Parameter(Mandatory=$true, ValueFromPipeline=$true)] $ExportedHosts
)

#region Don't edit below here
###
##
#

$path = &quot;/vol/&quot; + $VolName

#Load Prerequisites
Add-PSSnapin VMware.VimAutomation.Core -ErrorAction 'SilentlyContinue'
if (!(Get-Module DataOnTAP)) { Import-Module DataOnTAP }

# Connect to the filer
Write-Host &quot;Enter credentials for the netapp filer&quot;
$controller = Connect-NaController $filerIP -Credential (Get-Credential)

#Create the volume and set security style
New-NaVol -Aggregate $aggrName -Name $VolName -Size $VolSize -Controller $controller
Set-NaQtree -SecurityStyle UNIX -Path $path -Controller $controller

#Enable Storage Efficiency
enable-NaSis -Controller $controller -Volume (Get-NaVol -Name $VolName)

#Set NFS Export Permissions
Set-NaNfsExport -Path $path -ReadWrite $hosts -Root $hosts -Persistent

#Connect to vCenter Server
Write-Host &quot;Enter credentials for the vCenter server&quot;
Connect-VIServer -Credential (Get-Credential) -Server $vCenter

Get-Cluster -Name Production | Get-VMHost | New-Datastore -Nfs -Name $VolName -Path $path -NfsHost $NfsIP

#
##
###
#endregion Don't edit below here</pre><p></p>
<p>&#8211; Jon</p>
<p>The post <a href="/2014/04/29/powershell-provision-netapp-volume-as-nfs-datastore-to-vcenter/">Powershell &#8211; Provision NetApp Volume as NFS Datastore to vCenter</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2014/04/29/powershell-provision-netapp-volume-as-nfs-datastore-to-vcenter/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>NetApp: Get Statistics from Multiple Filers With One Command</title>
		<link>/2013/07/11/netapp-get-statistics-from-multiple-filers-with-one-command/</link>
					<comments>/2013/07/11/netapp-get-statistics-from-multiple-filers-with-one-command/#respond</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Fri, 12 Jul 2013 02:05:56 +0000</pubDate>
				<category><![CDATA[NetApp]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Servers]]></category>
		<guid isPermaLink="false">http://45.63.13.214/?p=510</guid>

					<description><![CDATA[<p>Does anyone actually find NetApp OnCommand System Commander to be fast enough for normal operation? I&#8217;ll admit, I still create a good amount of Volumes and LUNs using it, but it leaves a lot to be desired in the performance category. &#160;If you follow my blog at all, you know that I&#8217;m in the middle [&#8230;]</p>
<p>The post <a href="/2013/07/11/netapp-get-statistics-from-multiple-filers-with-one-command/">NetApp: Get Statistics from Multiple Filers With One Command</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Does anyone actually find NetApp OnCommand System Commander to be fast enough for normal operation? I&#8217;ll admit, I still create a good amount of Volumes and LUNs using it, but it leaves a lot to be desired in the performance category. &nbsp;If you follow my blog at all, you know that I&#8217;m in the middle of a migration from a non-ha exchange environment to a DAG. Being the sensible admin that I am, I have multiple copies of my Exchange databases on different storage arrays, controlled by different NetApp filers. Using System Manager to monitor the space usage of the Volumes hosting my mailbox databases is way to slow for my comfort.</p>
<p><span id="more-510"></span></p>
<p>While I could use PowerShell to get the status of volumes from only each individual filer replacing &nbsp;using the following snippet:</p><pre class="urvanov-syntax-highlighter-plain-tag">if (!(Get-Module dataontap)) { Import-Module DataOnTAP }
$filer1 = Connect-NaController filer1 -Credential (Get-Credential)
$filer2 = Connect-NaController filer2 -Credential (Get-Credential)
Get-NaVol -controller $filer1
Get-NaVol -controller $filer2</pre><p>But that&#8217;s two commands&#8230; why would you want to enter two commands when you can enter one?! &nbsp;Assuming you set up the controller objects in lines 2 and 3 above, you can simply run the command below to get all volumes from both Filer1 and Filer2:</p><pre class="urvanov-syntax-highlighter-plain-tag">($filer1,$filer2) | % { Get-NaVol -Controller $_ }</pre><p>While this gets volumes from all controllers, why on EARTH would you want to see the size in bytes?? Seriously&#8230;</p>
<p>Below is a finished script that gathers volume information from multiple filers, but also formats the output in a human readable format. If you have uniform naming convention for volumes in your filers, you can un-comment (remove the &lt;# and #&gt; ) and enter the prefix of your volume on line 15.</p><pre class="urvanov-syntax-highlighter-plain-tag"># ========================================================================
# Created on:	7/11/2013 9:10 PM
# Created by:	Jon Howe
# URL: http://45.63.13.214/?p=510
# Filename:		Get-MultipleFilerVolStats.ps1
# ========================================================================

if (!(Get-Module dataontap)) { Import-Module DataOnTAP }

$filer1 = Connect-NaController filer1 -Credential (Get-Credential)
$filer2 = Connect-NaController filer2 -Credential (Get-Credential)
#$filer3 = Connect-NaController filer3 -Credential (Get-Credential)

($filer1,$filer2) | 
Foreach-object { Get-NaVol &lt;#-name volPrefix #&gt; -Controller $_ } | 
Select-Object Name,Used,Available | 
Format-Table -AutoSize -Property <code>
@{label="Volume";Expression={$_.Name}}, 
@{label="Percent Used";expression={$_.Used}}, `
@{label="Available";expression={[math]::round($_.Available / 1gb, 2)}
}</pre><p></p>
<p>The post <a href="/2013/07/11/netapp-get-statistics-from-multiple-filers-with-one-command/">NetApp: Get Statistics from Multiple Filers With One Command</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2013/07/11/netapp-get-statistics-from-multiple-filers-with-one-command/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>NetApp &#8211; Unable To Delete Snapshots (Dependency: busy, backup[n], dump)</title>
		<link>/2013/03/19/netapp-unable-to-delete-snapshots-dependency-busy-backupn-dump/</link>
					<comments>/2013/03/19/netapp-unable-to-delete-snapshots-dependency-busy-backupn-dump/#respond</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Tue, 19 Mar 2013 23:00:05 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[NetApp]]></category>
		<guid isPermaLink="false">http://45.63.13.214/?p=388</guid>

					<description><![CDATA[<p>I came across this error when a NDMP backup of a large volume failed. To isolate the exact error and resolve the issue, I ran the following commands: [text] snap list [volume name] backup status [/text] Line one below shows all of the snapshots for the particular volume. In my case, the ntap&#62; backup status [&#8230;]</p>
<p>The post <a href="/2013/03/19/netapp-unable-to-delete-snapshots-dependency-busy-backupn-dump/">NetApp &#8211; Unable To Delete Snapshots (Dependency: busy, backup[n], dump)</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I came across this error when a NDMP backup of a large volume failed.</p>
<p>To isolate the exact error and resolve the issue, I ran the following commands:</p>
<p><span id="more-388"></span></p>
<p>[text]<br />
snap list [volume name]<br />
backup status<br />
[/text]</p>
<p>Line one below shows all of the snapshots for the particular volume. In my case, the</p>
<p>ntap&gt; backup status</p>
<p><a href="https://new.virtjunkie.com/wp-content/uploads/2013/03/backupStatus.png"><img decoding="async" class="alignnone size-full wp-image-392" alt="backupStatus" src="https://new.virtjunkie.com/wp-content/uploads/2013/03/backupStatus.png" width="633" height="75" srcset="/wp-content/uploads/2013/03/backupStatus.png 633w, /wp-content/uploads/2013/03/backupStatus-300x36.png 300w" sizes="(max-width: 633px) 100vw, 633px" /></a></p>
<p>ntap&gt; snap list volume</p>
<p>(I edited the volume name)</p>
<p><a href="https://new.virtjunkie.com/wp-content/uploads/2013/03/snapList.png"><img decoding="async" class="alignnone size-full wp-image-398" alt="snapList" src="https://new.virtjunkie.com/wp-content/uploads/2013/03/snapList.png" width="686" height="160" srcset="/wp-content/uploads/2013/03/snapList.png 686w, /wp-content/uploads/2013/03/snapList-300x70.png 300w" sizes="(max-width: 686px) 100vw, 686px" /></a></p>
<p>To resolve this, run the following commands. They disable NDMP, and kill all active NDMP threads. As long as you&#8217;re not running any NDMP backups, this will not affect anything else on your filer.</p>
<p>[text]<br />
ndmpd off<br />
ndmpd killall<br />
ndmpd on<br />
[/text]</p>
<p>The post <a href="/2013/03/19/netapp-unable-to-delete-snapshots-dependency-busy-backupn-dump/">NetApp &#8211; Unable To Delete Snapshots (Dependency: busy, backup[n], dump)</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2013/03/19/netapp-unable-to-delete-snapshots-dependency-busy-backupn-dump/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Monitor NetApp SnapMirror via Solarwinds Server and Application Monitor</title>
		<link>/2013/02/13/monitor-netapp-snapmirror-via-solarwinds-server-and-application-monitor/</link>
					<comments>/2013/02/13/monitor-netapp-snapmirror-via-solarwinds-server-and-application-monitor/#respond</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Thu, 14 Feb 2013 02:39:35 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[NetApp]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Solarwinds]]></category>
		<guid isPermaLink="false">http://45.63.13.214/?p=360</guid>

					<description><![CDATA[<p>So yesterday I talked about using a Powershell script with in Solarwinds to monitor volume sizes. Using the NetApp Data ONTAP Toolkit, we have the ability to do monitor a lot of different things, and track the information using Solarwinds. In this post I will show how to monitor SnapMirror relationships using Solarwinds. Since my last [&#8230;]</p>
<p>The post <a href="/2013/02/13/monitor-netapp-snapmirror-via-solarwinds-server-and-application-monitor/">Monitor NetApp SnapMirror via Solarwinds Server and Application Monitor</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>So <a title="Monitor NetApp SAN via Solarwinds Server and Application Monitor" href="http://45.63.13.214/?p=326">yesterday I talked about</a> using a Powershell script with in Solarwinds to monitor volume sizes. Using the <a title="Install NetApp DataOnTap Powershell" href="http://45.63.13.214/?p=304">NetApp Data ONTAP Toolkit</a>, we have the ability to do monitor a lot of different things, and track the information using Solarwinds. In this post I will show how to monitor SnapMirror relationships using Solarwinds.</p>
<p><span id="more-360"></span></p>
<p>Since my last post, I was able to find a document that gives a bit more&#8230; official insight into what Solarwinds expects in terms of Powershell script output. I&#8217;ve attached the PDF to the bottom of this post.</p>
<p>A big change from the last script, is that this one utilizes the &#8220;Message&#8221; field within solarwinds, whereas the old post only references the &#8220;Statistic&#8221; post.  This allows us to give more information as to why an issue might be occurring.</p>
<p>For example, let&#8217;s say a SnapMirror relationship is considered to be in  &#8220;critical&#8221; status if it has not been replicated in 480 minutes (or 4 hours), but you would like to know why this failure is occurring, without connecting to the CLI on your filer or NetApp System Manager (NSM). You can configure your Powershell to output important information in case of a failure. This script does just that. See an example screenshot below:</p>
<p><a href="https://new.virtjunkie.com/wp-content/uploads/2013/02/solarwinds-snapmirror-component.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-372" style="border: 1px solid black;" alt="solarwinds-snapmirror-component" src="https://new.virtjunkie.com/wp-content/uploads/2013/02/solarwinds-snapmirror-component.png" width="697" height="322" srcset="/wp-content/uploads/2013/02/solarwinds-snapmirror-component.png 697w, /wp-content/uploads/2013/02/solarwinds-snapmirror-component-300x139.png 300w" sizes="(max-width: 697px) 100vw, 697px" /></a></p>
<p>Important things to note about this script:</p>
<ol>
<li>The filer that you will be connecting to is determined by how you have the Application Template / Component config.</li>
<li>The Snapmirror relationship you insert in the &#8220;script argument&#8221; field should appear just like the output of the source field output of a Get-NaSnapmirror command run directly from powershell.</li>
</ol>
<p><a href="https://new.virtjunkie.com/wp-content/uploads/2013/02/Configuring_and_Integrating_PowerShell.pdf">Configuring_and_Integrating_PowerShell</a> (<a href="http://www.solarwinds.com/documentation/apm/docs/Configuring_and_Integrating_PowerShell.pdf">Alternate link</a>)</p>
<p>The script is below:</p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">param (
    [string]$Location = $( Read-Host &quot;The source location or destination \
    location of the SnapMirror pair&quot; )
)
#***
# The Variable $location is filled in by Solarwinds. It accepts wildcards.
#***

############################ BEGIN GetVolumeAlert.ps1 ####################
# SnapMirror Alert Generator ~ v1.0 - Jon Howe
# REQUIRES NETAPP POWERSHELL TOOLKIT / PowerShell 2.0 recommended!
#
# Ensure that the variable ($profile) for the executing user contains the
# following line:
# import-module dataontap
##########################################################################

#Set the credentials for your filer.
$filerpassword = &quot;[Enter Your Password Here]&quot;

#The value ${IP} will be replaced by the server selected in Solarwinds
$Filername = '${IP}'

##########################################################################
# DO NOT EDIT BELOW THIS LINE
###########################################################################
Import-module DataONTAP
$password = ConvertTo-SecureString $filerpassword -AsPlainText –Force
$cred = New-Object -TypeName System.Management.Automation.PSCredential \
 -ArgumentList &quot;root&quot;,$password
$connection =  Connect-NaController $Filername -Credential $cred

$SM_List = Get-NaSnapmirror -Location $Location

Foreach ($SM in $SM_List)
{
	$smError = $SM.CurrentTransferError
	$status = $SM.Status

	$rawSrc = $SM.Source
	# Apparently solarwinds freaks out when there's a colon in the
	$srcSplit = $rawSrc.Split(&quot;:&quot;)
	$srcFiler = $srcSplit[0]
	$srcVolume = $srcSplit[1]
	$src = &quot;$srcVolume@$srcFiler&quot;

	Write-Host &quot;Statistic.$srcVolume :&quot; $lag
	if ($smError)
	{
		Write-Host &quot;Message.$srcVolume :&quot; $status &quot;-&quot; $smError
	}
	Else
	{
		Write-Host &quot;Message.$srcVolume :&quot; $status
	}
}

exit(0)</pre><p></p>
<p>As usual, if you have any questions about this, let me know!</p>
<p>The post <a href="/2013/02/13/monitor-netapp-snapmirror-via-solarwinds-server-and-application-monitor/">Monitor NetApp SnapMirror via Solarwinds Server and Application Monitor</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2013/02/13/monitor-netapp-snapmirror-via-solarwinds-server-and-application-monitor/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Monitor NetApp SAN via Solarwinds Server and Application Monitor</title>
		<link>/2013/02/12/monitor-netapp-san-via-solarwinds-server-and-application-monitor/</link>
					<comments>/2013/02/12/monitor-netapp-san-via-solarwinds-server-and-application-monitor/#comments</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Wed, 13 Feb 2013 01:57:12 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[NetApp]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Solarwinds]]></category>
		<guid isPermaLink="false">http://45.63.13.214/?p=326</guid>

					<description><![CDATA[<p>I was unable to find any examples for how to do this online, so I came up with my own solution using the NetApp Data ONTAP toolkit as well as a slight modification of your powershell profile. You&#8217;ll need to download the toolkit and install it on your SAM machine as a prerequisite for this to [&#8230;]</p>
<p>The post <a href="/2013/02/12/monitor-netapp-san-via-solarwinds-server-and-application-monitor/">Monitor NetApp SAN via Solarwinds Server and Application Monitor</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I was unable to find any examples for how to do this online, so I came up with my own solution using the NetApp Data ONTAP toolkit as well as a slight modification of your powershell profile.</p>
<p><span id="more-326"></span></p>
<p>You&#8217;ll need to <a title="Install NetApp DataOnTap Powershell" href="http://45.63.13.214/?p=304">download the toolkit and install it on your SAM machine</a> as a prerequisite for this to work.</p>
<p>Additionally, I needed to modify the powershell profile of the user that will execute the script.  The location of the Powershell profile is stored in the variable $profile.  Just make sure that file contains the line</p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">import-module dataontap</pre><p></p>
<p>After you get your environment all set, you&#8217;ll need to configure a new Application Template within SAM.</p>
<p>To do this, navigate to Admin -&gt; Settings -&gt; SAM Settings -&gt; Create a New Template</p>
<p>The important Fields to fill in are:</p>
<p>Template Name: I recommend giving this a name that identifies the particular filer you&#8217;re connecting to</p>
<p><a href="https://new.virtjunkie.com/wp-content/uploads/2013/02/template1.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-347" style="border: 1px solid black;" alt="template1" src="https://new.virtjunkie.com/wp-content/uploads/2013/02/template1.png" width="513" height="193" srcset="/wp-content/uploads/2013/02/template1.png 513w, /wp-content/uploads/2013/02/template1-300x113.png 300w" sizes="(max-width: 513px) 100vw, 513px" /></a></p>
<p>Then Add a component monitor:</p>
<p><a href="https://new.virtjunkie.com/wp-content/uploads/2013/02/addComponentMonitor.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-348" style="border: 1px solid black;" alt="addComponentMonitor" src="https://new.virtjunkie.com/wp-content/uploads/2013/02/addComponentMonitor.png" width="149" height="31" /></a></p>
<p>Select the Windows PowerShell Monitor</p>
<p><a href="https://new.virtjunkie.com/wp-content/uploads/2013/02/newPowershellComponent.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-349" style="border: 1px solid black;" alt="newPowershellComponent" src="https://new.virtjunkie.com/wp-content/uploads/2013/02/newPowershellComponent.png" width="628" height="155" srcset="/wp-content/uploads/2013/02/newPowershellComponent.png 628w, /wp-content/uploads/2013/02/newPowershellComponent-300x74.png 300w" sizes="(max-width: 628px) 100vw, 628px" /></a></p>
<p>Paste the script below into the script body, and put the name of the volume in the &#8220;Script Arguments&#8221; field. As a bonus, you can use a wildcard in the Script Arguments field in order to monitor multiple volumes at the same time.</p>
<p>If you like, you can modify line 28 below to better fit your needs. For example, I have different component that has the line below in place. This allows me more flexibility than what I get by using the script arguments field.</p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">$VolArray = get-navol | Where-Object {$_.Name -eq &quot;CIFS0&quot; -or $_.Name \
-eq &quot;CIFS1&quot; -or $_.Name -eq &quot;CIFS2&quot;  -or $_.Name -eq &quot;CIFS3&quot; -or \
$_.Name -eq &quot;CIFS4&quot;}</pre><p></p>
<p>&nbsp;</p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">param (
[string]$Volume = $( Read-Host &quot;Enter the volume name, please&quot; )
)
############################ BEGIN GetVolumeAlert.ps1 ####################
# Volume Alert Generator ~ v1.0 - Jon Howe
# REQUIRES NETAPP POWERSHELL TOOLKIT / PowerShell 2.0 recommended!
#
# Ensure that the variable ($profile) for the executing user contains the
# following line:
# import-module dataontap
##########################################################################

#Set the credentials for your filer.
$filerpassword = &quot;Enter Your Password Here&quot;

#The value ${IP} will be replaced by the server selected in Solarwinds
$Filername = '${IP}'

##########################################################################
# DO NOT EDIT BELOW THIS LINE
###########################################################################
Import-module DataONTAP
$password = ConvertTo-SecureString $filerpassword -AsPlainText –Force
$cred = New-Object -TypeName System.Management.Automation.PSCredential \
 -ArgumentList &quot;root&quot;,$password
$connection = Connect-NaController $Filername -Credential $cred

$VolArray = get-navol -Name $Volume

foreach ($vol in $VolArray)
{
 $name = $vol.Name
 $percent = $vol.Used

 # This is important - Solarwinds requires a &quot;Unique identifier&quot; for
 # each value returned by a script. The line below creates an
 # identifier for each result returned.
 Write-Host &quot;Statistic.$name :&quot; $percent
}

#Solarwinds requires that this be included in a PowerShell script.
exit(0)</pre><p></p>
<p>I&#8217;m using this right now to monitor a production environment with a lot of success. If you want to see a different setup, let me know!</p>
<p>The post <a href="/2013/02/12/monitor-netapp-san-via-solarwinds-server-and-application-monitor/">Monitor NetApp SAN via Solarwinds Server and Application Monitor</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2013/02/12/monitor-netapp-san-via-solarwinds-server-and-application-monitor/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Install NetApp DataOnTap Powershell</title>
		<link>/2013/02/10/install-netapp-dataontap-powershell/</link>
					<comments>/2013/02/10/install-netapp-dataontap-powershell/#comments</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Sun, 10 Feb 2013 16:27:40 +0000</pubDate>
				<category><![CDATA[NetApp]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Servers]]></category>
		<guid isPermaLink="false">http://45.63.13.214/?p=304</guid>

					<description><![CDATA[<p>I have been using the NetApp Data ONTAP toolkit a lot lately, and I&#8217;m going to throw some tutorials on this site relating to it. Let&#8217;s go through the steps we need to follow to get the toolkit installed on your machine. Download the NetApp Data ONTAP Toolkit &#8211; You will need a NetApp Now account [&#8230;]</p>
<p>The post <a href="/2013/02/10/install-netapp-dataontap-powershell/">Install NetApp DataOnTap Powershell</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I have been using the NetApp Data ONTAP toolkit a lot lately, and I&#8217;m going to throw some tutorials on this site relating to it.</p>
<p>Let&#8217;s go through the steps we need to follow to get the toolkit installed on your machine.</p>
<p><span id="more-304"></span></p>
<ol>
<li><a title="Download the NetApp Data ONTAP Toolkit" href="https://communities.netapp.com/docs/DOC-22259" target="_blank" rel="noopener">Download the NetApp Data ONTAP Toolkit</a> &#8211; You will need a NetApp Now account to download it</li>
<li>Install the MSI</li>
<li>Open Powershell</li>
<li>Load the Data ONTAP module:
<ol>
<li>Import Module dataontap</li>
</ol>
</li>
<li>Learn about what you can do
<ol>
<li>show-nahelp</li>
</ol>
</li>
</ol>
<p>The post <a href="/2013/02/10/install-netapp-dataontap-powershell/">Install NetApp DataOnTap Powershell</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2013/02/10/install-netapp-dataontap-powershell/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
