dhcp-lease-list(8)

✨ NAME ✨

dhcp-lease-list β€” prints active DHCP leases, bestie πŸ’–

It's the dhcp-lease-list manual page, section 8, and she is here to show you exactly who's on your network rn. πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

dhcp-lease-list [options]

That's it. That's the whole vibe. You call her, she spills the tea about your leases. πŸ¦‹


πŸ’… OPTIONS πŸ’…

Pick your fighter, babe. Every single one:

  • --help β€” shows the command line help. Like, she'll literally tell you how to use her. So polite. 🫢
  • --parsable β€” machine readable output with full dates. No cute formatting, just facts for your scripts to slurp up. πŸ€–
  • --last β€” prints the last (even if end<now) entry for every MAC. Yes, even if it already expired. She's being thorough. 😌
  • --all β€” prints all entries, i.e. more than one per MAC. Every single one. She's not gatekeeping. 🌸

🌈 DESCRIPTION 🌈

Okay so dhcp-lease-list shows you the dhcpd.leases file β€” but she doesn't just dump it raw and call it a day, no ma'am. Depending on which command line options you handed her, she filters out the obsolete entries so you only see what actually matters. It's giving curated. It's giving editorial. ✨


πŸ¦‹ FILES πŸ¦‹

  • /var/lib/dhcp3/dhcpd.leases β€” the dhcpd leases. The main character file. πŸ‘‘
  • /usr/share/misc/oui.txt or /usr/local/etc/oui.txt β€” an optional file that maps MAC addresses to manufacturer names. So when you're staring at a mystery MAC you get an actual brand instead of just hex vibes. πŸ•΅οΈβ€β™€οΈ

πŸ’œ SEE ALSO πŸ’œ

Go read those too, bestie, they're part of the lore. πŸ“š


Heads up: --last will show you entries even when end<now, so don't come for her when expired leases show up. That's literally the assignment. πŸ’€

Written by Christian Hammers, dated 2008-07-13, and this page is dhcp-lease-list(8). She's been iconic since 2008 and she's still serving. Periodt. πŸ’–βœ¨πŸŽ€