Changeset 142

Show
Ignore:
Timestamp:
05/16/06 12:53:53 (3 years ago)
Author:
ludo
Message:

v0.9.4: try net lookup before nmblookup (from r3423)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/webmin/lbs-vnc/debian/changelog

    r136 r142  
    1 webmin-lbs-vnc (0.9.3) stable; urgency=low 
     1webmin-lbs-vnc (0.9.4) stable; urgency=low 
    22 
    33  * New release. 
  • trunk/webmin/lbs-vnc/index.cgi

    r137 r142  
    119119  } 
    120120 
     121  # and net lookup  
     122  $ret = exec("sh -c \"/usr/bin/net cache flush;/usr/bin/net lookup host ".escapeshellcmd($name)." 2>&1\""); 
     123  preg_match("/^(\d+\.\d+\.\d+\.\d+)/", $ret, $match); 
     124  $ip = $match[1];  
     125  if ($ip != "") { 
     126      scanRunVNC($ip, $type, $ssh);      
     127      $ips .= " ".$ip; 
     128  } 
     129 
    121130  # and nmblookup  
    122131  $ret = exec("/usr/bin/nmblookup $name 2>&1"); 
     
    128137  } 
    129138 
    130   # and net lookup  
    131   $ret = exec("/usr/bin/net lookup host $name 2>&1"); 
    132   preg_match("/^(\d+\.\d+\.\d+\.\d+)/", $ret, $match); 
    133   $ip = $match[1];  
    134   if ($ip != "") { 
    135       scanRunVNC($ip, $type, $ssh);      
    136       $ips .= " ".$ip; 
    137   } 
    138139   
    139140  # Last try: find info from OCS Inventory 
  • trunk/webmin/lbs-vnc/module.info

    r136 r142  
    33desc_fr=LRS : Prise de Contrôle à Distance 
    44depends=0.94 lbs_common 
    5 version=0.9.3 
     5version=0.9.4