Rebooting IP cameras remotely

Hikvision

Complete Hikvision API documentation is available here.

To reboot remotely a Hikvision IP camera, all one needs to do is ‘PUT’ /System/reboot:

curl -X PUT --user {USERNAME}:{PASSWORD} http://{CAMERA_IP}/System/reboot

Dahua

Complete Dahua API documentation is available here.

To reboot remotely a Hikvision IP camera, all one needs to do is 'GET' /cgi-bin/magicBox.cgi?action=reboot:

curl --user {USERNAME}:{PASSWORD} http://{CAMERA_IP}/cgi-bin/magicBox.cgi?action=reboot

8 thoughts on “Rebooting IP cameras remotely”

    1. I haven’t looked into it, but most likely yes, as they changed a lot of things in new firmware.

      1. Sorry, correct one that worked is:

        curl –digest -v -X PUT -u admin:password “http://192.168.0.64/ISAPI/System/reboot”

        Output was:

        C:\Users\Dell>curl –digest -v -X PUT -u admin:password “http://192.168.0.64/ISAPI/System/reboot”
        * Trying 192.168.0.64:80…
        * Connected to 192.168.0.64 (192.168.0.64) port 80
        * Server auth using Digest with user ‘admin’
        > PUT /ISAPI/System/reboot HTTP/1.1
        > Host: 192.168.0.64
        > User-Agent: curl/8.4.0
        > Accept: */*
        >
        < HTTP/1.1 401 Unauthorized
        < Date: Sat, 01 Jun 2024 14:52:47 GMT
        < X-Content-Type-Options: nosniff
        < X-Frame-Options: SAMEORIGIN
        < X-XSS-Protection: 1; mode=block
        < Content-Length: 178
        < Content-Type: text/html
        < Connection: close
        < WWW-Authenticate: Digest qop="auth", realm="IP Camera(F1193)", nonce="306464643a64343439663239383aef6c883f3833b3d6dc6eda9031a12253", stale="FALSE"
        PUT /ISAPI/System/reboot HTTP/1.1
        > Host: 192.168.0.64
        > Authorization: Digest username=”admin”,realm=”IP Camera(F1193)”,nonce=”306464643a64343439663239383aef6c883f3833b3d6dc6eda9031a12253″,uri=”/ISAPI/System/reboot”,cnonce=”7da235d02686a14ec2ae1aefe80e11e6″,nc=00000001,response=”732dae49a840d845ac9b25b3f23f00fa”,qop=”auth”
        > User-Agent: curl/8.4.0
        > Accept: */*
        >
        < HTTP/1.1 200 OK
        < Date: Sat, 01 Jun 2024 14:52:47 GMT
        < X-Content-Type-Options: nosniff
        < X-Frame-Options: SAMEORIGIN
        < X-XSS-Protection: 1; mode=block
        < Content-Length: 275
        < Connection: close
        < Content-Type: application/xml
        <

        /ISAPI/System/reboot
        1
        OK
        ok

        * Closing connection

    2. Yes, I suspect so. Now in June 2024, I just managed to get one the Hikvision ANPR cameras to reboot with (On Windows):

      curl –digest –-http1.1 -v -X PUT -u username:password “http://192.168.0.64/ISAPI/System/reboot”

  1. Thank you, Sergei, for providing the curl command to reboot a Hikvision camera! Worked perfectly and was able to bring a client’s camera back online from half a continent away.

  2. curl –digest –http1.1 -X PUT –user username:password http://{camera-ip}/System/reboot

    This is how to reboot a hikvision camera.
    Note that you either have to be admin or create a user just for rebooting the camera. Make the new user an “operator”.
    For it to work the new user/operator has to have rights to 3 remote settings 1.Remote: Parameters Settings 2.Remote: Log Search/Interrogate Working 3.Remote: Shutdown/Reboot
    You can do this under “modify user”

    1. On a DS-7216HGHI-F2, the following works from Windows:

      curl –digest –http1.1 -X PUT –user username:password “http://{camera-ip}/ISAPI/System/reboot”

Leave a Reply

Your email address will not be published. Required fields are marked *