When shutdown.sh command is ran with no arguments for an agent that is using any ports other than 1099. As a results, the command does not shutdown the agent.
This is due to the fact that the "shutdown.sh" command by default uses port 1099 to shutdown the agent. If this port has been changed it needs to be passed through the shutdown command.
The standard shutdown.sh script uses port 1099. If some other port is used the new port number needs to be passed through the command:
"shutdown -s <the hostname of this agent machine OR Localhost>:<port number>"
i.e. shutdown.sh -s <agent-hostname or Localhost>:1099 ---> this is for ports-default
i.e shutdown.sh -s <agent-hostname or Localhost>:1199 ---> this is for ports-01
NOTE: The "s" in above command is lower case