display dhcp server statistics

Use display dhcp server statistics to display the DHCP server statistics.

Syntax

display dhcp server statistics [ pool pool-name | vpn-instance vpn-instance-name ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

pool pool-name: Specifies an address pool by its name, a case-insensitive string of 1 to 63 characters. If you do not specify this option, this command displays information about all address pools.

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, this command displays DHCP server statistics for the public network.

Examples

# Display the DHCP server statistics.

<Sysname> display dhcp server statistics
    Pool number:                       1
    Pool utilization:                  0.39%
    Bindings:
      Automatic:                       1
      Manual:                          0
      Expired:                         0
    Conflict:                          1
    Messages received:                10
      DHCPDISCOVER:                    5
      DHCPREQUEST:                     3
      DHCPDECLINE:                     0
      DHCPRELEASE:                     2
      DHCPINFORM:                      0
      BOOTPREQUEST:                    0
    Messages sent:                     6
      DHCPOFFER:                       3
      DHCPACK:                         3
      DHCPNAK:                         0
      BOOTPREPLY:                      0
    Bad Messages:                      0

Table 10: Command output

Field

Description

Pool number

Total number of address pools. This field is not displayed when you display statistics for a specific address pool.

Pool utilization

Pool utilization rate:

  • If you display statistics for all address pools, this field displays the utilization rate of all address pools.

  • If you display statistics for an address pool, this field displays the pool utilization rate of the specified address pool.

Bindings

Bindings include the following types:

  • Automatic—Number of dynamic bindings.

  • Manual—Number of static bindings.

  • Expired—Number of expired bindings.

Conflict

Total number of conflict addresses. This field is not displayed if you display statistics for a specific address pool.

Messages received

DHCP packets received from clients:

  • DHCPDISCOVER.

  • DHCPREQUEST.

  • DHCPDECLINE.

  • DHCPRELEASE.

  • DHCPINFORM.

  • BOOTPREQUEST.

This field is not displayed if you display statistics for a specific address pool.

Messages sent

DHCP packets sent to clients:

  • DHCPOFFER.

  • DHCPACK.

  • DHCPNAK.

  • BOOTPREPLY.

This field is not displayed if statistics about a specific address pool are displayed.

Bad Messages

Number of bad messages. This field is not displayed if you display statistics for a specific address pool.

Related commands

reset dhcp server statistics