Archive for the ‘Networking’ Category

Had a client who required in-guest iSCSI connections. After reviewing the physical NICs that were going to be available on each host, I created the following script to automate the creation of the virtual switch with associated uplinks and two portgroups. (more…)


Nearly every environment I work in has the annoying warnings on their domain controllers stating that the Netlogon.log is filling up and almost always with the NO_CLIENT_SITE warnings. It’s a simple fix, just add in all the relevant subnets into AD Sites and Services. One of those things that just should be done when new networks are brought online, but nearly always get’s left out. Well, below is a bit of PowerShell to parse the domain controller’s Netlogon.log and spit back a list of unique /24 subnets that are generating the warnings. Next step would be to identify which AD site they should belong to and add them in.

I recently had to gather the VLAN ID information from a vCenter environment where some hosts had standard and distributed switching in use for their virtual machine networking. Unfortunately, the data for VLAN ID is located in different fields depending on the vSwitch type. So, here’s a simple script to gather both sets of into a CSV. (more…)

Subnet mask cheat sheet

Posted: September 7, 2012 in Networking

As I’m not always dealing with networks and subnet masks, whenever I do end up needing to, I can never easily remember the conversions from subnet mask (dotted decimal) to the /?? format (CIDR). Found this table that is a great cheat sheet. (more…)

Adds in a bunch of new subnets, details read from a CSV, into AD Sites and Services, into pre-existing sites. Requires Quest AD tools. (more…)

Pretty simple script here. Just needed something to loop every 10 minutes and run a number of pings against some hosts, then email me only if there were any drops. (more…)

I wanted to be able to launch SSH URLs directly from my PassSafe. What seems like such a simple thing turned out to be a pain. Basically, because putty is looking for a hostname or IP only from it’s CLI, the normal creation of a URL extension doesn’t work. I ended having to create a small batch file to strip out the URL guff and just leave the IP/Hostname. (more…)