Changeset 1252
- Timestamp:
- 02/22/08 15:13:25 (7 months ago)
- Files:
-
- honeyclient/trunk/bin/cleanup_broken_clients.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
honeyclient/trunk/bin/cleanup_broken_clients.pl
r1251 r1252 23 23 my $clients = HoneyClient::Manager::Database::get_broken_clients($args); 24 24 25 #my ($cid, $id);26 25 while (my ($cid, $id) = each %{$clients}) { 27 26 28 27 $LOG->info("Deleting VM (" . $cid . ")"); 29 28 30 print "Executing: vmware-cmd -s unregister " . $datastore_path . "/" . $cid . "/*.vmx\n";29 $LOG->info("Executing: vmware-cmd -s unregister " . $datastore_path . "/" . $cid . "/*.vmx"); 31 30 system("vmware-cmd -s unregister " . $datastore_path . "/" . $cid . "/*.vmx"); 32 31 33 print "Executing: vmware-cmd -s unregister " . $datastore_path . "/" . $cid . "/*.cfg\n";32 $LOG->info("Executing: vmware-cmd -s unregister " . $datastore_path . "/" . $cid . "/*.cfg"); 34 33 system("vmware-cmd -s unregister " . $datastore_path . "/" . $cid . "/*.cfg"); 35 34 36 print "Executing: rm -rf " . $datastore_path . "/" . $cid . "\n";35 $LOG->info("Executing: rm -rf " . $datastore_path . "/" . $cid); 37 36 system("rm -rf " . $datastore_path . "/" . $cid); 38 37 39 print "Executing: rm -f " . $snapshot_path . "/" . $cid . "*\n";38 $LOG->info("Executing: rm -f " . $snapshot_path . "/" . $cid . "*"); 40 39 system("rm -f " . $snapshot_path . "/" . $cid . "*"); 41 40
