Page 1 of 1

Need to get dhcp lease

Posted: 16 Feb 2022 09:30
by BCP
Hi there,

For a network asset system, i need to extract from command line (or parse a file) the lease of an omnivista 8770.
Did someone ever done this, any ideas for me?

thx a lot, Benjamn

Re: Need to get dhcp lease

Posted: 17 Mar 2022 19:58
by frank
Not from OmniVIsta, but from oxe directly:

Code: Select all

cd /var/state/dhcp
cat dhcpd.leases|grep lease|sort -u