RSS

NSX: Edge high availability dead time value

Well studying for my NSX 6.2 exams, I found that there were some confusing over dead time value and polling interval for NSX edge HA. While doing my NSX class I asked my instructor about it and he clarified the following:

In NSX Edge HA configuration (as of 6.3) :-

  • Default Declare dead time is 15 seconds
  • The minimum acceptable value 9 seconds, anything below 9 seconds will not work
  • The polling interval is 1 seconds

You can see the polling interval by running “debug packet” commands in the edge.

How does the dead time value impact connectivity? As a quick test, I have a machine pinging another machine behind the Edge HA.

Dead time = 15 seconds –> 11 ping time out

Dead time = 9 seconds –> 4 pings time out

Advertisements
 
Leave a comment

Posted by on April 6, 2017 in vmware

 

Tags: , ,

PowerCLI: Getting VMHosts, PortGroups and switches info

I needed to extract a list of hosts in vCenter and with them, get all the portgroups and switch info. Unfortunately, there is no one one-liner script that can do this. Mainly because you have standard and distributed switches and their properties are different. In order to do this you need to separate one-liner, both feeding into the same output file.

The first script output the hosts against their VDSwitches. The script creates a tab-delimited text file that you can easy copy and paste onto a spreadsheet. Both scripts output the following:
– Clustername
– Hostname
– virtual network adapter name
– IP
– subnet mask
– port group name
– switch name
– VLAN ID

Get-VMHostNetworkAdapter -vmkernel | 
% { $vnet=$_ ; get-vdportgroup -vmhostnetworkadapter $vnet | 
%{"$($vnet.vmhost.parent)`t$($vnet.vmhost)`t
$($vnet.name)`t$($vnet.ip)`t$($vnet.subnetmask)`t
$($_.name)`t$($_.vdswitch)`t$($_.vlanconfiguration)" | 
out-file .\temp\output.txt -append } }

The second script output the hosts against their standard switch, as you can see the order of the function is very different. The main reason is that VMHostNetworkAdapter object cannot be pipped into the VirtualPortGroup but it works the other way around.

You can also see from the second script the the names for virtualswitch and vlanID different from the above. Actually .vdswitch and .vlanconfiguration are objects themselves, but they are nice enough to output the values I want without needing to specify the actual object, i.e. switch name and VLAN ID.

Get-VirtualPortgroup -standard | 
% { $pg=$_ ; get-vmhostnetworkadapter -portgroup $pg | 
% { "$($_.vmhost.parent)`t$($_.vmhost)`t$($_.name)`t
$($_.ip)`t$($_.subnetmask)`t$($pg.name)`t
$($pg.virtualswitch.name)`t$($pg.vlanid)" |
 out-file .\temp\output.txt -append }}
 
Leave a comment

Posted by on March 31, 2017 in powershell, vmware

 

Tags: , , , ,

Fixing Windows 10 Anniversary update

Let’s get to the chase…after a painful update of my Windows 8.1 to Windows 10 Anniversary and facing issues with action center, edge, start button that is not working, I decided to clean install W10A instead. I know that plain W10A install works just fine because I have done it successful on a VM on my desktop. However, even with a clean install, I still had issues with IE11 crashing when launched; when trying to install ADK, the install crashed with faulting module nvumdshim.dll. This pointed to the NVDIA graphic card driver installed by Microsoft.

Sure enough, after I downloaded the latest drivers from NVDIA and installing it, everything was working well on my W10A desktop. Given this, I suspect a lot of the update problems with W10A is probably related to graphic drivers.  Another clue is that some users were able to get their action center, start menu, etc working after booting up in safe mode and then booting to normal Windows again. Windows uses a basic video driver in safe mode which could explain why it was working in safe mode, but I am not sure why it may work again after rebooting to normal mode, but I suspect that system will crash again in no time and it is not permanent fix.  Read the rest of this entry »

 
Leave a comment

