Hi,
first of all, thank you all for your previous responses and recommendations.
I have a working app in c that uses sockets. Everything is fine.
Networking tells me that i need to use a particular LAN. So when i run my app as stand alone first I set some environment variables for it to run.
add define = tcpip process name , FILE $file
PARAM TCPIP PROCESS NAME $file
Everything works fine.
Now I need to set the app as a pathway serverclass
But when i start it my app is not set to the correct LAN.
Is there a way to tell pathmon to use that particuar lan?
Thank you
On Wednesday, January 27, 2021 at 3:44:33 PM UTC-6, Bill Honaker wrote:
On Wed, 27 Jan 2021 13:24:06 -0800 (PST), Luis Silva <hew...@gmail.com> wrote:
Hi,
first of all, thank you all for your previous responses and recommendations.
I have a working app in c that uses sockets. Everything is fine.
Networking tells me that i need to use a particular LAN. So when i run my app as stand alone first I set some environment variables for it to run.
add define = tcpip process name , FILE $file
PARAM TCPIP PROCESS NAME $file
Everything works fine.
Now I need to set the app as a pathway serverclass
But when i start it my app is not set to the correct LAN.
Is there a way to tell pathmon to use that particuar lan?
Thank youHi, Luis,
First, your exapmles above leave out the necessary caret (^) character, but since it works I'm assumeing that's a transcription issue.
I think the use of both the DEFINE and PARAM are not required. I usually just stick the DEFINE method.
Use the DEFINE serverclass parameter to add the necessary define. Pathmon will start the process with that in it's list of defines. For example:
SET SERVER DEFINE =TCPIP^PROCESS^NAME,CLASS MAP,FILE \SYSNAME.$ZTC0
or
ALTER SERVER srvname, DEFINE =TCPIP^PROCESS^NAME,CLASS MAP,FILE \SYSNAME.$ZTC0
Note that this method works whether the server class is PROCESSTYPE GUARDIAN or PROCESSTYPE OSS.
Good luck!Hi,
Bill
I set it without the /sysname
SET SERVER DEFINE =TCPIP^PROCESS^NAME,CLASS MAP,FILE $ZTC3
is this ok?
info server myserver
doesnt show this param, how can i verify it is configured correctly. Beyond testing it =)
On Wed, 27 Jan 2021 13:24:06 -0800 (PST), Luis Silva <hew...@gmail.com> wrote:
Hi,
first of all, thank you all for your previous responses and recommendations.
I have a working app in c that uses sockets. Everything is fine.
Networking tells me that i need to use a particular LAN. So when i run my app as stand alone first I set some environment variables for it to run.
add define = tcpip process name , FILE $file
PARAM TCPIP PROCESS NAME $file
Everything works fine.
Now I need to set the app as a pathway serverclass
But when i start it my app is not set to the correct LAN.
Is there a way to tell pathmon to use that particuar lan?
Thank youHi, Luis,
First, your exapmles above leave out the necessary caret (^) character, but since it works I'm assumeing that's a transcription issue.
I think the use of both the DEFINE and PARAM are not required. I usually just stick the DEFINE method.
Use the DEFINE serverclass parameter to add the necessary define. Pathmon will start the process with that in it's list of defines. For example:
SET SERVER DEFINE =TCPIP^PROCESS^NAME,CLASS MAP,FILE \SYSNAME.$ZTC0
or
ALTER SERVER srvname, DEFINE =TCPIP^PROCESS^NAME,CLASS MAP,FILE \SYSNAME.$ZTC0
Note that this method works whether the server class is PROCESSTYPE GUARDIAN or PROCESSTYPE OSS.
Good luck!
Bill
On Wednesday, January 27, 2021 at 5:48:08 PM UTC-6, Luis Silva wrote:
On Wednesday, January 27, 2021 at 3:44:33 PM UTC-6, Bill Honaker wrote:
On Wed, 27 Jan 2021 13:24:06 -0800 (PST), Luis Silva <hew...@gmail.com> wrote:Hi,
Hi,Hi, Luis,
first of all, thank you all for your previous responses and recommendations.
I have a working app in c that uses sockets. Everything is fine.
Networking tells me that i need to use a particular LAN. So when i run my app as stand alone first I set some environment variables for it to run.
add define = tcpip process name , FILE $file
PARAM TCPIP PROCESS NAME $file
Everything works fine.
Now I need to set the app as a pathway serverclass
But when i start it my app is not set to the correct LAN.
Is there a way to tell pathmon to use that particuar lan?
Thank you
First, your exapmles above leave out the necessary caret (^) character, but since it works I'm assumeing that's a transcription issue.
I think the use of both the DEFINE and PARAM are not required. I usually just stick the DEFINE method.
Use the DEFINE serverclass parameter to add the necessary define. Pathmon will start the process with that in it's list of defines. For example:
SET SERVER DEFINE =TCPIP^PROCESS^NAME,CLASS MAP,FILE \SYSNAME.$ZTC0
or
ALTER SERVER srvname, DEFINE =TCPIP^PROCESS^NAME,CLASS MAP,FILE \SYSNAME.$ZTC0
Note that this method works whether the server class is PROCESSTYPE GUARDIAN or PROCESSTYPE OSS.
Good luck!
Bill
I set it without the /sysname
SET SERVER DEFINE =TCPIP^PROCESS^NAME,CLASS MAP,FILE $ZTC3
is this ok?
info server myserver
doesnt show this param, how can i verify it is configured correctly. Beyond testing it =)
Never mind,
used Alter and now it shows in info server
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 285 |
Nodes: | 16 (2 / 14) |
Uptime: | 72:29:28 |
Calls: | 6,489 |
Calls today: | 2 |
Files: | 12,096 |
Messages: | 5,275,731 |