Auto reboot | remote reboot for GXP2160


#1

Hello there,

is there a way to reboot the device automatically or remote?
For the older firmware i have used this script

But the new firmware don’t work now .

We have 25 devices and sometimes someone of them is hanging.
I noticed that this does not happen when I reboot all devices at night.


Auto reboot every night?
#2

I use this php script to reboot handsets

$ip=“192.168.1.1”;
$pass=“devicepassword”;
$login_url = “http://” . $ip . “/cgi-bin/dologin”;
$reboot_url = “http://” . $ip . “/cgi-bin/api-sys_operation”;

$reboot_url = "http://" . $ip . "/cgi-bin/api-sys_operation?password=$pass&request=REBOOT";

// curl object
$ch = curl_init();

// Set some options - we are passing in a useragent too here
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $reboot_url);
curl_setopt($ch, CURLOPT_USERAGENT, ‘GSProv cURL’);

// send GET request
$response = curl_exec($ch);
curl_close($ch);