If we need to check your router status, we can use curl to grep some information we need.
My Wireless Router: TP-Link
Command to check who is online:
$ curl –basic –user myuser:myPass http://myrouteip/userRpm/AssignedIpAddrListRpm.htm |
grep “what we want” |