Hi,
I'm currently evaluating AHM 7.10 and have been satisfied with the functionality. However, I need to do DHCP testing and so far it as failed.
DHCP service runs on Windows 2003 and all I get from AHM is "No Answer". What could be the possible causes and is there a workaround to this test?
DHCP test failure
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
HostMonitor sends the DHCPRequest packet to DHCP server requesting certain IP in order to check it works. Probably, you should specify IP from the DHCP scope, managed by DHCP server, into "Client IP" input box in test properties window. Also you please ensure the ports 67-68 are opened on the firewall.
On the other hand, could you try the DHCPCheck.exe utility, available at our site: http://www.ks-soft.net/download/utils/dhcpcheck.zip
By default, this utility sends DHCPInform packet instead of DHCPREquest packet. Probably, it it will work in your enwironment.
You may use -host: parameter to specify the destination DHCP server (e.g -host:192.168.1.1 ). For instance:
dhcpcheck.exe -host:192.168.1.1
In this case utility will send the DHCPInform packet to the DHCP server.
Also you may specify certain MAC-address to be sent within DHCPInform packet using -clientMAC: parameter, e.g -clientMAC:00-13-20-70-B8-03
dhcpcheck.exe -host:192.168.1.1 -clientMAC:00-13-20-70-B8-03
To find out the MAC-address of the network card on your machine you may use "ipconfig /all" command
dhcpcheck.exe is designed for "Shell Script test method: http://www.ks-soft.net/hostmon.eng/mfra ... m#chkShell
Regards,
Max
On the other hand, could you try the DHCPCheck.exe utility, available at our site: http://www.ks-soft.net/download/utils/dhcpcheck.zip
By default, this utility sends DHCPInform packet instead of DHCPREquest packet. Probably, it it will work in your enwironment.
You may use -host: parameter to specify the destination DHCP server (e.g -host:192.168.1.1 ). For instance:
dhcpcheck.exe -host:192.168.1.1
In this case utility will send the DHCPInform packet to the DHCP server.
Also you may specify certain MAC-address to be sent within DHCPInform packet using -clientMAC: parameter, e.g -clientMAC:00-13-20-70-B8-03
dhcpcheck.exe -host:192.168.1.1 -clientMAC:00-13-20-70-B8-03
To find out the MAC-address of the network card on your machine you may use "ipconfig /all" command
dhcpcheck.exe is designed for "Shell Script test method: http://www.ks-soft.net/hostmon.eng/mfra ... m#chkShell
Regards,
Max
Well, I gave it a go.
In AHM, using the External Test function and loading the parameters, I get an "Unknown" status.
I know that the script works when I run it independently from a command prompt:
C:\Program Files\HostMonitor7>dhcpcheck.exe -host:10.12.64.250 -timeout 5000
ScriptRes:Host is alive:39 ms
Sorry about this but I cannot figure out how to turn the response into OK instead of Unknown. Probably under the Optional Status Processing but I'm not sure how to go about doing it.
In AHM, using the External Test function and loading the parameters, I get an "Unknown" status.
I know that the script works when I run it independently from a command prompt:
C:\Program Files\HostMonitor7>dhcpcheck.exe -host:10.12.64.250 -timeout 5000
ScriptRes:Host is alive:39 ms
Sorry about this but I cannot figure out how to turn the response into OK instead of Unknown. Probably under the Optional Status Processing but I'm not sure how to go about doing it.
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
"Unknown" status means something wrong with parameters or path. What error do you see in "Reply" field?
I think, you should try to specify full path to the utility, e.g.: C:\Program Files\HostMonitor7\dhcpcheck.exe
What exact test method do you use? "Shell Script"? "External Program"?
Although the utility is designed for the "Shell Script" test method, it can be used with "External program" test as well. You just should spefiy the following string into "External program" box in "Test Properties" window of "External Program" test:
"C:\Program Files\HostMonitor7\dhcpcheck.exe -host:10.12.64.250 -timeout 5000
Please note: program path is enclosed into quotes, because "Program files" contains space.
In case of "Shell script" test method, you just should create a new script in "Script Manager" and specify following values into appropriate boxes:
"Start cmd": cmd /c %Script% %Params%
"Script": "C:\Program Files\HostMonitor7\dhcpcheck.exe" -host:%1 -timeout:%2
After that, you may create a "Shell Script" test using foregoing script, and specify 10.12.64.250 5000 into "Params" input box in "Test Properties" window.
Regards,
Max
I think, you should try to specify full path to the utility, e.g.: C:\Program Files\HostMonitor7\dhcpcheck.exe
What exact test method do you use? "Shell Script"? "External Program"?
Although the utility is designed for the "Shell Script" test method, it can be used with "External program" test as well. You just should spefiy the following string into "External program" box in "Test Properties" window of "External Program" test:
"C:\Program Files\HostMonitor7\dhcpcheck.exe -host:10.12.64.250 -timeout 5000
Please note: program path is enclosed into quotes, because "Program files" contains space.
In case of "Shell script" test method, you just should create a new script in "Script Manager" and specify following values into appropriate boxes:
"Start cmd": cmd /c %Script% %Params%
"Script": "C:\Program Files\HostMonitor7\dhcpcheck.exe" -host:%1 -timeout:%2
After that, you may create a "Shell Script" test using foregoing script, and specify 10.12.64.250 5000 into "Params" input box in "Test Properties" window.
Regards,
Max
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact: