Update the firmware using VAPIX API #123
-
As per the VAPIX documentation Upgrade firmware we understand the firmware file can be uploaded to Axis device:
Please provide samples or cURL command for this if you have successfully implemented. Please find my command(Not working) below:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @axisvivek! I think the following curl command will work. curl --anyauth -u "root:<device password>" \
-F 'body={"apiVersion":"1.0","context":"my-context","method":"upgrade"}' \
-F packfil=@Q1656_11_0_108.bin "<device ip>/axis-cgi/firmwaremanagement.cgi" where By the way, |
Beta Was this translation helpful? Give feedback.
-
Worked great for me. I just added the -content-type: multipart/form-data option. Thank you @mattias-kindborg-at-work and @vivekatoffice, you made my life much easier. I can now fully deploy cameras from my script. Minus the initial root account setup. That still doesn't work. |
Beta Was this translation helpful? Give feedback.
Hi @axisvivek! I think the following curl command will work.
where
<device password>
is the device password,Q1656_11_0_108.bin
is the firmware file in current directory, and<device ip>
is the IP adress of the device.By the way,
\
are indicators on Linux and macOS that the command is continuing on the next line, on Windows you can simply omit them.