Hello guys,

I am trying to create a Perl script which will give me some details about 
my nodes.

I have added some formatting as shown on the website 
https://docs.puppetlabs.com/mcollective/reference/ui/nodereports.html , 
however, I can't seem to get the loop working. What I am trying to do is: 
lets say I've got 2 processors with 4 cores each so I want to loop the 2 of 
them and display the speed of the cores, but when I am doing so seems that 
Perl doesn't like it.

Could some one please tell me how should I do it? 

This is the code I've got so far:

$procs =  facts["physicalprocessorcount"]

for ($i = 1; $i < $procs; $i++) {

@
$procs
@
}


Thank you,

Regards,
Sergiu
 

-- 


This message and its attachments are private and confidential. If you have 
received this message in error, please notify the sender and remove it and 
its attachments from your system.

The University of Westminster is a charity and a company 
limited by guarantee. Registration number: 977818 England. 
Registered Office: 309 Regent Street, London W1B 2UW.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/fbb7c5b5-4ac0-4925-a84f-a185ed64dd38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to