I'm trying to use the MobileFirst Command Line Interface (7.1) to deploy to a remote MobileFirst 7.1 server.
This server is hosted at http://1.2.3.4:9080/
, and the console and admin services are available at the default URLs http://1.2.3.4:9080/worklightconsole
and http://1.2.3.4:9080/worklightadmin
. I already have the project .war
deployed, and have verified this through the admin console (where everything looks normal). I've also verified from my browser that the admin services are reachable. Username and password are the defaults of admin/admin
.
I've tried adding a server profile with the command:
/Applications/IBM/MobileFirst-CLI-7.1/mfp server add myserveralias --url http://1.2.3.4:9080 --login admin --password admin
However, this keeps failing with:
Couldn't connect to server 'myserveralias' at 'http://1.2.3.4:9080'.
failed to retrieve runtime information: Unexpected token <: HTTP 404 - Not Found
Server profile 'myserveralias' added successfully.
(I think the "successfully" message is wrong.)
I've tried adding --contextroot /worklightadmin
(which I think is the default anyway) and this doesn't seem to make a difference.
There are no proxies or firewalls between the host being used and the MFP CLI.
What am I doing wrong?