Using PowerShell to prevent thinly provisioned NetApp LUNs from going offline – Part I


Happy Day-after Thanksgiving dear readers! I hope everyone is as satisfyingly full on food, friends, and family as I am.  As an early gift to myself, I’m writing a PowerShell script that utilizes NetApp’s PowerShell Toolkit.  The script will help me quickly determine current volume and LUN settings so I can see what LUNs are at risk of going offline due to out of space conditions.  In scripting tradition, I couldn’t find anything online that did exactly what I wanted so I rolled my own!

Here’s what the output looks like. The column names are abbreviated because I expect to have several more columns. The abbreviations are, Volume Thin Provisioning, Fractional Reserve, Snapshots, Volume AutoGrow, Snapshot AutoDelete.

Read the rest of this entry »

Advertisements

Scheduled task to run a PowerCLI script (and delete a named snapshot)


I had occasion recently to delete a snapshot at a certain time. It’s easy enough to schedule the snapshot using the vSphere Client and built-in functions, but then, how to delete it on a schedule? Enter PowerCLI and the Windows Task Scheduler.

There was a VMTN forum post by Duncan Epping (@DuncanYB) that suggested using the generic form Get-VM | Get-Snapshot | Remove-Snapshot. This worked a charm for me and I put it into the following script.

Read the rest of this entry »


Deploy a VM from template with PowerCLI


Now that I have a small VM for my test lab, I converted it to a template and looked for a cool way to deploy several VMs from this template with PowerCLI. Turns out it’s actually really easy, anti-climactic, even. The good folks over at VMPros.nl have an excellent tutorial on this topic. Alan Renouf (Twitter @alanrenouf) was the first to comment on their blogpost. He included a nice for loop to replace a single line for each VM deployment. I incorporated Alan’s suggestion as well as a few options from the PowerCLI New-VM cmdlet reference page, like adding the VM to a resource pool and then powering on the VM.

Here’s the code:

Read the rest of this entry »


Add e-mail alerts to all 41 default vSphere 4.1 alarms


Towards the end of a customer’s virtualization implementation we’re doing some clean-up of the environment. During the initial setup I was using my own local email address to test various alerting processes, of which there are several. For instance, every SQL Server maintenance task sends a success/failure e-mail alert, the NetApp Virtual Storage Console plug-in can be configured to e-mail an administrator after snapshots are taken, and the Dell iDRAC can send e-mails on hardware status changes. All those are fairly quick to configure or lack a way to script a quick solution. But with 40 default alarms in vSphere, three vCenters, and being lazy as I am, I knew there must be a better solution than right clicking 120 alarms and copying-and-pasting an email address. As the proverb goes, if you repeat it, script it. So I set out to find how PowerCLI could help me.

Keep reading


sale-70-410-exam    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-HP2-B118-date    | It-Exam-000-056-Date    | Vces-C9510-052-Date-Exam    | Answer-70-354-Certs    | Answer-210-065-Dumps    | Answer-E20-510-Vces    | It-Exam-G2700-Answer    | It-Exam-200-125-Exam    | Full-HP2-B95-Vces    | Dump-VCP510PSE-Marks    | It-Exam-500-285-Marks    | It-Cert-MB4-212-Marks    | It-Pass-SPS-200-Cert    | Pass-3300-Exam-Apply    | 24h-200-105-Dumps    | 365-Online-101-Exam-Cert    | Pass-EX300-Exam    | 24h-Help-HP2-Z14-Dump    | Professional-VCP510-Exam    | It-3301-Cert-Pass    | Certs-C-TBW60-74-Plan    | Training-200-125-Current    | New-Exam-CCNA-Dumps    | CISCO-Exam-200-125-Online    | UDEMY-CCNA-Video    | Learn-CCNA-200-125-Exam    | Network-CCNA-Dumps    | Practice-200-125-Exam    | CCNA-It-Exam    | Gratis-2V0-621D-Exam    | Test-2V0-621D-king    | Cert-Killer-2V0-621D-Exam    | Exam-300-070-Test    | Brain-300-207-Exam    | Exam-CCNP-Learning    | Education-1Z0-062-Exam    | Certification-Exam-Prep    | 1Z0-062-Certification    | Becoming-1Z0-062-Exam    | For-All-N10-006-Exam    | Tech-300-115-Exam    | Exam-300-115-Labs    | Training-300-320-Dumps    | Press-640-916-Exam    | Brown-640-916-Exam    | Vces-640-916-Exam    | Exams-640-916-Help    | Course-200-355-Online    | IT-Exam-CCNA-    | Dumps-200-355-Training    | Dumps-200-355-Collection    | Dumps-200-355-Exam    | Pass-200-355-Easy    | CCNA-200-355-Dump    | Exam-400-101-PDF    | Exam-98-363-Collection    | Pass-300-070-Exam-Cert    | IT-Exam-300-070-Answers    | Exams-300-070-Cert    | Pass-300-070-Online-Exam    | Best-Dumps-300-070-Exam    | Testing-300-070-Online    | Latestp-300-070-Exam    | 2017-Online-300-070-Exam    | Guaranteed-300-070-Pass    | Exam-200-125-Exam-Vce    | Pass-210-065-Cert    | Exam-300-101-Pass    | IT-Cert-400-101-Exam    | 2017-Latest-70-410-Exam    | Get-Latest-70-461-Exam    | Questions-300-206-Answers    | Test-100-101-Exam    | Exam-Tips-300-206-Online    | IT-Test-300-070-Exam    | IT-Exam-300-070-Win    | Cert-400-101-Leader-Dumps    | Exam-400-101-For-All    | Crack-400-101-Exam    | Exam-Hub-IT-Exam    | Get-Free-300-101-Dumps    |
http://sahabatobatherbal.com/    | http://sahabatobatherbal.com/    |