Hi,
I'm currently writing a script to check the MAC presence on the network. However, I'm running into issues because I have an access point and the devices connected to the access point do not directly show up in the main router.
Is there a way to retreive the MAC addresses that are currently connected to the access point?
currently using the following code to retreive and check the MAC addresses:
I'm currently writing a script to check the MAC presence on the network. However, I'm running into issues because I have an access point and the devices connected to the access point do not directly show up in the main router.
Is there a way to retreive the MAC addresses that are currently connected to the access point?
currently using the following code to retreive and check the MAC addresses:
Code:
#!/bin/sh
User1="Away"
macaddress=`wl -i eth2 assoclist && wl -i eth1 assoclist && wl -i eth3 assoclist`
if echo $macaddress | grep -q "AA:AA:AA:AA:AA:AA"
then
User1="Home"
fi