Posted by on December 29, 2016 in Windows

 

Tags: ,

PS1: Transposing a vertical list of records

Honestly, I don’t really know what term to call this other than “a vertical list of records”. What I mean a set of records that are listed vertically instead of having its field values in columns. Below table is what it looks like:

host1:FIELD1=value1
host1:FIELD2=value2
host1:FIELD4=value3
host1:FIELD5=value4

host2:FIELD1=value1
host2:FIELD2=value2
host2:FIELD3=value3
host2:FIELD4=value4

This output comes out from a really old CLI which extracts the inventory of hosts. The problem with the CLI is that it can only extract one host at a time and it displays in this vertical list format. To extract 100 host, you need to call the CLI 100 times and dump the output into a file, which is what it ended up looking like in the above. Read the rest of this entry »

 
Leave a comment

Posted by on October 14, 2016 in powershell

 

Tags:

Windows Anniversary update broke my network and start menu

The case against Windows Anniversary update goes on (read the comments):

http://www.infoworld.com/article/3104389/microsoft-windows/the-case-against-windows-10-anniversary-update-grows.html

Two days ago, I was forced to receive the Windows Anniversary update like many other people. And like a lot of folks, I really need my computer at the point in time but the screen just asks me to wait as Windows is update… what can we do?

Fast forward, the update completed and machine reboot. Logged in to my machine and 3 major items did not work:

  • Start menu
    • There was no response when clicking on the Windows start button or the search button after the update. In other words, I have no view of my installed applications or access to launch any applications other than those already in the task bar. Of course, I could still run the applications directly via command prompt or the file explorer
  • Network
    • My network stopped working. When I looked into the network adapters, I could see my wireless and LAN adapter. I normally disable the wireless and use the LAN. However, I also had Hyper-V running and the virtualised adapters had disappeared. Those were the ones used for network connectivity.
    • I could not find the adapters in device manager and found that the update had removed Hyper-V without proper uninstallation obviously.
    • By removing Hyper-V, the virtualized adapters where also removed, leaving my physical adapters with no bindings to any protocols or services
    • By rechecking the protocols, e.g. IP4 and network services, network connectiviity came back.
  • Action center
    • When initially troubleshooting the network issue, I tried to turn on my wireless adapter to configure it for my network. Sadly, because the action center will not launch, I could not view the network available to connect my wireless adapter to. Of course, this can be done via command line, but what about the end-users?
    • I also cannot clear the notification icon on the tray as action center will not launch.

After readig a bit about all the problem, I decided to try creating a new profile to see if it will solve at least the start menu and action center issue. However, that did not work.

Luckily, Windows offered back out and recovery option which worked for me. So I managed to recovery my Windows and got back my previous version.

 

 
Leave a comment

Posted by on September 26, 2016 in General, Windows

 

Fixed: “The security database on the server does not have a computer account for this workstation trust relationship”

I have been playing with my own little AD domain sandbox in hyper-V and came across this error when trying to logon to a domain member server using an account with Domain Admin rights:

“The security database on the server does not have a computer account for this workstation trust relationship”

This is strange because my setup is not very complicated, just one forest DC, one domain DC and a member server. Of course, the first thing I tried is to reset the computer account and also to rejoin the server to the domain, which didn’t work Read the rest of this entry »

 
Leave a comment

Posted by on July 20, 2016 in Windows

 

Tags:

ESXi host performance issues and the importance of thermal paste

A totally interesting read on how the team in VMware resolved an issue with a non performing HP blade. The final take away from this is:

  • Thermal paste really can impact performance!
  • HP Active Health System logs should (but don’t) include when CPU’s clock down to prevent overheating.
  • CPU clock throttled error message don’t appear in ESXi logs.

http://www.vmspot.com/esxi-host-performance-issues-and-the-importance-of-thermal-paste/

 

 
Leave a comment

Posted by on July 1, 2016 in Operations, vmware, Windows

 

Tags: ,