SliTaz SliTaz Forum

You are not logged in.

#1 2014-07-04 16:17:40

KevinG
Member
Registered: 2014-07-04
Posts: 11

DHCP Lease information

Hi

Is information on current DHCP leases recorded anywhere?

On Debian it is in /var/lib/NetworkManager, but I haven't found anything similar in Slitaz.

Thanks

Offline

#2 2014-07-12 09:40:46

KevinG
Member
Registered: 2014-07-04
Posts: 11

Re: DHCP Lease information

I did an HDD install and looked everywhere with grep and found nothing so gave up on that tack and extappalated the information I needed from ifconfig.

If it helps anyone else I used:

ADDRESS=$(ifconfig eth0 | grep "inet addr" | cut -d":" -f2 | cut -d" " -f1)

to get the ip address.

Other info can be extracted similarly.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.015 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]