Help with Script

Hello

i have a network with 8 ptp, and i have main router in the network i would like an script for check how many costumer i have online in real time, right now for do that i have to enter router per router i check the wireless card, so i need help with this.

thanks