public LIST disa-notes - test - benchmark #!/usr/bin/perl use Benchmark; #builtin module # declare array my @data; # start timer $start = new Benchmark; # perform a math operation 200000 times for ($x=0; $x<=200000; $x++) { $data[$x] = $x/($x+2); } # end timer $end = new Benchmark; # calculate difference $diff = timediff($end, $start); # report print "Time taken was ", timestr($diff, 'all'), " seconds"; #http://articles.techrepublic.com.com/5100-10878_11-5278558.html - modify XML example Jim: host.87 1024 1 500 host.87 NOOP 2 NOOP host.87 1 current: modify 1 proc, 1024 mem, 0 optional to 2 procs, 4096 mem, 50 optional /opt/moab/tools/get.cart.xml.hpoo.pl UID=174 RACE2-HV1 ARMY_NOFP2A_host_704 4096 2 50 - unprovision XML example Jim: host.87 Current: /opt/moab/tools/get.cart.xml.hpoo.pl UID=175 vpc.62 RACE2-HV1 ARMY_NOFP2A_host_704 RACE2-HV2 ARMY_NOFP2A_host_705 RACE2-HV3 ARMY_NOFP2A_host_706 - provision XML example dev host.85 host.85 caesars 20 1024 1 root@aladdin.lab.augustschell.com 23 RhelAS4u6x86Stig 0 172.30.1.132 @vmguest-id@ @os_sequence@ @datastore@ @datacenter@ MGMT 1 Provisioning Network 172.30.36.3 172.30.255.255 16 172.30.0.1 172.30.0.0 GP1 VM Network 0 10.0.36.2 10.0.36.255 24 10.0.36.1 10.0.36.0 GP2 VM Network 0 10.0.136.2 10.0.136.255 24 10.0.136.1 10.0.136.0 host.86 caesars - invalid XML type host.88 caesars - todos changeSecurityZone send correct zone to HPOO add VLAN users - mock up XML, create scripts