NSX CLI Guide

Debug Commands

get dhcp ports <dhcp-uuid-arg>

Display all client ports under a DHCP server/subnet including its status, allocated IP, etc.

Parameters:

Option Description
<dhcp-uuid-arg> DHCP server/subnet UUID
Allowed pattern: ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$


Example:

nsx-controller-1> get dhcp ports 9e0b012c-c93c-4693-9c32-f9e29b7aa928 lsp: 5539c4dc-621e-4d8b-8a40-2ee299f1ec73, state: dynamic, mac: 00:50:56:98:7d:d7, ip: 10.20.114.193 lsp: 47630142-fce9-4e8c-ae7e-c9650b91e6c7, state: dynamic lsp: 34adf781-4fc1-4418-a63d-72e2d4fb9786, state: static, mac: 00:10:56:98:7d:a5, ip: 10.144.0.4/36 lsp: 141e822d-c0eb-4bb3-ba8d-61c58379c928, state: disconnected lsp: 909a6ae9-3bb8-40f5-9b5c-2f99ba848514, state: disconnected, ip: 10.20.114.194, disconnect_time: 2024-07-24 03:07:02, is_expired: true lsp: 092aaaf6-cea4-4170-9da0-ee15a7128263, state: disconnected, ip: 10.20.114.195, disconnect_time: 2024-10-21 16:10:01

Mode:

Basic

Availability: