Tip: Axis automatic rebooting
Posted: Sat Apr 22, 2006 7:53 am
Just a little tip some folks might appreciate.
Axis IP cams. Normally great but occasional lockups - my 207w dies after about 18hours, now and then I have a 211 which stops sending video.
The following is a crontab entry for a linux machine sitting on the same network that uses curl to issue a http command to the cameras to reboot. Cameras are various Axis models, all with admin authorisation require: user root, password: password.
05 17 * * * curl -u root:password http://10.0.0.108:1108/axis-cgi/admin/restart.cgi &>/dev/null
Requires curl ( apt-get install curl)
Change IP, port number and password to fit your cameras.
I've had this running for a week or so with no problems, reboots all 7 of my cameras once per day just before they come on for main duty at night (to ensure any previous crashes etc are cleared). Hopefully will avoid any embarrassing moments when customer/boss asks for footage for a particular time and you find the camera's crashed...
Obviously doesn't work if camera no longer responding to http requests, in that case a physical mains timer is the only solution. (The round sort you plug in to control when power is on/off - turn it all on then have it turn off for 5 mins once a day to reboot)
Axis IP cams. Normally great but occasional lockups - my 207w dies after about 18hours, now and then I have a 211 which stops sending video.
The following is a crontab entry for a linux machine sitting on the same network that uses curl to issue a http command to the cameras to reboot. Cameras are various Axis models, all with admin authorisation require: user root, password: password.
05 17 * * * curl -u root:password http://10.0.0.108:1108/axis-cgi/admin/restart.cgi &>/dev/null
Requires curl ( apt-get install curl)
Change IP, port number and password to fit your cameras.
I've had this running for a week or so with no problems, reboots all 7 of my cameras once per day just before they come on for main duty at night (to ensure any previous crashes etc are cleared). Hopefully will avoid any embarrassing moments when customer/boss asks for footage for a particular time and you find the camera's crashed...
Obviously doesn't work if camera no longer responding to http requests, in that case a physical mains timer is the only solution. (The round sort you plug in to control when power is on/off - turn it all on then have it turn off for 5 mins once a day to reboot)