ucmdb-Number of cpu in a server - how to get this and store it in an attribute

Hi,

 

I want to knnow the solution for this. How can i get the count of number of cup's in a server and update a field in the server.

 

eg:

 

I have server "A" and it has 8 CPU's with a query tql between server and cpu I can see that there are 8 cpu's (cpu1,cp2....cpu8) i can the count 8 to be updated in the server under attribute "number of cpu's = 8"

 

 

how can i do this?

 

Please help.