Multiple agents on different ports

Posted By Ian Thompson 10/18/2018 4:42:24 AM
Add to Favorites0
Author Message
Ian Thompson
 Posted 10/18/2018 4:42:24 AM
New Member

New Member - (30 reputation)New Member - (30 reputation)New Member - (30 reputation)New Member - (30 reputation)New Member - (30 reputation)New Member - (30 reputation)New Member - (30 reputation)New Member - (30 reputation)New Member - (30 reputation)

Group: Forum Members
Last Active: 10/29/2018 11:02:44 AM
Posts: 1, Visits: 12
30
Hello,
Is it possible to have two agents running, one on port 5000 and one on port 5001.
Here is an example of my agent.cfg:-
Devices = ../simulator/BENNY2.xml
Port = 5001
AllowPut = true
ReconnectInterval = 1000
BufferSize = 17
SchemaVersion = 1.3
Adapters {
BENNY2 {
Host = 127.0.0.1
Port = 7879
}
}

However when I run this agent and connect using the MTConnect simulator I get:-
230079 DEBUG [1] input.connector: Sending a PING for 127.0.0.1 on port 7879

230094 DEBUG [1] input.connector: Received a PONG for 127.0.0.1 on port 7879
230110 DEBUG [1] input.connector: Time since last heartbeat: 9969ms

230079 DEBUG [1] input.connector: Sending a PING for 127.0.0.1 on port 7879
230094 DEBUG [1] input.connector: Received a PONG for 127.0.0.1 on port 7879
230110 DEBUG [1] input.connector: Time since last heartbeat: 9969ms
And then it doesn't connect to my app.


But on port 5000 I get:-
230079 DEBUG [1] input.connector: Sending a PING for 127.0.0.1 on port 7879
230094 DEBUG [1] input.connector: Received a PONG for 127.0.0.1 on port 7879
230110 DEBUG [1] input.connector: Time since last heartbeat: 9969ms
230766 DEBUG [225] agent: Request: GET /current from 127.0.0.1:50247
231797 DEBUG [226] agent: Request: GET /current from 127.0.0.1:50251
232829 DEBUG [227] agent: Request: GET /current from 127.0.0.1:50253
233844 DEBUG [228] agent: Request: GET /current from 127.0.0.1:50254
234875 DEBUG [229] agent: Request: GET /current from 127.0.0.1:50257
235907 DEBUG [230] agent: Request: GET /current from 127.0.0.1:50258
236922 DEBUG [231] agent: Request: GET /current from 127.0.0.1:50259
237969 DEBUG [232] agent: Request: GET /current from 127.0.0.1:50262
239016 DEBUG [233] agent: Request: GET /current from 127.0.0.1:50263

And this works.

Is want I'm trying to do even possible?.
Thanks.
Ian.

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top

Advertisements