I have JBOSS installed on my local server, using it's CLI I am able to deploy/undeploy on a different JBOSS using the command below and providing the respective IP,Port etc wherever I want to deploy.
./jboss-cli.sh -c controller=<ip>:<port> --user=<username> --password=<password> --command="deploy <pathToWAR> --server-groups=<virtualservername>"
The above command just works fine.
Now I am trying restart/stop/start using below command
./jboss-cli.sh -c controller=<ip>:<port> --user=<username> --password=<password> --command="reload"
But I get an error as below:
Missing required argument --host