Networker

Re: [Networker] Client version report

2012-11-01 13:52:56
Subject: Re: [Networker] Client version report
From: "Bowersock, Bryan" <Bryan.Bowersock AT AHSS DOT ORG>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Thu, 1 Nov 2012 17:38:44 +0000
Does anyone have a "Windows" version of the script as a batch file or a 
VBScript?  I'm sure I can recreate it using the same logic as the perl script, 
but it would save me some time!  Thanks in advance.


Bryan Bowersock
Storage Administrator
Tampa, FL



-----Original Message-----
From: EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On 
Behalf Of Stanley R. Horwitz
Sent: Thursday, November 01, 2012 1:28 PM
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: Re: [Networker] Client version report

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;
>  }    
> }
>