Help for this page

Select Code to Download


  1. or download this
     my $ams_hosts = $request->get_config()->get_ams_hosts($domain);
    
  2. or download this
    print STDERR Dumper @{$ams_hosts};
    
  3. or download this
    $VAR1 = {
              'domainId' => '1',
    ...
              'deviceType' => 3,
              'deviceName' => 'ams_57'
            };
    
  4. or download this
    my %ams_ips_hash = map {$_->{'deviceIp'}++} @{$ams_hosts};
    $ams_ip = "" if !exists $ams_ips_hash{ $ams_ip};