Menu

ip poller issue

Help
2007-03-02
2013-05-09
  • Nobody/Anonymous

    When running the command line poller, I get the following error so the ip range is not updated.

    Error
    Invalid character in  host specification.  Note in particular that square bracke
    ts [] are no longer allowed.  They were redundant and can simply be removed.
    QUITTING!

    Does anyone know why this is and how to correct it

    Thanks

     
    • Richard Ellerbrock

      line 163 in ipplan-poller.php looks as follows:

           $nmap = `$NMAP $NMAP_CMD - $range`;

      Just after this line add

           echo $nmap;

      Run the poller manually and send the the full nmap command line that fails - the one echoed above. Note that one nmap command will be generated per ip address range specified in the -f file specified on the ipplan-poller.php command line.

       
    • Nobody/Anonymous

      Thanks.. I saw the error using the added line as directed.

      I thougt Nmap help said I could use the format

      Nmap 4.20 ( http://insecure.org )
      Usage: nmap [Scan Type(s)] [Options] {target specification}
      TARGET SPECIFICATION:
        Can pass hostnames, IP addresses, networks, etc.
        Ex: scanme.nmap.org, microsoft.com/24, 192.168.0.1; 10.0.0-255.1-254

      so I used 10.1.10.1-255 etc etc in the file for the IP range. I changed this to 10.1.10.0/24 etc etc and this worked fine

      Thanks

       

Log in to post a comment.

MongoDB Logo MongoDB