Backup and Restore of ESXi host configurations with PowerCLI

I’m a big fan of PowerCLI one-liners. 🙂

Before performing updates, upgrades or any other maintenance on ESXi hosts, you should backup your ESXi host configuration. Setting up a new ESXi host as replacement is a no-brainer, but rebuilding a lost configuration can be a PITA and might take hours.

In the old times it was necesary to open a SSH shell connection or to use vSphereCLI to issue backup commands to ESXi hosts. Recently I realized that there is a very handy PowerShell commandlet to backup and restore the configuration. Continue reading “Backup and Restore of ESXi host configurations with PowerCLI”

VCSA and SCP

Using WinSCP with vCenter Server Appliance

Sometimes it’s necesary to exchange files with the vCenter Server Appliance (VCSA). Secure Copy Protocol is the tool of choice to do that job. Besides CLI commands there are handy programs like WinSCP.

While trying to establish a WinSCP connection to VCSA I’ve received communication errors. Whereas SSH connection worked without problems.

The problem is that WinSCP cannot use VCSA’s default shell as communication target. You have to switch default shell first before connecting. To do so, login to VCSA with SSH and activate Bash. Continue reading “VCSA and SCP”

vShield to NSX migration

Replacing deprecated vShield by NSX for vSphere

VMware vShield is part of the vCloud Networking and Security (vCNS) suite. Its latest version 5.5 has reached EOGS (end of general support) in September 2016 and has been replaced by NSX for vSphere.

We still see quite a lot of vShield installations in productive environments. Mainly used for agentless guest introspection together with security solutions like Trendmicro DeepSecurity,  McAfee Move or others. Now that many customers consider migrating from vSphere 6.0 to vSphere 6.5, they have to face the fact that vShield is no longer supported from vSphere 6.5 onwards. And it is crucial to take product compatibility into account. There is a relationship between different vSphere, NSX and security product versions.

That’s why I show different migration paths in this blog article. Continue reading “vShield to NSX migration”