<?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>Featured Archives - VirtJunkie</title>
	<atom:link href="/category/featured/feed/" rel="self" type="application/rss+xml" />
	<link>/category/featured/</link>
	<description>Virtualization, Automation, and anything else that might be on my mind</description>
	<lastBuildDate>Fri, 19 Apr 2013 16:00:31 +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>Featured Archives - VirtJunkie</title>
	<link>/category/featured/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Use PowerShell to Update Specific AD User&#8217;s Description Field with Last Login Time</title>
		<link>/2013/04/19/use-powershell-to-change-specific/</link>
					<comments>/2013/04/19/use-powershell-to-change-specific/#respond</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Fri, 19 Apr 2013 16:00:31 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows Stuff]]></category>
		<guid isPermaLink="false">http://45.63.13.214/?p=419</guid>

					<description><![CDATA[<p>I encountered a challenge today that was fun to fix.  There&#8217;s an Organizational Unit in my AD setup that has historically been used to store disabled AD objects instead of deleting them. When an employee leaves the organization, our standard procedure  is as followed: Disable User Object Move to separate OU (IE AD://internal.msd/disabled/users) Update Description [&#8230;]</p>
<p>The post <a href="/2013/04/19/use-powershell-to-change-specific/">Use PowerShell to Update Specific AD User&#8217;s Description Field with Last Login Time</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I encountered a challenge today that was fun to fix.  There&#8217;s an Organizational Unit in my AD setup that has historically been used to store disabled AD objects instead of deleting them.</p>
<p>When an employee leaves the organization, our standard procedure  is as followed:</p>
<ol>
<li><span style="line-height: 13px;">Disable User Object</span></li>
<li>Move to separate OU (IE AD://internal.msd/disabled/users)</li>
<li>Update Description field with something like: Disabled by [username] on [date]</li>
<li>Retain user object for x amount of days, then tombstone it.</li>
</ol>
<p>Best laid plans of mice and men&#8230; yada yada&#8230;</p>
<p><span id="more-419"></span></p>
<p>I was able to go through all of these user objects that didn&#8217;t get their description updated with the one liner below. I&#8217;ll explain this beginning with script line 3 below:</p>
<ul>
<li><span><span>(Line 3) Find all users in the OU: </span></span><span style="line-height: 19px;">&#8216;OU=Users,OU=Disabled,DC=internal,DC=msd&#8217; &#8211; customize this to your environment</span></li>
<li><span style="line-height: 19px;">(Line 4) Exclude objects where the description does not contain the word &#8220;disabled&#8221;.</span></li>
<li>(Lines 5-7) Loop through each object that remains and update the description with the same object&#8217;s last login date.</li>
</ul>
<p>FYI &#8211; this script requires the Quest ActiveRoles Powershell Toolkit (<a href="http://www.quest.com/powershell/activeroles-server.aspx">http://www.quest.com/powershell/activeroles-server.aspx</a>)</p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">#This script requires Quest AD Tools
add-pssnapin Quest.ActiveRoles.ADManagement

#Everything below this is on one line
get-QADUser -searchroot 'OU=Users,OU=Disabled,DC=internal,DC=msd'
| Where-Object { $_.Description -notlike &amp;quot;*disabled*&amp;quot; }
| ForEach-Object { set-qaduser -identity
(get-qaduser $_.samaccountname) -description
(&amp;quot;Last Login: &amp;quot; + (get-qaduser $_.samaccountname).lastlogon})</pre><p></p>
<p>I&#8217;m sure there&#8217;s a more elegant way to handle this, but in 30 minutes I created this one liner, and updated <em>a lot</em> of user objects.</p>
<p>Cheers!</p>
<p>The post <a href="/2013/04/19/use-powershell-to-change-specific/">Use PowerShell to Update Specific AD User&#8217;s Description Field with Last Login Time</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2013/04/19/use-powershell-to-change-specific/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 fetchpriority="high" 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 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>Run As Different User (All the time, without holding shift!)</title>
		<link>/2013/02/12/run-as-different-user-all-the-time-without-holding-shift/</link>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Tue, 12 Feb 2013 04:17:19 +0000</pubDate>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows Server]]></category>
		<guid isPermaLink="false">http://45.63.13.214/?p=324</guid>

					<description><![CDATA[<p>The title of this post has bothered me since&#8230; forever. I really don&#8217;t like to take extra steps for things I do on a regular basis&#8230; Opening AD Users and Computers is something that I open on a pretty regular basis, but I use this method on several different utilities. In order to do this, you&#8217;ll [&#8230;]</p>
<p>The post <a href="/2013/02/12/run-as-different-user-all-the-time-without-holding-shift/">Run As Different User (All the time, without holding shift!)</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The title of this post has bothered me since&#8230; forever. I really don&#8217;t like to take extra steps for things I do on a regular basis&#8230;</p>
<p><span id="more-324"></span></p>
<p>Opening AD Users and Computers is something that I open on a pretty regular basis, but I use this method on several different utilities.</p>
<p>In order to do this, you&#8217;ll have to modify the target field in the shortcut of your program to include the <a href="http://technet.microsoft.com/en-us/library/bb490994.aspx">runas</a> command.</p>
<p>Example: Active Directory Users and Computers:</p>
<p>Original:    %SystemRoot%\system32\dsa.msc</p>
<p>Different User:    C:\Windows\System32\runas.exe /user:[domain]\user &#8220;mmc %windir%\system32\dsa.msc&#8221;</p>
<p>The post <a href="/2013/02/12/run-as-different-user-all-the-time-without-holding-shift/">Run As Different User (All the time, without holding shift!)</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SSH Auto Login Using Putty</title>
		<link>/2013/02/09/ssh-auto-login-using-putty/</link>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Sun, 10 Feb 2013 02:17:18 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[VMware]]></category>
		<guid isPermaLink="false">http://45.63.13.214/?p=272</guid>

					<description><![CDATA[<p>I once had a person tell me that the most successful individuals in IT are lazy.  Years after hearing that, the notion has stuck with me and translates into much of how I attach problems. If you&#8217;re like me, you use putty to connect to servers via SSH frequently. Now, I know that you can [&#8230;]</p>
<p>The post <a href="/2013/02/09/ssh-auto-login-using-putty/">SSH Auto Login Using Putty</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I once had a person tell me that the most successful individuals in IT are lazy.  Years after hearing that, the notion has stuck with me and translates into much of how I attach problems.</p>
<p>If you&#8217;re like me, you use putty to connect to servers via SSH frequently. Now, I know that you can use key based authentication using puttygen, but in the scenario that you don&#8217;t want to go that route, you can use the method below to create windows shortcuts to automatically log into a host using putty.</p>
<p><span id="more-272"></span></p>
<p>In my scenario, I have a few VMware ESXi hosts that I connect to pretty frequently, and logging in over and over gets annoying.</p>
<p>This solution is really quite simple. All you need to do is create a shortcut to this <a href="http://db.tt/GrmFD3L9">Example Batch File</a>. Make sure you edit the file to include your username and password.  Disclaimer &#8211; hard coding your password in plain text is generally considered bad security practice. Only do this if you know what you&#8217;re doing.</p>
<p>Modify the properties of each shortcut, and change the &#8220;Target&#8221; field of each one.  Here&#8217;s what one of mine looks like:</p>
<p>&#8220;C:\VMware Shortcuts\auto-ssh.bat&#8221; corp-esx-01</p>
<p>Here&#8217;s the breakdown of the batch file:</p>
<p style="padding-left: 30px;">( -ssh ) &#8211; connect to the host using SSH</p>
<p style="padding-left: 30px;">( -l [USERNAME] ) &#8211; configures putty to use a username</p>
<p style="padding-left: 30px;">( -pw [PASSWORD] ) &#8211; configures putty to use a password</p>
<p style="padding-left: 30px;">( %1) &#8211; since this is a batch file, %1 is will be replaced with the first parameter provided when the script is run.  Adding the name of your server onto the end of a windows shortcut will achieve this goal.</p>
<p>In order to make the shortcut a little bit more visually appealing, I created an ICO file to give the shortcut. I&#8217;ve provided it below.</p>
<figure style="width: 67px" class="wp-caption alignnone"><a href="http://db.tt/CFHL4UZ0"><img loading="lazy" decoding="async" alt="" src="http://db.tt/CFHL4UZ0" width="67" height="63" /></a><figcaption class="wp-caption-text">Example VMware Icon</figcaption></figure>
<p>The post <a href="/2013/02/09/ssh-auto-login-using-putty/">SSH Auto Login Using Putty</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
