Discussion:
TACL pathway server class and LAN issue
(too old to reply)
Luis Silva
2021-01-27 21:24:06 UTC
Permalink
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
Bill Honaker
2021-01-27 21:44:29 UTC
Permalink
Post by Luis Silva
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
Hi, 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
Luis Silva
2021-01-27 22:14:08 UTC
Permalink
Thank you, I'll try with it and let you know.
Luis Silva
2021-01-27 23:48:07 UTC
Permalink
Post by Bill Honaker
Post by Luis Silva
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
Hi, 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.
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
Hi,

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 =)
Luis Silva
2021-01-28 00:00:47 UTC
Permalink
Post by Luis Silva
Post by Bill Honaker
Post by Luis Silva
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
Hi, 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.
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
Hi,
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
Bill Honaker
2021-01-28 01:27:30 UTC
Permalink
Post by Luis Silva
Post by Luis Silva
Post by Bill Honaker
Post by Luis Silva
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
Hi, 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.
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
Hi,
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
Just like 'ASSIGN, the system name defaults to the current system.
Loading...