IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32097


Ignore:
Timestamp:
Aug 15, 2011, 2:44:36 PM (15 years ago)
Author:
rhenders
Message:

changed nebulous command and regex necessary to get full host name (ipp037.0 rather than ipp037)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/czartool/czartool/Nebulous.pm

    r32093 r32097  
    8989    my ($self) = @_;
    9090
    91     my @cmdOut = `neb-df`;
     91    my @cmdOut = `neb-df --names`;
    9292    my $line;
    9393    $self->{_totalHosts} = 0;
     
    110110            next;
    111111        }
    112         elsif (($line =~ m/(ipp[0-9]+)\s.+[0-9]+\s+([0-9]+)\s+([0-9]+)\s+([0-9]+)%.*/i)||
    113                ($line =~ m/(ippb[0-9]+)\s.+[0-9]+\s+([0-9]+)\s+([0-9]+)\s+([0-9]+)%.*/i)) {
     112        elsif (($line =~ m/(ipp[0-9]+\.[0-9]{1})\s.+[0-9]+\s+([0-9]+)\s+([0-9]+)\s+([0-9]+)%.*/i)||
     113               ($line =~ m/(ippb[0-9]+\.[0-9]{1})\s.+[0-9]+\s+([0-9]+)\s+([0-9]+)\s+([0-9]+)%.*/i)) {
    114114       
    115115            $self->{_totalHosts}++;
     
    149149
    150150        chomp($line);
    151         if ($line =~ m/$host\s+[0-9.A-Za-z]+\s+([01]+)\s+([01]+)\s+([01]+)\s+.*/i) {
     151        if ($line =~ m/[0-9.A-Za-z]+\s+$host\s+([01]+)\s+([01]+)\s+([01]+)\s+.*/i) {
    152152
    153153            # if mounted...
Note: See TracChangeset for help on using the changeset viewer.