Hi Shobhith, I think you would be more interested in lease commands: https://kea.readthedocs.io/en/kea-2.2.0/arm/hooks.html#lease-cmds-lease-commands-for-easier-lease-management have a look at the lease*-get-all (or by page would be better) commands. This will give you a list of the current leases that may be counted if you wish. The statistics are really more about activity on the server.
Thank you, Darren Ankney On Thu, Jun 22, 2023 at 6:41 AM Shobhith Chikku <shobhithchi...@gmail.com> wrote: > > Hi, > Do we have any command/way to get the count of the current active leases? > I checked out statistic-get-all, but that is giving like timestamp-wise count. > Do we have any method to get the total count of active leases in sync with > the configuration? > > Below is the sample output of statistic-get-all > "subnet[818405].assigned-addresses": [ > [ > 60000, > "2023-06-16 05:17:16.174369" > ], > [ > 0, > "2023-06-16 05:17:16.174354" > ] > ], > "subnet[818405].cumulative-assigned-addresses": [ > [ > 0, > "2023-06-16 05:17:16.168734" > ] > ], > "subnet[818405].declined-addresses": [ > [ > 0, > "2023-06-16 05:17:16.174356" > ] > ], > "subnet[818405].reclaimed-declined-addresses": [ > [ > 0, > "2023-06-16 05:17:16.174358" > ] > ], > "subnet[818405].reclaimed-leases": [ > [ > 0, > "2023-06-16 05:17:16.174361" > ] > ], > "subnet[818405].total-addresses": [ > [ > 110002, > "2023-06-16 05:17:16.168732" > ] > ], > "subnet[818405].v4-reservation-conflicts": [ > [ > 0, > "2023-06-16 05:17:16.168736" > ] > ], > > Thank you, > > Shobhith > -- > ISC funds the development of this software with paid support subscriptions. > Contact us at https://www.isc.org/contact/ for more information. > > To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users. > > Kea-users mailing list > Kea-users@lists.isc.org > https://lists.isc.org/mailman/listinfo/kea-users -- ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users. Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users