SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
CPU Count in JAL

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
CPU Count in JAL
Author Message
Duncan



Joined: 22 Jan 2004
Posts: 13

Post CPU Count in JAL Reply with quote

Is there a method in JAL to count the number of CPU's on a machine?

We're executing a program from a 24x7 job and run BindCPU to bind it to all CPU's on a machine. We now want to use Remote Agents and we might not know the CPU count of the machine it's going to execute on before it actually executes.

Therefore I want to write some JAL script that can work out the correct CPU mask for BindCPU but I can't find a JAL method to count them.

Thanks in advance.

Duncan

Wed Mar 22, 2006 12:10 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7963

Post Re: CPU Count in JAL Reply with quote

You can read it from the registry
HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\...

Use the RegitryList to get all subkeys and then Right to the last number in the returned list

: Is there a method in JAL to count the number of CPU's on a machine?

: We're executing a program from a 24x7 job and run BindCPU to bind it to all
: CPU's on a machine. We now want to use Remote Agents and we might not know
: the CPU count of the machine it's going to execute on before it actually
: executes.

: Therefore I want to write some JAL script that can work out the correct CPU
: mask for BindCPU but I can't find a JAL method to count them.

: Thanks in advance.

: Duncan

Wed Mar 22, 2006 1:29 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.