Networker

Re: [Networker] Client version report

2012-11-01 13:39:33
Subject: Re: [Networker] Client version report
From: "Stanley R. Horwitz" <stan AT TEMPLE DOT EDU>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Thu, 1 Nov 2012 17:28:19 +0000
Thanks Yaron and everyone else who responded. I decided to go with this 
scripted approach and it works perfectly.

On 11 1, 2012, at 11:47 AM, Yaron Zabary wrote:

> On 11/01/2012 02:51 PM, Stanley R. Horwitz wrote:
>> Greetings everyone,
>> 
>> Via the NetWorker Console Manager, I can get a list of every active client 
>> and the NetWorker version each client is running. Does anyone know of a way 
>> to export that list into a csv file or an alternative way to generate that 
>> list? I do not see a way to get it via mminfo. I am sure there's a way to 
>> generate such a list via nsradmin, but I have always been clumsy with using 
>> it for generating reports. Any suggestions will be appreciated.
>> 
> 
>  That is my perl script:
> 
> #!/usr/bin/perl
> 
> my $s;
> 
> $/ = "\n\n";
> 
> open(NSRRES,"cat /nsr/res/nsrdb/*/* |");
> 
> while (defined($resource = <NSRRES>))
> {
>  if ($resource =~ /type: NSR client;/ )
>  {
>    $start = index($resource,"name: ");
>    $name = substr($resource,$start + 6,index($resource,";",$start) -$start - 
> 6 );
>    $start = index($resource,"NetWorker version:");
>    $version = substr($resource,$start + 18,index($resource,";",$start) 
> -$start - 17);
>    printf  "%-40s %s \n",$name,$version;
>  }    
> }
>