Need to change generaly graphing IP

I have approximately 50 RouterOS and I have the IP list of them. I need to change for all routers Grahping access ip to XXX.XXX.XXX.XXX. Is it posible to do it f.e. via Dude or with some script ? On the each router is only port for WinBox opened, ssh port is closed.

Thanks, marxin

If winbox is the only management port available, then you will have to connect with winbox. Perhaps it is time to fix the firewall to allow connection by other methods that you can do from a script.