Changeset 1359
- Timestamp:
- 03/18/08 12:35:42 (5 months ago)
- Files:
-
- honeyclient/trunk/bin/migrate_clients.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
honeyclient/trunk/bin/migrate_clients.pl
r1357 r1359 22 22 my $datastore_path = getVar(name => "datastore_path", namespace => "HoneyClient::Manager::VM"); 23 23 my $snapshot_path = getVar(name => "snapshot_path", namespace => "HoneyClient::Manager::VM"); 24 my $suspicious_path = "/vm/suspicious"; 24 25 25 26 my $clients = HoneyClient::Manager::Database::get_not_deleted_clients($args); … … 41 42 system("vmware-cmd -s unregister " . $datastore_path . "/" . $cid . "/*.cfg"); 42 43 44 $LOG->info("Executing: mv " . $datastore_path . "/" . $cid . " " . $suspicious_path); 45 system("mv " . $datastore_path . "/" . $cid . " " . $suspicious_path); 46 47 $LOG->info("Executing: vmware-cmd -s register " . $suspicious_path . "/" . $cid . "/*.vmx"); 48 system("vmware-cmd -s register " . $suspicious_path . "/" . $cid . "/*.vmx"); 49 50 $LOG->info("Executing: vmware-cmd -s register " . $suspicious_path . "/" . $cid . "/*.cfg"); 51 system("vmware-cmd -s register " . $suspicious_path . "/" . $cid . "/*.cfg"); 52 43 53 #$LOG->info("Executing: cp -Rp " . $old_datastore_path . "/" . $cid . " " . $datastore_path); 44 54 #system("cp -Rp " . $old_datastore_path . "/" . $cid . " " . $datastore_path);
