NSX CLI Guide

get dhcp leases <dhcp-uuid-arg>

Display all IP leases under a DHCP server/subnet

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 leases 9e0b012c-c93c-4693-9c32-f9e29b7aa928 SubnetPort-ID MAC Subnet IP Type State Start-Time Lease-Time Expire-Time 954f9702-3854-4bda-8bf5-d9c2914ca570 00:50:56:85:95:e9 10.2.0.0 10.2.0.15 Static Active 2024-11-21 13:39:14 86400 2024-11-22 13:39:14 00:00:00:00:00:00 10.2.0.0 10.2.0.1 Dynamic Expiring 2024-11-21 16:10:01 86400 2024-11-22 16:10:01 b3eebfe3-12c2-4c63-9b2c-997175ab229f 00:10:56:98:7d:a5 10.2.0.0 10.2.0.17 Static Active 2024-11-21 13:39:14 86400 2024-11-22 13:39:14 69824af1-2926-469e-8ce3-b7d4b315695a 00:50:56:85:3a:0d 10.2.0.0 10.2.0.2 Dynamic Active 2024-11-21 13:39:14 86400 2024-11-22 13:39:14 5539c4dc-621e-4d8b-8a40-2ee299f1ec73 00:00:00:00:00:00 10.2.0.0 10.2.0.3 Dynamic Expiring 2024-11-21 07:18:01 86400 2024-11-22 07:18:01

Mode:

Basic

Availability: