DHCP test

If you have information, script, utility, or idea that can be useful for HostMonitor community, you welcome to share information in this forum.
Post Reply
KS-Soft
Posts: 12869
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

DHCP test

Post by KS-Soft »

DHCP test utility available at
www.ks-soft.net/download/utils/dhcpcheck.zip
This is command line utility that can be used with Shell Script test method
http://www.ks-soft.net/hostmon.eng/mfra ... m#chkShell

There is 1 mandatory command line parameter:
-host:<hostname|IP>
and 2 optional parameters:
-clientIP:<ip address>
-timeout:<communication_timeout_ms>

Regards
Alex
JuergenF
Posts: 331
Joined: Sun Jan 26, 2003 6:00 pm
Location: Germany, North Rhine-Westphalia

Re: DHCP test

Post by JuergenF »

Dear Alex,

what exactly does this test do ? Seems to do a DHCP request.

But what exactly does -ClientIP do ? I always get a "DHCP NAK" from my Server (looking at wireshark) using different clientIP-addresses

And another question:
When using -cli: instead of -clientIP: there is no Error message displayed.
Does the parameter work correctly ?
(i.e -ho instead of -host is not allowed)

dhcpcheck.exe -host:192.168.68.68 -cli:192.168.68.101
ScriptRes:Host is alive:172 ms

dhcpcheck.exe -ho:192.168.68.68 -cli:192.168.68.101
ScriptRes:Unknown:DHCP Server name or IP is required

Best regards

Juergen
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: DHCP test

Post by KS-Soft Europe »

JuergenF wrote:what exactly does this test do ? Seems to do a DHCP request.
You are right. dhcpcheck utility verifies the DHCP server by sending DHCP request packet and waits for the response from DHCP server, whatever it replies NAK or ACK.
JuergenF wrote:But what exactly does -ClientIP do ? I always get a "DHCP NAK" from my Server (looking at wireshark) using different clientIP-addresses
ClientIP parameter may specify the IP-address from the range, managed by DHCP server. It is not required parameter, so you have not to specify it. We have implemented such a parameter, because some DHCP servers does not respond on the packet without proper clients IP. If server replies NAK it means the server is alive as well.
JuergenF wrote:And another question:
When using -cli: instead of -clientIP: there is no Error message displayed.
Does the parameter work correctly ?
ClientIP is not required parameter, so if you specified -cli: parameter, dhcpcheck utilty would ignore it. Unlike -ClientIP parameter, -Host: parameter is required. So, it must be specified in any case.

Regards,
Max
Post Reply