I have used the following PERL:

#!/usr/bin/perl

$| = 1;

$bpclclients = "/usr/openv/netbackup/bin/admincmd/bpclclients";
$bpgetconfig = "/usr/openv/netbackup/bin/admincmd/bpgetconfig -M";

###
### GET THE HOSTS TO CHECK:
@hosts = `$bpclclients | awk '{print \$3}'`;

###
### Run check loop on 'HOSTS TO CHECK'
foreach $host (@hosts)
{
   chomp($host);

  ## Run getconfig
  $version = `$bpgetconfig $host | grep -i version | grep -v VERSIONINFO |  awk -F= '{print \$2}'`;
  chomp($version);

  ## PRINT TO LOG and STDOUT:
  print "Host: $host :: Version: $version\n";
  open(LOG, ">>bkup_hosts.log");
  print LOG "Host: $host :: Version: $version\n";
  close LOG;
}
#===============================================================================


HTH

--Chris



Is there anyway, short of logging into 400 machines to see which MP level I am running on a particular client?



Reply via email to