Posts

NSX-T: Finding Tagless NSX-T VMs with Powershell Core

Image
Summary: Someone asked how you can find NSX-T 'tagless' VM's .  Seemed pretty straight forward and something I could answer w/o the shadow of LucD bot picking and answering while I'm still noodling on it. Anyway here is how it can be done and via Powershell Core (does not work as written in Powershell classic).  No PowerCLI module needed:

Misc: Workaround to silence Outlook for MacOS notification sounds while Do Not Disturb enabled.

Image
Summary: Work from home doesn't mean you should be on 24/7, which is why MacOS's "Do Not Disturb" function is great.  What's not great is that not all apps on MacOS respect it.  Microsoft Outlook for MacOS is one of them.  I've put in a bug/feature request for it to natively respect MacOS do not disturb.  In the meantime, you can make use of MacOS Automator silence your system based on a calendar trigger. It's no fun having anything that isn't muted going off in the middle of the night.  Below can be used to basically mute your system.  You can also have Automator close Outlook, but I've found that muting the system instead will catch any other application offenders that do not respect MacOS's do not disturb function.  Not to mention the dreaded, "Would you like to save this?" message that prevents the app from closing. Workaround: Launch MacOS Automator, you can find it in your Applications Folder. Create your Automator task type by ...

NSX-T: Get BGP Route Table from T0 via Powershell/Curl

Image
Summary: Azure VMware Solution doesn't currently allow CLI/SSH access to your Edge VMs.  So typical CLI way to find information is not possible.  If you need to get things like a route table from your T0, you need to do it through API methods since the UI still doesn't provide this.   [Update: I lied, you can download route table via UI.  But imagine how much cooler you would be using powershell. ;)] UI Method: Powershell Method: Curl Method:

NSX-T: Clear NSX-T DNS Forwarder Cache

Image
[ Update: NSX-T ingests negative SOA TTL from myDNS server in this example.  Microsoft DNS defaults this to 1 hour.  So NSX-T will cache the negative result for an hour. To combat this behavior, you can set your source DNS server to a lower TTL so that cache in NSX-T clear quicker.  Valid records in this setup will still cache for 1 hour or whatever you have your DNS server set to.] To determine TTL value for the negative record: nslookup -type=a -nosearch -d2 brokenaka.ninja.corp Summary: Ran into an interesting behavior w/ NSX-T's DNS forwarder service.  Basically, if I queried for an invalid DNS name, NSX-T's DNS caching appears to capture that invalid query for an undetermined amount of time. So what does this do?  Basically, if I queried for ninja.naka.corp w/o creating the entry on my DNS server, NSX-T caches that invalid record.  If I then registered ninja.naka.corp on my DNS server, NSX-T will continue to tell me that the record is invalid even thou...

Powershell: Azure submitting JIT Request via Powershell

Image
Summary: If you make use of Azure Security Center w/ your VM's, you can enable Just in Time VM Access (JIT) .  This allows you to open up ports for a finite period of time to access your VM via its public IP.  I make use of this a lot working in my environments to sshuttle in.  Connection will stay active as long as I maintain it, otherwise I get disconnected and have to go through JIT process again. Anyway, going through the portal can get very cumbersome requesting this access, so you can use the below powershell example to automate opening ports, setting time frame, and setting an allowed public IP address source.

PowerCLI: Getting HCL DID, VID, and SVID information.

Image
Summary: Searching for IO devices on VMware's HCL list  is easier, if you have data like DID, VID, and SVID.  Thought I posted on this awhile back, but apparently forgot to do so.  Below is a script that you can run on an ESXi host to get those values needed for the PCI devices you are trying to look up.

Misc: Technology industry new terminology initiative

Image
Summary: I've been working in technology for about 20+ years now, so it'll be difficult for me to break old habits w/ terminology, but I'm posting this here in the hopes that I can continue to adjust to new dynamics. Nothing really technical here, but if you happen to commit/modify code anywhere, here is a good starting point to adjust the terms you use in your code.  Also, a reference point to adjust your spoken vernacular to be inclusive to all those around you. Information shared from the VMware vExpert program . Words Recommended Alternate Other Situational Alternates if Recommended Alternate does not work abort stop ·           cancel ·           halt prematurely ·           end prematurely ·           stop prematurely blacklist ·           denylist (n) · ...