MONITOR DHCP

Level

base

History

Appears in 9 1 0

Description

Display information on the dhcp leases

Format

section_line

Returns

[DHCP_Lease] IPAddress="<ip>" State="[free|active|expired|released|abandoned|reset]" Start="YYYY-MM-DD hh:mm:ss" End="YYYY-MM-DD hh:mm:ss" MacAddress="xx:xx:xx:xx:xx:xx" [Hostname="<hostname>"]
( )

[Stat_Lease]
NBTotal=<total number of leases in the list>
NBActive=<number of actived leases>

Example

MONITOR DHCP
[DHCP_Lease]
IPAddress="172 16 4 10" State="active" Start="2012-05-07 18:14:12" End="2012-05-07 18:16:12" MacAddress="00:01:03:8a:d9:7f" Hostname="my-pc"
IPAddress="10 10 10 237" State="active" Start="2012-03-05 08:25:28" End="2012-03-06 08:25:28" MacAddress="d8:9e:3f:a2:ff:ff" Hostname="my-server"
IPAddress="10 10 9 217" State="active" Start="2012-03-05 08:15:06" End="2012-03-06 08:15:06" MacAddress="34:15:9e:44:eb:eb" Hostname="my-phone"
IPAddress="10 10 13 239" State="free" Start="2012-03-05 08:23:30" End="2012-03-05 08:24:19" MacAddress="88:c6:63:b6:dd:dd"
[Stat_Lease]
NBTotal=4
NBActive=3