Networker

[Networker] mminfo weirdness

2009-02-11 01:49:35
Subject: [Networker] mminfo weirdness
From: Peter Hand <Peter.Hand AT NT.GOV DOT AU>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Wed, 11 Feb 2009 16:11:07 +0930
Hi All,
        We've been using scripts to generate billing information on the
quantity of data our clients have in our Networker system. After a
frustrating hour where all my test scripts started returning numbers
double what I was expecting I came across the following oddness:

Total for all valid (non-recyclable) savesets remaining for client (name
changed to protect the innocent)
$ mminfo -a -q 'client=server1,!ssrecycle' -r totalsize |
/nsr/scripts/_addNumbers.pl
4568979531500

And total for all savesets expiring after now.
$ mminfo -a -q 'client=server1,ssretent>now' -r totalsize |
/nsr/scripts/_addNumbers.pl
8726515876876

And for completeness, there are no non-recyclable, expired savesets, or
recyclable savesets with retention times in the future.

$ mminfo -a -q 'client=server1,!ssrecycle,ssretent<=now' -r totalsize |
/nsr/scripts/_addNumbers.pl
mminfo: no matches found for the query
$ mminfo -a -q 'client=server1,ssrecycle,ssretent>now' -r totalsize |
/nsr/scripts/_addNumbers.pl
mminfo: no matches found for the query

Further investigation showed the query using ssretent is picking up the
savesets and clones, where the one using ssrecycle only returns the
primary savesets, and not the clones.

So my question is, why ? What is the difference between the 2 queries ?

We're using Networker 7.3.3 on a Solaris box.

In case anyone is questioning the perl (_addnumbers.pl), here it is:

#!/usr/bin/perl -w

use Math::BigInt;
use strict;

my $number = new Math::BigInt();
while (<>) {
  my $tmp = new Math::BigInt($_);
  $number->badd( $tmp );
}

Cheers,   Pete.
--
  Technical Team Lead: Unix
  DCS Midrange Services
  Phone: +61 (08) 8999 5111
  Fax: +61 (08) 8999 7493               Email requests to:
dcs_service AT nt.gov DOT au
  e-Mail: peter.hand AT nt.gov DOT au            or at
http://datacentre.nt.gov.au/
 

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the body of the email. Please write to 
networker-request AT listserv.temple DOT edu if you have any problems with this 
list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

<Prev in Thread] Current Thread [Next in Thread>