Trying to get list of DHCP clients using WL

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
joelevy
DD-WRT Novice


Joined: 16 Apr 2016
Posts: 1

PostPosted: Sat Apr 16, 2016 0:38    Post subject: Trying to get list of DHCP clients using WL Reply with quote
Hi,
I'm new so forgive me if this is answered somewhere else. My router has other APs connected to it. I'm trying to make a small script to query all the DHCP clients connected. I'm using the following command but only getting the clients connected by wifi to this router (not my other APs).

Can someone help me with the modifications needed to make this script get all the DHCP clients on my network?

maclist=$(wl -i $(nvram get wl0_ifname) assoclist | cut -d" " -f2)
for mac in $maclist; do
echo "mac is" $mac
done

Thanks!
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum