To display counts of DHCP client bindings and interfaces on the specified subnet:
show dhcp count [ local | external | relay-proxy ] [ subnetAddress ] [ filter ]
To display counts of DHCP client bindings and interfaces for the specified IP prefix:
show dhcp count [ local | external | relay-proxy ] [ subnetAddress ] ip-prefix ipPrefix [ filter ]
To display counts of DHCP client bindings and interfaces for the specified interface string:
show dhcp count [ local | external | relay-proxy ] [ subnetAddress ] interface string [ filter ]
To display counts of DHCP client bindings and interfaces without a lower-layer interface:
show dhcp count [ local | external | relay-proxy ] [ subnetAddress ] no-interface [ filter ]
To display counts of DHCP client bindings and interfaces for the specified agent-circuit-id suboption (suboption 1) string of the DHCP relay agent information option (option 82):
show dhcp count [ local | external | relay-proxy ] [ subnetAddress ] circuit-id string [ filter ]
To display counts of DHCP client bindings and interfaces for the specified agent-remote-id suboption (suboption 2) string of the DHCP relay agent information option (option 82):
show dhcp count [ local | external | relay-proxy ] [ subnetAddress ] remote-id string [ filter ]
Command introduced in JunosE Release 9.3.0.
Displays counts of DHCP client bindings and interfaces.
Each element is either a literal string, a metacharacter, or a combination. You can remove the special meaning of a metacharacter by preceding it with a backslash (\). Regular expressions support the following metacharacters:
You must specify the interface string as a regular expression without spaces; for example, fastEthernet1.1/100 or fastEthernet.*100
The following rules apply for representing nonprintable character sequences in the circuit ID string or the remote ID string:
For example, to match the sequence 74 65 73 74 0d 0a 6f 6e 65 (hex), use the string 'test\\r\\none'. In this string, 74 is represented by t, 65 is represented by e, 73 is represented by s, 74 is represented by t, 0d 0a is represented by \\r\\n, 6f is represented by o, 6e is represented by n, and 65 is represented by e.
For example, to match the sequence 74 65 73 74 0a 00 6f 6e 65 (hex), use the string 'test\\none'. In this string, 74 is represented by t, 65 is represented by e, 73 is represented by s, 74 is represented by t, 0a 00 is represented by \\n, 0a is represented by \\n, 6f is represented by o, 6e is represented by n, and 65 is represented by e.
As another example, to match the sequence 74 65 73 74 f3 6f 6e 65 (hex), use the string 'test\\xf3one'. In this string, 74 is represented by t, 65 is represented by e, 73 is represented by s, 74 is represented by t, byte F3 is represented by \\xf3, 6f is represented by o, 6e is represented by n, and 65 is represented by e.
Privileged Exec