am able to achieve the following
1. reboot the NAS, Router etc based on Events in the Cameras
2. Reconfigure the NAS, Router based on specific Events
the use of PHP is because its commonly available on most NAS having a webserver and would not require any further configuration.. and the PHP pages can be pulled through simple URL http://192.168.1.40/reboot_router.php or http://192.168.1.40/reboot_nas.php