mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-16 15:57:00 +00:00
In short it gets these parameters and prints them in json and xml formats. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
23 lines
672 B
Text
23 lines
672 B
Text
{
|
|
"active_leases": [
|
|
{ "ip":"10.0.0.5", "macaddress":"00:00:00:00:00:00", "starts":"", "ends":"", "hostname":"" }
|
|
],
|
|
"subnets": [
|
|
{ "location":"All networks", "range":"10.0.0.1 - 10.0.0.10", "first_ip":"10.0.0.1", "last_ip":"10.0.0.10", "defined":10, "used":1, "touched":0, "free":9, "percent":10, "touch_count":1, "touch_percent":10, "status":0 }
|
|
],
|
|
"shared-networks": [
|
|
],
|
|
"summary": {
|
|
"location":"All networks",
|
|
"defined":10,
|
|
"used":1,
|
|
"touched":0,
|
|
"free":9,
|
|
"percent":10,
|
|
"touch_count":1,
|
|
"touch_percent":10,
|
|
"status":0
|
|
},
|
|
"trivia": {
|
|
}
|
|
}
|