Need to get dhcp lease

Post Reply
BCP

Need to get dhcp lease

Post 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
User avatar
frank
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 3386
Joined: 06 Jul 2004 00:18
Location: New York
Contact:

Re: Need to get dhcp lease

Post by frank »

Not from OmniVIsta, but from oxe directly:

Code: Select all

cd /var/state/dhcp
cat dhcpd.leases|grep lease|sort -u
Code Free Or Die
Post Reply

Return to “GENERAL”