Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

clear dhcp relay lockout-entries

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
clear dhcp relay lockout-entries (all | index index)

Description

Clear all client entries from the DHCPv4 relay agent lockout database or only the specified entries. The lockout is terminated for all affected client sessions. The lockout history for these clients is also cleared. The clients that were locked out are allowed to attempt to log in. Any subsequent short-cycle event results in a new lockout, with the initial lockout period at the low end of the range.

Options

all

Clear all client entries from the lockout database.

index index

Number identifying a client entry to be cleared from the lockout database. You can view the index numbers associated with all clients by issuing the show dhcp-relay lockout-entries command.

Required Privilege Level

view

Output Fields

See show dhcp relay lockout-entries for an explanation of the output fields.

Sample Output

clear dhcp relay lockout-entries (Specific Lockout Entry)

The following sample output displays the lockout entries in the database before and after clear dhcp relay lockout-entries command is issued for a specific entry.

content_copy zoom_out_map
user@host> show dhcp relay lockout-entries all
Index     Key              State    Expires(s)     Elapsed(s)      Count
1     00:00:5E:00:53:00     Lockout     30           5200            2 
2     00:00:5E:00:53:11     Grace      120           780             2 
3     00:00:5E:00:53:22     Lockout    180           2300            1

user@host> clear dhcp relay lockout-entries index 2

user@host> show dhcp relay lockout-entries all
Index     Key              State    Expires(s)     Elapsed(s)      Count
1     00:00:5E:00:53:00     Lockout     30           5200            2 
3     00:00:5E:00:53:22     Lockout    180           2300            1

clear dhcp relay lockout-entries (All Lockout Entries)

The following sample output displays the lockout entries in the database before and after clear dhcp relay lockout-entries command is issued for all entries.

content_copy zoom_out_map
user@host> show dhcp relay lockout-entries all
Index     Key              State    Expires(s)     Elapsed(s)      Count
1     00:00:5E:00:53:00     Lockout     30           5200            2 
2     00:00:5E:00:53:11     Grace      120           780             2 
3     00:00:5E:00:53:22     Lockout    180           2300            1

user@host> clear dhcp relay lockout-entries all

user@host> show dhcp relay lockout-entries all

Release Information

Command introduced in Junos OS Release 18.2R1.

footer-navigation