Sometimes I check how many leases DHCP has issued using this command.
That doesn't really tell me if those clients are connected or not.
So, to check how many connected clients I have, I try this:
The thing is that I'm not sure this ARP command actually shows current active clients.
Does anyone actually check for how many DHCP leases the router has issued or how many clients are connected?
How do you do so?
Code:
cat /var/lib/misc/dnsmasq.leases | wc -l
That doesn't really tell me if those clients are connected or not.
So, to check how many connected clients I have, I try this:
Code:
arp -a | awk '$4!="<incomplete>"' | wc -l
The thing is that I'm not sure this ARP command actually shows current active clients.
Does anyone actually check for how many DHCP leases the router has issued or how many clients are connected?
How do you do so?