Friday, March 9, 2012

Persist the firewall rules

1. esxcli network firewall set --default-action true
2. esxcli network firewall set --enabled false
3. echo "esxcli network firewall set --default-action true" >> /etc/rc.local
4. echo "esxcli network firewall set --enabled false" >>/etc/rc.local

5. /sbin/ ----- preserves changes it right away

This firewall might help, if you are having consistent Vcenter Disconnects (vpxa--
vpxd communication)

Monday, March 5, 2012

VMs with Red Exclamation and no Alerts listed

- restart vpxa on ESXi( restart)
- disconnect the host from Vcenter and connect it back after couple minutes.
- Use Refresh via PowerCLI.
 Here is the powercli script to do the reload into vcenter database without having to do the above (simple command)
Connect-VIServer <Vcenter_IP>
(Get-View -ViewType VirtualMachine)  | %{$_.reload()}