Changeset 769

Show
Ignore:
Timestamp:
07/26/07 14:44:38 (1 year ago)
Author:
kindlund
Message:

Enabled 'master_vm_config' configuration option.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • honeyclient/trunk/bin/StartManager.pl

    r754 r769  
    2727#           'HoneyClient::Agent::Driver::Browser::FF' 
    2828my $driver = "HoneyClient::Agent::Driver::Browser::IE"; 
    29 my $config = "/vm/master-vms/Agent.Master-23/winXPPro.cfg"
    30 my $maxrel = 10
     29my $config = undef
     30my $maxrel = -1
    3131my $nexturl = ""; 
    3232my $urllist= ""; 
     
    6767                        $driver => { 
    6868                            next_link_to_visit => $firsturl, 
    69                             # Enable this line, if you want to only go to the 
    70                             # first 5 links for each domain. 
    7169                            max_relative_links_to_visit => $maxrel, 
    7270                            links_to_visit => \%remaining_urls, 
  • honeyclient/trunk/lib/HoneyClient/Manager.pm

    r763 r769  
    463463    my ($class, %args) = @_; 
    464464    my $agentState = undef; 
     465 
     466    # Sanity check, make sure the master_vm_config has 
     467    # been specified. 
     468    my $argsExist = scalar(%args); 
     469    if (!$argsExist || 
     470        !exists($args{'master_vm_config'}) || 
     471        !defined($args{'master_vm_config'})) { 
     472        # Get the master_vm_config from the configuration file. 
     473        $args{'master_vm_config'} = getVar(name      => "master_vm_config", 
     474                                           namespace => "HoneyClient::Manager::VM"); 
     475    } 
    465476 
    466477    for (;;) {