Say you have an old version of GlassFish installed on a remote host. You want to upgrade the bits to the latest version.
You run "asadmin install-node-ssh ...."
Nothing is done but it reports success.
Why? There is a test:
if (checkIfAlreadyInstalled(host, sshInstallDir))
– it checks if "asadmin version" runs successfully. If so it silently returns without doing anything. No warning either. It is officially a success.
Report an ERROR – the node is already installed. Tell user to run uninstall-node first.