This issue occurs when IPv6 is disabled on the host, but there is an IPv6 localhost entry in the /etc/hosts file. The cim-diagnostic.sh and swfw.sh scripts invoke the enum_instances command which by default tries to connect to the localhost over IPv6 when the hosts file contains an IPv6 localhost address. Because IPv6 is disabled, the connection and the calling script fails.