I Would like to write a script that will find all my IP phones on my local network and reboot them via ssh without having to do each on manually. For context, I’m good with networks but rather rookie at scripting. So my first hurdle would be to find the ip address of each device, probably by finding all devices that start with the mac address of the vendor (in this case Grandstream). The phone all have the same login credentials, so that part will be easy, I just need a command that will find the IP addresses of those devices (similar to an ARP) and then ssh into each device. Rebooting will just be the start and if I can get that to run successfully I can potentially branch out and add other commands to the script. But the idea is to be able to automate tasks to all phones on the network.
Any help would be appreciated. TIY.