How to change RTI Agent's port

Dedicated to DataStage and DataStage TX editions featuring IBM<sup>®</sup> Service-Oriented Architectures.

Moderators: chulett, rschirm

Post Reply
aakashahuja
Premium Member
Premium Member
Posts: 210
Joined: Wed Feb 16, 2005 7:17 am

How to change RTI Agent's port

Post by aakashahuja »

Hi,

Can any one guide me as to how can I change the port number of RTI agent.

I tried to stop the RTI agent, then change the config file and set the agent.Port to a new value, restarted the agent. After that when I did a netstat i still found tha RTI runs on the original port.

Where am I going wrong?

Cheers
Aakash
L'arrêt essayant d'être parfait… évoluons.
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

The RTIAgent is still using its default, 2000? Ensure that it's no longer listening on that port after you stop it...just to be able to confirm things....and be sure also to check the port you are thinking of using before you try to re-start the agent (just in case something else has it). ...and be sure you change the right file....... I thought it was in the classes subdirectory under RTI agent, but it might be in the root of the RTIAgent..can't remember off hand and don't have a system to immediately check, but either way it's just a text file and there are only a few files in each....should be easy to find.

It's not easy to do, but also check to see if you have multiple RTIAgents......

and be sure we're talking about the RTIAgent co-resident with DataStage, and not the RTI Server.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

./Ascential/RTIAgent/configuration.properties

Code: Select all

#Configuration parameters
#Fri Mar 17 17:12:03 MST 2006
agent.TX_classpath=
agent.ObjectPort=
agent.Port=2000
agent.TX_port=2500
agent.Use_DS=Y
agent.TX_jvmopts=
agent.TX_libpath=
agent.Use_TX=N
agent.TX_map_dir=maps
agent.TX_ping=15000
agent.TX_host=localhost
agent.TX_parameters=
./Ascential/RTIAgent/classes/rtiagent.properties

Code: Select all

# RTIAgent configuration file
# This file should not be modified manually
# Use the RTIAgent configuration program instead

rtiagent.port=2000
rtiagent.objectport=
tx.enabled=false
jre.home=/opt/datastage/Ascential/RTIAgent/jre

# Handler configuration
handler.0.type=Server
handler.0.class=com.ascentialsoftware.rti.agent.handler.datastage.DataStageHandler
handler.1.type=PX
handler.1.class=com.ascentialsoftware.rti.agent.handler.datastage.DataStageHandler
handler.2.type=Echo
handler.2.class=com.ascentialsoftware.rti.agent.handler.echo.EchoHandler
handler.count=3

# Query configuration
query.0.type=Server
query.0.class=com.ascentialsoftware.rti.agent.query.datastage.DataStageQuery
query.1.type=PX
query.1.class=com.ascentialsoftware.rti.agent.query.datastage.PXQuery
query.count=2

# Task configuration
task.count=0
-craig

"You can never have too many knives" -- Logan Nine Fingers
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

Bingo. Thanks Craig. That's it....the top one, as I recall, is a reflection of the choices made using the tool..... but either way, check 'em all....this should work fine, provided the RTI Agent is first stopped successfully and no one is using the port you choose.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
Post Reply