How to enable connect x2e Web Interface via ssh command-line

How to enable connect x2e Web Interface via ssh command-line?

This is not possible from the CLI. You may however be able to activate this from the Device Cloud (if connected), or Python/RCI.

Could you please give me the example for Python/RCI script.

The following lines require manual changes

username = "YourUsername" # enter your username
password = “YourPassword” # enter your password

This example establishes a https connection, but doesn’t provide the server certificate validation.

Production code should implement certificate validation.

-------------------------------------------------

import httplib
import base64

create HTTP basic authentication string, this consists of

“username:password” base64 encoded

auth = base64.encodestring(“%s:%s”%(username,password))[:-1]

message to send to server

message = “”"

  on
  80

“”"
webservice = httplib.HTTPSConnection(“devicecloud.digi.com”)

to what URL to send the request with a given HTTP method

webservice.putrequest(“POST”, “/ws/sci”)

add the authorization string into the HTTP header

webservice.putheader(“Authorization”, “Basic %s”%auth)

webservice.putheader(“Content-type”, “text/xml”)
webservice.putheader(“Content-length”, “%d” % len(message))
webservice.putheader(“Accept”, “text/xml”);
webservice.endheaders()
webservice.send(message)

get the response

response = webservice.getresponse()
statuscode = response.status
statusmessage = response.reason
response_body = response.read()

print the output to standard out

print (statuscode, statusmessage)
print response_body