Changeset 339 for branches/stable


Ignore:
Timestamp:
05/24/06 10:45:42 (18 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Addons, fixes, and minor updates for consistency-check.pl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/cgi-bin/consistency-check.pl

    r213 r339  
    224224        if $data[2] ne $def_custids{$data[1]};
    225225}
    226 
    227 print "Done CustID correctness check.\n";
     226print "Done predefined CustID correctness check.\n\n";
     227
     228print "Checking for customer blocks with 'bad' CustIDs:\n";
     229# Make sure cn-type ("customer netblock") blocks have "real" CustIDs.
     230$sth = $dbh->prepare("select cidr,type,custid from allocations where type='cn' and (custid='6750400' or custid='STAFF') order by cidr");
     231$sth->execute;
     232while (@data = $sth->fetchrow_array) {
     233  print "cn block $data[0] has incorrect CustID $data[2]\n";
     234}
     235print "Done checking customer blocks\n";
Note: See TracChangeset for help on using the changeset viewer.