dhcp-lease-show

This command is used to display information about DHCP leases on the switch.

Syntax   dhcp-lease-show [ip ip-address] [mac mac-address][port port-list] [vlan vlan-id] [db-state unknow|free|active|backuo|abandoned|expired] [start-time yyyy-mm-ddThh:mm:ss] [end-time yyyy-mm-ddThh:mm:ss] [server dhcp name][server-ip ip-address] [server-port server-port-number][last-msg -|discover|offer|request|decline|ack|nack|release|inform] last-msg-time date/time:yyyy-mm-ddThh:mm:ss] trusted-server|no-trusted-server

ip ip-address

Specifies the IP address of a DHCP client.

mac mac-address

Specifies the MAC address of a DHCP client.

port port-list

Specifies the port of a DHCP client.

vlan vlan-id

Specifies the VLAN for the DHCP client.

db-state unknown|free|active|
backup|abandoned|
expired

Specifies the state of a DHCP client’s lease.

start-time yyyy-mm-ddThh:mm:ss

The beginning of the DHCP lease.

end-time yyyy-mm-ddThh:mm:ss

Specifies the end of the DHCP lease.

server dhcp name

Specifies the name of the DHCP server.

server-ip ip-address

Specifies the IP address of the DHCP server.

server-port server-port-number

Specifies the port number of the DHCP server.

last-msg |discover|offer|
request|decline|ack|
nack|release|inform

Specifies the last message received from the DHCP client.

last-msg-time date/time:yyyy-mm-ddThh:mm:ss

Specifies the time of the last message received from the DHCP client.

trusted-server|no-trusted-server

Specifies the trusted DHCP server.

Formatting Options

format fields-to-display

Display output using a specific parameter. Use all to display all possible output.

parsable-delim character

Display output formatted for machine parsing using a specified delimiter.

sort-asc

Display output in ascending order.

sort-desc

Display output in descending order.

show dups

Display duplicate entries in the output.

layout vertical|horizontal

Format the output in a vertical or horizontal layout.

show-interval seconds-interval

Repeat the show command at a specified interval.

show-headers|
no-show-headers

Display column headers or not.

limit-output number

Limit the display output to a specific number of entries.

count-output

Display the number of entries in the output. This is useful with vRouter show commands.

unscaled

Display full values in the output instead of scaled approximate values.

raw-int-values

Display integer values instead of mapped values

sum-by

Aggregate output by specific parameters. If sum-by fields are specified, records that have the same value in sum-by fields are combined and displayed as one aggregate record. NOTE: This option is only available for show commands that collect statistics such as connection-stats-show.

Defaults   None

Access   CLI

History   

Version 1.2.1

Command introduced.

Version 2.6

The parameter, trusted-server, added.

.

Usage   Used to display information about DHCP leases on the switch.

Examples  To display information about the DHCP leases on the switch, use the following command:

CLI network-admin@switch > dhcp-lease-show

switch:        pleiades25

ip:            172.16.23.2

mac:           66:0e:94:21:4a:7b

port:          none

vlan:          11

db-state:      active

start-time:    09:17:59

end-time:      10:17:59

server:        red-dhcp

server-ip:     172.16.23.1

switch:        pleiades25

ip:            172.16.23.3

mac:           00:25:90:63:8a:84

port:          10

vlan:          11

db-state:      active

start-time:    09:20:05

end-time:      10:20:05

server:        red-dhcp

server-ip:     172.16.23.1

server-port:   65

last-msg:      ack

last-msg-time: 09:20:06

See Also   

dhcp-create

dhcp-delete

dhcp-migrate

dhcp-modify

dhcp-show

dhcp-host-add

dhcp-host-remove

dhcp-host-show

dhcp-interface-add

dhcp-interface-modify

dhcp-interface-remove

dhcp-interface-show

dhcp-pool-add

dhcp-pool-modify

dhcp-pool-remove

dhcp-pool-show

dhcp-pxe-menu-add

dhcp-pxe-menu-modify

dhcp-pxe-menu-show