Hi !
I installed IPAM on IIS for Win2008 R2 but the scan subnet doesn't work.
I get the following error:
"Error executing scan! Error code - 255 - cmd : e:\WebSites\phpExecutables\php.exe E:\WebSites\IPAM\site\ipaddr\scan......\functions\scan\scanIPAddressesScript.php 'discovery' '10.1.1.0/24' '10'"
I try to change the:
$pathPing = $settings['scanPingPath'];
to:
$pathPing = "C:\Windows\System32\PING.EXE";
Here, the retval was 1000 and now it is 1.
and also the "functions-network.php" file for the pingHost function:
for the "if" corresponding to the WIN option:
$cmd = "$pathPing -n $count -I ".($timeout*1000)." $ip 1>null 2>&1";
to:
$cmd = "$pathPing -n $count -w ".($timeout*1000)." $ip 1>NUL 2>&1";
Here, the retval stays 1 for an existing host or not.
I was wondering if the return code for the windows ping isn't the same as the linux ping.
So I tried to ping a host and then check the retval (echo $?), the result is true or false:
Do you have an idea to make it work ?
Thank you !
Anonymous
I have the same error. Any fix?
I have thise problem on FreeBSD
For freebsd you have to change permissions on ping executable file. I run it on 2 servers without problems.
version 1.1 have same problem too
There was one thread where removing the timeout helped on windows.
Retval 1000 means ping file is not found.
Regarding return - this is possible that 1 is true and 0 false. Maybe try adding below lines to pingHost function:
brm
View and moderate all "support-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Support Requests"
The Ping Scan Problem is here again in version 1.16 rev 006. Any fixes?