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