Tag Archives: powershell

Quick Powershell: Creating cDot vServer templates in my lab.

I needed to create ALOT of vservers in my lab based off of engineer phone extensions.

Engineers have 3 digit extensions, 123 for example. All engineers have extensions between 192-254 so this works as a lazy mans tool.

Click to continue reading “Quick Powershell: Creating cDot vServer templates in my lab.”

1 Comment Continue Reading →

Quick Tip: Powercli to switch all VMware LUNs to Round Robin

Just for my own notes and quick copy and paste in the future… how to single line switch all luns to round robin on their paths.

Click to continue reading “Quick Tip: Powercli to switch all VMware LUNs to Round Robin”

1 Comment Continue Reading →

Quick Tip: NetApp DataOnTap Powershell Toolkit + cDot Snapshots

Just had someone ask me how they can delete all snapshots on a volume in cdot without being prompted for each snapshot to authorize it.

I told them powershell. Here’s a quick illustration of how to do it.

Click to continue reading “Quick Tip: NetApp DataOnTap Powershell Toolkit + cDot Snapshots”

Leave a comment Continue Reading →

Snippet: #1 emailed file of 2013: VM Snapshot age w/ powershell

Of all the thousands of emails I sent to customers in 2013, I sent this code to most. I think I sent it to over 150 people last year.

People do a really crappy job of monitoring their backup applications, and if they have old snapshots in VMware. It doesn’t matter if you use Veeam, NetBackup, BEX, SMVI/VSC, manual scripts, or what. Anything that automatically makes snapshots and then deletes them has the chance to totally screw that crap up!

Biggest issues happen when snapshots aren’t cleaned up if they are left around.

Click to continue reading “Snippet: #1 emailed file of 2013: VM Snapshot age w/ powershell”

Leave a comment Continue Reading →

Easily convert/clean Powershell UTF-16 output to UTF-8 on Mac/Linux

I work with Powershell quite often. I make healthcheck systems for apps such as NetBackup, and others. I use it for day to day administration of NetApp and vmware.

One problem I always have with it jumping between customer environments is the fact that the default text output is UTF-16. This looks like a bunch of junk when I view it in terminal on my Mac, and also it is not easily grep’able, or less/more’able.

Click to continue reading “Easily convert/clean Powershell UTF-16 output to UTF-8 on Mac/Linux”

Leave a comment Continue Reading →

Tip #4: Graphing Performance data from NetApp w/ Powershell – Part 1

Your NetApp DFM (OnCommand Core) Performance Advisor is lying to you… It doesn’t want to. And it doesn’t mean to. But it is. This was an issue that a customer came to me with yesterday.

If you asked your NetApp or DFM, “Hey dude, what’s my CPU utilization?” DFM may reply back, “Ohh man, you’re screwed, it’s 95%!” You instantly crap yourself since you just paid big money for all this stuff, which should last for years. Don’t worry, more than likely you’re good. Let’s take a look at why is it lying to you?

Click to continue reading “Tip #4: Graphing Performance data from NetApp w/ Powershell – Part 1”

1 Comment Continue Reading →

Tip #1: Monitoring SnapMirror relationships with PowerShell

Working in IT can be like war, we are in the trenches, issues all around. Problems jump up and attack without you even noticing. We must keep a watchful eye on all areas of our environment, and attack issues, before they get us!

In my first installment, I want to show a simple way to get the highest lag time of all your NetApp Snapmirror relationships, with Powershell. This is useful for anyone running Orion, WhatsUpGold, Nagios, or any other monitoring tool which can call out to scripts and remote hosts for custom checks.

Click to continue reading “Tip #1: Monitoring SnapMirror relationships with PowerShell”

Leave a comment Continue Reading →