DHCP test failure

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Kobian
Posts: 3
Joined: Mon Mar 17, 2008 3:59 am

DHCP test failure

Post by Kobian »

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?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

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
Kobian
Posts: 3
Joined: Mon Mar 17, 2008 3:59 am

Post by Kobian »

Thanks, I'll give it a try.
Kobian
Posts: 3
Joined: Mon Mar 17, 2008 3:59 am

Post by Kobian »

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.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

"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
dullaertd
Posts: 17
Joined: Mon Mar 10, 2008 7:18 am

Post by dullaertd »

You helped me too. Thank you! 8)
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

dullaertd wrote:You helped me too. Thank you! 8)
You are welcome. ;-)

Have you faced to problems with "DHCP" test method? What exact status did you get? Error?
Did the "dhcpcheck.exe" utility help or you managed to get "DHCP" test working?

Regards,
Max
dullaertd
Posts: 17
Joined: Mon Mar 10, 2008 7:18 am

Post by dullaertd »

I'm doing an internship in a company, so I don't know a lot about their network infrastructure. I let the test ask for an IP that was out of it's scope, I thought this would work, because the test get's OK even if the DHCP server returns a NACK
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

The main purpose of the "DHCP" test method is to check availability of DHCP servers, so "DHCP" test becomes "Good" whatever status is received: ACK or NACK, because it means the target DHCP server is available and working.

Regards,
Max
Post Reply