Useful NSX commands

Controller status commands # show control-cluster status # show control-cluster connections # show control-cluster startup-nodes # show control-cluster roles # show control-cluster history # join control-cluster # join control-cluster force # show status # show network interface # show network default-gateway # show network dns-servers # show network ntp-servers # show network ntp-status […]

PowerCLI – Find mac in a haystack

find a vms mac in two minutes with this really useful one-liner Get-VM | Get-NetworkAdapter ´ | Where-Object {$_.MacAddress -eq “00:50:56:xx:xx:xx:”} | Select MacAddress,NetworkName,Name,Parent,ConnectionState Ok, it’s a bit slow to run, this function by Robert van den Nieuwendijk is much faster   [code language=”powershell”] function Get-VmByMacAddress { <# .SYNOPSIS Retrieves the virtual machines with a […]

PowerCLI – configure host dump-collector

There are a number of post showing how to setup VMware’s Dump Collector, once that is done the hosts need to be configured to point to the dump collector. First check that you can connect to the dump collector nc -z -u <your dump collector ip><port> see the following kb for troubleshooting   Jonathan […]

Security Audit – Set ssh timeouts

Security auditors will consider ssh access a vulnerability. This can be mitigated by setting timeout values and linking the starting of the service to a vCenter user When a ssh session is needed the service will have to be started from the vCenter or DCUI. (In the case of DCUI access, either physical controls to the data […]