Table of Contents

How to execute a Python script on a remote server during data export in N4V for Webi

Anonymised summary of support ticket #358528 (2025-09-02)

Symptom

The user wants to execute a Python script on a dedicated server during the data export process in N4V for Webi (Data Analyzer).

Environment

N4V for Webi (Data Analyzer) with Tomcat hosting the JSP pages. Python script available on a remote server.

Resolution

  1. Option 1: Modify the JSP page hosted on Tomcat to call the Python script remotely via:
  2. - An exposed API endpoint (HTTP GET/POST using HttpURLConnection in the JSP), or
  3. - SSH command execution (configure Tomcat for SSH access with a private key, then execute the Python script via SSH in the JSP).
  4. Option 2: Move the JSP page to the remote server (if it hosts a Tomcat instance) and call it directly from N4V for Webi.