Hi dgrehan,
I got it working without the shutdown Perl script!
After removing the Run Command from Shutdown Settings, enabling debug logging in log4j.xml, restarting PCNS and restarting the APC trough the NMC the following catches my eye in error.log:
...
DEBUG pool-2-thread-3 com.apcc.pcns.configservice.configurationmanagers.ConfigurationManagerImpl - containsKey(String,String) - Section: NetworkManagementCard, Key: mode, Value: true
DEBUG pool-2-thread-3 com.apcc.pcns.configservice.configurationmanagers.ConfigurationManagerImpl - getString(String,String) - Section: NetworkManagementCard, Key: mode, Value: single
DEBUG pool-2-thread-3 com.apcc.m11.components.Shutdowner.CheckIfCriticalEventActive - processCriticalEventExceptClusterMode
DEBUG pool-2-thread-3 com.apcc.pcns.configservice.configurationmanagers.ConfigurationManagerImpl - containsKey(String,String) - Section: HostDetails, Key: ESXiConfigurationMode, Value: true
DEBUG pool-2-thread-3 com.apcc.pcns.configservice.configurationmanagers.ConfigurationManagerImpl - getString(String,String) - Section: HostDetails, Key: ESXiConfigurationMode, Value: Standalone Host.
DEBUG pool-2-thread-3 com.apcc.pcns.configservice.configurationmanagers.ConfigurationManagerImpl - containsKey(String,String) - Section: HostDetails, Key: ESXiConfigurationMode, Value: true
DEBUG pool-2-thread-3 com.apcc.pcns.configservice.configurationmanagers.ConfigurationManagerImpl - getString(String,String) - Section: HostDetails, Key: ESXiConfigurationMode, Value: Standalone Host.
DEBUG pool-2-thread-3 com.apcc.m11.components.WebServer.CfgWizard.pages.VCenterServerConnection - Checking ESXi service instance session is valid or not
DEBUG pool-2-thread-3 com.apcc.m11.components.WebServer.CfgWizard.pages.VCenterServerConnection - ESXi Service instance session is valid
DEBUG pool-2-thread-3 com.apcc.pcns.configservice.configurationmanagers.ConfigurationManagerImpl - containsKey(String,String) - Section: HostDetails, Key: ESXi_IP, Value: true
DEBUG pool-2-thread-3 com.apcc.pcns.configservice.configurationmanagers.ConfigurationManagerImpl - getString(String,String) - Section: HostDetails, Key: ESXi_IP, Value: esxi.fully.qualified.domainname
DEBUG pool-2-thread-3 com.apcc.m11.components.WebServer.util.VirtualizationUtils - getHostUsingIPOrDNSName - Host IP - esxi.fully.qualified.domainname
DEBUG pool-1-thread-13 com.apcc.pcns.configservice.configurationmanagers.ConfigurationManagerImpl - getString(String,String) - Section: Networking, Key: NetworkConfig, Value: IPV4
DEBUG pool-1-thread-13 com.apcc.pcns.configservice.configurationmanagers.ConfigurationManagerImpl - getString(String,String) - Section: Networking, Key: IPv6NetworkConfig, Value: unicast
DEBUG pool-1-thread-5 com.apcc.m11.components.StdPowerSource.BroadcastReceiver - Received Data:
INFO pool-1-thread-5 com.apcc.m11.components.StdPowerSource.SecureHttpTransportAdapter - StdPowerSource: GET VERIFICATION PASSED
INFO pool-1-thread-5 com.apcc.m11.components.StdPowerSource.BroadcastReceiver - packet_target :vma.networks.broadcast.ip
DEBUG pool-1-thread-5 com.apcc.m11.components.StdPowerSource.BroadcastReceiver - Checking if vma.networks.broadcast.ip is a valid localhost address.
DEBUG pool-1-thread-5 com.apcc.m11.components.StdPowerSource.BroadcastReceiver - returning existing theLocalIpSet
DEBUG pool-1-thread-5 com.apcc.m11.components.StdPowerSource.BroadcastReceiver - vma.networks.broadcast.ip does not match vma.ip.v4.address
DEBUG pool-1-thread-5 com.apcc.m11.components.StdPowerSource.BroadcastReceiver - vma.networks.broadcast.ip is not a valid localhost address.
...
The ESXi_IP was set to the ESXi hosts fully qualified domain name, this FQDN is resolvable by the vMA and pointing to the ESXi hosts IP address of course.
Now, after changing the FQDN to the actual IP address of the ESXi host under vma -> Communication Details -> ESXi Host Details -> VMware Host IP Address/Hostname (changing ESXi_IP to esxi.ip.v4.address in pcnsconfig.ini) the shutdown is working as intended.
No more "Find entity by IP/DNS" gets logged in the vSphere Client and the host gets shutdown after gracefully shutting down the configured VMs.
I dunno what PCNS is really trying to do here, even true the network in question is considering of multiple Subnets all relevant equipment - ESXi/vMA/NMC - are on the exact same Subnet and thus a broadcast shouldn't even be necessary.
Regards
defkev