This post will explain how to splat in Powershell. Splatting is basically using an array or a hash table as the attributes of a command.As with most things in Powershell, its best demonstrated by an example or two. Example 1 In my day job I have an ESXi build script, part of that is to…
Author: jase
Change NetApp FC ports to Ethernet
I was recently in a situation at work when I needed to stop work on a NetApp AFF redeploy and mount the SAN so some of its original data could be recovered. Now the SAN used Fiber Channel in its old location and its new location was Ethernet. At this point I have re-IPed the…
VMWare tasks
Some thing I always send a lot of time doing is looking for old tasks in vCenter. When using the web client or even Powershell you get a list of active tasks and some old ones before they disappear. You can go back through the Event list but sometimes you need to see the tasks….
VCSA restore from backup
In this post I will detail the steps required to restore a VCSA from a file level backup. Hopefully this will be a post no one will ever need. But if you do find your self in a situation that requires a restore from backup, then I hope this post helps. This is a list…
VM clone script
This is a VM clone/”backup” script that I use in my home lab. I schedule this script to make a clone of important VMs (works with vCenter) and clones them to another datastore. Obveusly this is not a proper backup but if I make a config change or lose a datastore then this will (and…
File deletion scripts
I get asked quite alot at work to monitor folders and delete files older then x days or stop them growing out of control. These folders are normaly FTP backups of things that do not age out. Like config backups (NSX im looking at you). There are a couple of ways to do this. The…
Edge Gateway export script
I have been searching for something that will export/audit an Edge gateways firewall and NAT rules or over a year. Although not perfect, this export is better then typing out an edge config in to excel one rule at a time. More so now as I have almost removed one of my fingers with a…
NetApp performance monitoring using Powershell
I recently had to run some monitoring commands to gather information while a backup was running. So I used Powershell. I needed to SSH on to the FAS and run the following: So why should I do that when I can get Powershell to do it. Here is a quick bit of Powershell to SSH…
FreeNAS, Disks and zPools
In this post we will add disks to the FreeNAS server and configure them in to a zPool. For this post we will use a ZFS equivalent of a RAID 10 but I will demonstrate all the other RAID options. Go to Storage and Disks to see a list of disks. This is not very…
FreeNAS, iSCSI setup
To get a zvol shared out on a network and visible to clients we need to set up the iSCSI service. This is not as bad as it used to be in the older interfaces. The iSCSI config can be reached from Sharing / Block Shares (iSCSI) or Services / iSCSI.Just remember to check that…