This command reports the current situation of the DHCP resource:
[17:49:20] ABILIS_CPX:d d dhcp
RES:Dhcp ----------------------------------------------------------------------
Dynamic_Host_Configuration_Protocol
STATE:ACTIVE SERVER-LAN:2 RELAY-LAN:0
- Server Bindings ------------------------------------------------------
------- Summary -------|------- Types ---------|------- States ---------
MAX |300 |ACT-STATIC |5 |ACTIVE |7 |
USED |48 |ACT-DYNAMIC |2 |EXPIRED |17 |
FREE |252 | | |RELEASED |0 |
REUSABLE |41 |ALL-STATIC |6 |ABANDONED |2 |
| |ALL-DYNAMIC |42 |INCOMPLETE |0 |
| | | |INVALID |22 |
------------------------------------------------------------------------
The meaning:
STATE
Current DHCP state:
DOWN
- State set when registration to
lower UDP port fail, better said when the "use" of UDP service
is not possible.
INACT
- The driver is "ready" to work
(no errors with UDP service), but inactive (configuration
parameter ACT
:NO
). All
the incoming requests/responses will be silently dropped at
their arrival, without requiring CPU time for their
verification.
ACTIVE
- The driver is fully ready to
work.
STOP
- Server mode only. The driver
is fully ready to work but it cannot create/write the bindings
file. Possible causes:
The file is corrupted.
The disk is corrupted.
The disk is write protected.
Note | |
---|---|
Try to remove cause of stopped state end send the INIT command. |
MAX
Number of all Entries in a binding table (it is equal to
max-clients
value from DHCP configuration).
USED
Number of all used binding entries.
FREE
Number of all free entries in the binding table.
REUSABLE
Number of all used entries in the binding table in not
ACTIVE
state (EXPIRED
,
ABANDONED
, RELEASED
,
INVALID
). They can be reused when free entries
are ended.
ACT-STATIC
Total Number of used STATIC entries in
ACTIVE
and INCOMPLETE
state.
ACT-DYNAMIC
Total Number of used DYNAMIC entries in
ACTIVE
and INCOMPLETE
state.
ALL-STATIC
Total Number of all STATIC entries.
ALL-DYNAMIC
Total Number of all DYNAMIC entries.
ACTIVE
Total Number of used entries in ACTIVE state.
EXPIRED
Total Number of used entries in EXPIRED state.
RELEASED
Total Number of used entries in RELEASED state.
ABANDONED
Total Number of used entries in ABANDONED state.
INCOMPLETE
Total Number of used entries in INCOMPLETE state.
INVALID
Total Number of used INVALID entries.
This command can help to understand what is happening, in case of troubles:
[11:42:10] ABILIS_CPX:
d s dhcp
RES:Dhcp ---------------------------------------------------------------------- Dynamic_Host_Configuration_Protocol --- Cleared 1 days 21:51:19 ago, on 20/10/2020 at 16:43:22 ------------- -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---| PCK | 89| 89|CHAR | 28016| 26700| NOBUF | 0| |BAD-FORMAT | 0| | UNK-IPRES | 0| |LONG | 0| 0| ------------------------------------------------------------------------ Server LANs -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---| REQUESTS | 89| |RESPONSES | | 89| DISCOVER | 7| |OFFER | | 7| REQUEST | 44| |ACK | | 82| DECLINE | 0| |NAK | | 0| RELEASE | 0| | | | | INFORM | 38| | ------------------------------------------------------------------------ Relay LANs -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---| REQUESTS | 0| 0|RESPONSES | 0| 0| HOP-EXCEED | 0| |BAD-GW | 0| | NO-IPRES | | 0| ------------------------------------------------------------------------
With reference to the shown interval of time («Cleared 1 days 21:51:19 ago») these counters, show the number of:
PCK | Received/sent packets. |
CHAR | Received/sent characters in DHCP messages (UDP interface overhead excluded). |
NOBUF | No available buffers for incoming packets. |
BAD-FORMAT | Packets discarded because they were not "well formatted". |
UNK-IPRES | Received packets with "unknown" IP. |
LONG | IN - received packets which are too long for the
configured MSGLEN . OUT - "not sent" packets
because available buffer is too small. |
Statistics of Server LANs:
REQUESTS | All DHCP messages received. |
RESPONSES | All DHCP messages sent. |
DISCOVER | Received DHCPDISCOVER packets from the DHCP client. |
OFFER | Sent DHCPOFFER packets to the DHCP client. |
REQUEST | Received DHCPREQUEST packets from the DHCP client. |
ACK | Sent DHCPACK packets to the DHCP client. |
DECLINE | Received DHCPDECLINE packets from the DHCP client. |
NAK | Sent DHCPNAK packets to the DHCP client. |
RELEASE | Received DHCPRELEASE packets from the DHCP client. |
INFORM | Number of received DHCPINFORM packets from the DHCP client. |
Statistics of Relay LANs:
REQUESTS | IN - good requests received from client. OUT - client's requests relayed to the servers. |
RESPONSES | IN - good responses received from server(s). OUT - server(s)'s responses relayed to the client. |
HOP-EXCEED | Discarded requests because the "hops number" value in the packet exceeded the threshold. |
BAD-GW | Discarded responses for "not matching" gateway address ('giaddr' field). |
The following commands allow to purge INVALID bindings which may appear upon network configuration changes.
[20:57:46] ABILIS_CPX:debug res:dhcp
RES:Dhcp ----------------------------------------------------------------------
Dynamic_Host_Configuration_Protocol
BufferLength:454 Date/Time:05/06/2015 10:03:54 TraceTime:2010508
Usage:
LSN:0 - This help
LSN:1 - Complete debug
LSN:2 - Statistics
LSN:3 - DHCP log
LSN:3 CMD:CLR - Clear DHCP log
LSN:4 - Incoming datagrams dump
LSN:4 CMD:CLR - Clear incoming datagrams dump
LSN:5 - Restore host table
LSN:6 CMD:<MAC> - Delete INV (invalid) bindings with specified MAC
LSN:6 CMD:ALL - Delete ALL INV (invalid) bindings
Type the following command to view the DHCP log:
[14:20:53] ABILIS_CPX:d dhcp log
22/10 11:53:30 [S/I] IP:192.168.20.107, MAC:08-00-27-D1-C1-0D
22/10 11:58:30 [G/I] RV INFORM
22/10 11:58:30 [G/I] IP:192.168.20.107, MAC:08-00-27-D1-C1-0D
22/10 11:58:30 [G/I] GIADDR:0.0.0.0, interface IP:192.168.20.254
22/10 11:58:30 [S/I] LAN:1, NET:192.168.20.0/24
22/10 11:58:30 [S/I] SD ACK
22/10 11:58:30 [S/I] done
22/10 11:58:30 [S/I] IP:192.168.20.107, MAC:08-00-27-D1-C1-0D
22/10 12:08:35 [G/I] RV INFORM
22/10 12:08:35 [G/I] IP:192.168.20.107, MAC:08-00-27-D1-C1-0D
22/10 12:08:35 [G/I] GIADDR:0.0.0.0, interface IP:192.168.20.254
22/10 12:08:35 [S/I] LAN:1, NET:192.168.20.0/24
22/10 12:08:35 [S/I] SD ACK
22/10 12:08:35 [S/I] done
22/10 12:08:35 [S/I] IP:192.168.20.107, MAC:08-00-27-D1-C1-0D
22/10 12:18:40 [G/I] RV INFORM
22/10 12:18:40 [G/I] IP:192.168.20.107, MAC:08-00-27-D1-C1-0D
22/10 12:18:40 [G/I] GIADDR:0.0.0.0, interface IP:192.168.20.254
22/10 12:18:40 [S/I] LAN:1, NET:192.168.20.0/24
22/10 12:18:40 [S/I] SD ACK
22/10 12:18:40 [S/I] done
22/10 12:18:40 [S/I] IP:192.168.20.107, MAC:08-00-27-D1-C1-0D
22/10 12:28:46 [G/I] RV INFORM
22/10 12:28:46 [G/I] IP:192.168.20.107, MAC:08-00-27-D1-C1-0D
22/10 12:28:46 [G/I] GIADDR:0.0.0.0, interface IP:192.168.20.254
22/10 12:28:46 [S/I] LAN:1, NET:192.168.20.0/24
22/10 12:28:46 [S/I] SD ACK
22/10 12:28:46 [S/I] done
22/10 12:28:46 [S/I] IP:192.168.20.107, MAC:08-00-27-D1-C1-0D