diff --git a/mxstartup2mxconfig b/mxstartup2mxconfig index 28c1505..b1b2010 100755 --- a/mxstartup2mxconfig +++ b/mxstartup2mxconfig @@ -248,6 +248,11 @@ sub print_ips_cfg { ############################################################################## +sub hostconfig_list { + my $tag = shift; + $_=`/usr/sbin/hostconfig --list $tag 2>/dev/null`; + return ( split ); +} sub expand_hosts { @@ -256,7 +261,10 @@ sub expand_hosts { foreach my $host (@oh) { - if ($host =~ /^(\/\S+)/) { + if($host =~ /^\@(\S+)/) { + push @hosts, hostconfig_list($1); + } + elsif ($host =~ /^(\/\S+)/) { next unless(-r $1); push @hosts, expand_hosts(read_file($1)); } else {