D-Link Forums

D-Link FAQ => Network Camera FAQs => Topic started by: FredMa on September 07, 2017, 12:38:54 PM

Title: Reboot DCS935L with command line
Post by: FredMa on September 07, 2017, 12:38:54 PM
Hi,
I use a DCS935L camera with motioneye but sometimes connection rtsp to camera (rtsp play1.sdp) freeze.
I would like to check logs of motioneye and restart camera when connexion is lost.
I am looking for the command to restart the camera with a line command.
I try without success this : http://user:passwd@IP_ADDRESS_HERE/setSystemReboot
My Firmware is 1.10.01

Have you got an idea ?

ALl thanks
Fred
Title: Re: Reboot DCS935L with command line
Post by: FredMa on September 07, 2017, 04:39:40 PM
I have found the url : http://user:passwd@MONIP/cgi/restart.cgi
It's ok from Firefox but it doesn't work with curl in a script :
curl http://user:passwd@MONIP/cgi/restart.cgi
or
curl -u user:passwd http://MONIP/cgi/restart.cgi

Do I need something else ? (token ?)
Fred
Title: Re: Reboot DCS935L with command line
Post by: FredMa on September 09, 2017, 06:25:14 AM
The answer :
   curl –digest http://user:passwd@MONIP/cgi/restart.cgi
 ;D
Fred