Greetings,

 

I am trying to create an associative array of some sort that will be
preserved across EXEC invocations. I thought the best way of doing this
is using the GLOBALV command.

 

I have a list of printers and their IP addresses. For example, printers
A, B, C with IP addresses 198.10.10.10, 198.10.10.11 and 198.10.10.12
respectively.

 

Is it better to do a 

 

GLOBALV SELECT A SETS A 198.10.10.10

GLOBALV SELECT B SETS B 198.10.10.11

GLOBALV SELECT C SETS C 198.10.10.12

 

Or 

 

GLOBALV SELECT PRT SETS A 198.10.10.10

GLOBALV SELECT PRT SETS B 198.10.10.11

GLOBALV SELECT PRT SETS C 198.10.10.12

 

Is it faster to retrieve the IP address of printer X, if it exists, for
example, with the command 'GLOBALV SELECT X GET X' or 'GLOBALV SELECT
PRT GET X'?

 

We are talking about 300 printers. Would it make a difference either
way?

 

Thanks,

 

Mike Horlick

CGI Montreal

Reply via email to