Hikvision NVR Reboot Script

stamand

n3wb
Joined
Jan 18, 2016
Messages
5
Reaction score
0
I have the Hikvision DS-7608NI-E1(E2)P NVR. Occasionally a camera goes offline and I need to reboot the NVR. I have tried multiple scripts that I've found in various forums, but nothing has worked.
Anyone have any ideas ?
 

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,962
Reaction score
6,794
Location
Scotland
Occasionally a camera goes offline and I need to reboot the NVR.
Is the camera unreachable via it's web GUI or other access check, or is the NVR dropping the connection to it?

I had a DS-2CD2432-IWS that would stop responding every few months and need to be power-cycled via the PoE switch admin interface.
I updated the firmware from the 5.3.0 to the last 5.4.5 version and it's never stopped since, last started over a year ago according to it's uptime status.

What's the camera model, and what's the firmware version?
If it's old - there may be a fix to take advantage of.
 

stamand

n3wb
Joined
Jan 18, 2016
Messages
5
Reaction score
0
Is the camera unreachable via it's web GUI or other access check, or is the NVR dropping the connection to it?

I had a DS-2CD2432-IWS that would stop responding every few months and need to be power-cycled via the PoE switch admin interface.
I updated the firmware from the 5.3.0 to the last 5.4.5 version and it's never stopped since, last started over a year ago according to it's uptime status.

What's the camera model, and what's the firmware version?
If it's old - there may be a fix to take advantage of.
The camera and NVR firmware is up to date. The camera occasionally drops the connection to the NVR. I want a script that I can use to automate a reboot of the NVR when a camera loose it's connection
 

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,962
Reaction score
6,794
Location
Scotland
The camera occasionally drops the connection to the NVR.
So it's a camera problem, not an NVR problem?

8.1.5 Reboot
/System/reboot
General Resource v1.0
PUT
Administrator
Description It is used to reboot the device.
Query None
Inbound Data None
Success Return hik:ResponseStaus ResponseStatus
Notes:
ResponseStatus is returned before the device proceeds to reboot.
 

stamand

n3wb
Joined
Jan 18, 2016
Messages
5
Reaction score
0
So it's a camera problem, not an NVR problem?

8.1.5 Reboot
/System/reboot
General Resource v1.0
PUT
Administrator
Description It is used to reboot the device.
Query None
Inbound Data None
Success Return hik:ResponseStaus ResponseStatus
Notes:
ResponseStatus is returned before the device proceeds to reboot.
Like I said this is " occasional ". It sometimes is a different camera. A reboot of the NVR resolves it. What is the stuff above ?
 

fullboogie

Getting the hang of it
Joined
Mar 4, 2019
Messages
156
Reaction score
85
Location
Texas
Too bad you're not on the I-series. The newest firmware update has a new function that allows scheduling NVR reboots.
 

stamand

n3wb
Joined
Jan 18, 2016
Messages
5
Reaction score
0
That would have solved my problem. That being said, a reboot script is the only way to do it. Someone else must have one....
 

Securame

Pulling my weight
Joined
Mar 25, 2014
Messages
664
Reaction score
214
Location
Barcelona, Spain
A "reboot script" like this will work with any unit and firmware.
The bad part is that you are down for at least a minute; you can program it to shut down power daily, for example from 4:59 to 5:00, or whatever time suits you.

 

stamand

n3wb
Joined
Jan 18, 2016
Messages
5
Reaction score
0
A "reboot script" like this will work with any unit and firmware.
The bad part is that you are down for at least a minute; you can program it to shut down power daily, for example from 4:59 to 5:00, or whatever time suits you.
How would this be a reboot script ? This is a timer that shuts off the NVR and restarts it. Shutting it off this way is a bad idea unless you don't care about possible HDD corruption.

I'm looking for something like this (below) that I can run on my Linux box

curl -X GET -d reboot
When I run this, I get these errors

!DOCTYPE html>
<html><head><title>Document Error: Method Not Allowed</title></head>
<body><h2>Access Error: 405 -- Method Not Allowed</h2>
<p>Method PUT not supported by file handler at this location </p>
</body>
</html>
root@debian:~#

I already have a routine that alerts me when a camera goes offline. I just need a script that will allows me to reboot the NVR so that I can tie it all together...
 
Top