Anyone have a script or can help with creating a jython script that can call and execute a particular URL.
The URL is of the following form, where hostname and port (WCInboundDefault) would be relative to the environment being run (thus unknown element) and the remaining part is known (i.e, /content/cache.jsp?action=
The script would also need to run on all servers in cell/cluster, so establishing how many JVMs there are is also a requirement (I am thinking perhaps a count = len(...) but not sure
Also, I think I know how to write jython to output the hostname (from bootstrap address or import sys, socket -> host = socket.gethostname()) and the port (from the endpoints/serverEntry) but how would I extract the relevant host/port values and construct the URL below https://
Finally, I am trying to open/execute the URL by using (import urllib) but having trouble.