PowerShell Script to Allow User Selection of Live Mount Snapshot with Rubrik

Purpose: Allow a user to input a VM name (or a partial name) and have it list all matching VMs as a numbered list to select from. After VM selection, it will display a numbered list of all snapshots for the selected VM to choose, which then will proceed to perform a live mount of the virtual machine. This is the VM I am going to use for this example, but I will search for it by just using the

Continue Reading

Finding NSX Security Groups Backed by Active Directory Groups

Just a quick post on PowerNSX, I was working with a customer who had a large number of security groups configured within their NSX environment. For troubleshooting purposes they needed to remove security groups that were backed by Active Directory groups but there wasn’t an easy way to tell from the UI which groups these were (and they didn’t remmeber the names at this point) Fortunately, a 1 line command in PowerNSX did the heavy lifting for us. # This

Continue Reading

Change Segment IDs in NSX to Avoid Overlapping

Use case: Often with a standalone NSX deployment a segment ID range of 5000-5999 is used. This same range may be used across multiple sites but once you want to start leveraging cross-vCenter NSX functionality you will want to have different segment ID’s (as an example, 5000-5999 at site 1, 6000-6999 at site 2 and 10000-109999 for Universal). In this post we will walk through the process of changing the segment ID’s at the secondary site. We will be using

Continue Reading

Home Lab Startup/Shutdown Script

I’ve been using the following script to start VMs in a certain order in my home lab. While it probably isn’t the prettiest code, it works. It assumes you are using PowerShell Core on a Mac and are already connected to a vCenter Server before running the script. In my case I have 4 ESXi hosts that I power on/off on demand (and 2 that run 24×7 where vCenter and Platform Services Controller run). I have my VMs broken out

Continue Reading

Building a NSX Distributed Firewall Hit Count Chart in Log Insight

One request I have had a few times now is how to build out a NSX Distributed Firewall chart that includes rule hit count within Log Insight. Read on to learn how. The first step is to ensure that your Distributed Firewall Rules are set to log (by default it is set to no). If you need to bulk enable rules to log, see this previous post for how to do it easily with PowerNSX. Go to the Interactive Analytics

Continue Reading

Bulk Enable Logging on all NSX Distributed Firewall Rules

A customer of mine who has NSX deployed in production recently added vRealize Log Insight into their environment. Since they have been using NSX for quite some time already they had a large number of rules created for the distributed firewall. All of the rules currently were not set to log to a remote syslog server, without a setting in the UI to modify all the rules at once to enable logging they were looking for the easiest way to do this.

Continue Reading

vRealize Network Insight Search Queries

I deal with vRealize Network Insight quite a bit in my day job, and one of the things I’ve noticed is there isn’t a complete resource of different queries you can run within the product. The dropdown suggestions do a good job of getting you started however there are some queries that don’t auto-populate that can be useful. View the code on Gist.

Continue Reading

NSX – Creating Universal IP Sets from Existing Standalone IP Sets

Scenario: Customer has an existing stand-alone NSX deployment and is leveraging IP Sets. Recently they moved to a cross-vCenter NSX deployment and now want to use the previous non-Universal IP sets as Universal IP sets without manually creating each one. Enter PowerNSX View the code on Gist. Here is a screenshot before the script ran, I have a few IP sets with various types of members (single IPs, ranges). And here you see after the script has ran, it takes

Continue Reading

How Email Approvals are Handled with vRealize Automation

I had a customer ask how inbound email approvals were handled with vRealize Automation. The official documentation shows how to configure the inbound email server but not a whole lot of information beyond that. Since I collected some screenshots I thought I would post this up in the event it may help others. Here is what an approval email looks like, you can see at the bottom there are links for Approve and Reject. These links are mailto: links that will

Continue Reading

Site Footer