GMU not using proxy environment variables.
search cancel

GMU not using proxy environment variables.

book

Article ID: 204552

calendar_today

Updated On:

Products

CA API Gateway API SECURITY CA API Gateway Precision API Monitoring Module for API Gateway (Layer 7) CA API Gateway Enterprise Service Manager (Layer 7) STARTER PACK-7 CA Microgateway

Issue/Introduction

We are using Restman and GMU to migrate to/from nodes in in-accessible networks. We are using the http_proxy and https_proxy environment variables and restman adheres to the proxy, but GMU seems to be trying to route directly.
How can we use GMU through a proxy?

Environment

Release : 10.0

Component : API GATEWAY

Resolution

What you do is to set the proxy option on the start of the JRE

java -Dhttp.proxyHost=10.10.10.10 -Dhttp.proxyPort=8080 -Dhttp.proxyUser=username -Dhttp.proxyPassword=password -jar myJar.jar

Edit the gatewaymigration.bat and add the proxy  to the line :

"%JAVA_TO_USE%" -Dfile.encoding=UTF-8 -DGMU_HOME="%jarDir%." -jar "%jarDir%GatewayMigrationUtility.jar" %ARGS%

Like

"%JAVA_TO_USE%" -Dfile.encoding=UTF-8 -DGMU_HOME="%jarDir%."  -Dhttp.proxyHost=10.10.10.10 -Dhttp.proxyPort=8080 -Dhttp.proxyUser=username -Dhttp.proxyPassword=password  -jar "%jarDir%GatewayMigrationUtility.jar" %ARGS%