Privacy and Security Notice
Archived Messages for CDEV_1997@cebaf.gov: RE: CA and EPICS_CA_ADDR_LIST
RE: CA and EPICS_CA_ADDR_LIST
Noboru Yamamoto (yamamoto@acsad1.kek.jp)
Tue, 03 Jun 1997 14:02:00 +0900
Hi,
Elliott wrote:
>Hi,
>
>I do:
>
>setenv EPICS_CA_ADDR_LIST "129.57.160.18 129.57.160.19 129.57.160.15
>129.57.160.16 129.57.236.69 129.57.236.67 129.57.236.111"
>
>I need to get things from all these IOC's, and will soon have to add
>more. I am not on the subnet for any of them.
>
>It seems like the 2nd half of the addr list is ignored. I.e. I can
>read from IOC's up to 129.57.160.16 (I think), but not from the rest
>of the list. If I move an address from the end to the beginning, I
>can read from that IOC, but lose one down the line.
>
>It looks like there's a character limit on EPICS_CA_ADDR_LIST. If so,
>can it be increased dramatically?
>
>Is it possible to specify a subnet mask, as many addresses are on the
>same subnet?
>
>I have no way around this...I must read channels from all these IOC's
>on our online computer (clon00) at the beginning of each Hall B run.
>Our run starts next week....
>
> Sincerely,
> Elliott Wolin
>
I changed the definition of "struct envParm" in devnDefs.h file from:
typedef struct envParam {
char *name; /* text name of the parameter */
char dflt[80]; /* default value for the parameter */
} ENV_PARAM;
to:
#define ENV_PARAM_DFLT_SIZE 512
typedef struct envParam {
char *name; /* text name of the parameter */
char dflt[ENV_PARAM_DFLT_SIZE]; /* default value for the
parame\
ter */
} ENV_PARAM;
and also changes three lines of
char text[80];
in envSubr.c to
char text[ENV_PARAM_DFLT_SIZE];
So that you can use a longer EPICS_CA_ADDR_LIS env. var.
Pleas note that some shell program has limitation on the length of env.var,
smaller than 512.
Noboru Yammoto
KEK, Acc. Dept.
JAPAN