python-onvif-zeep icon indicating copy to clipboard operation
python-onvif-zeep copied to clipboard

RestoreSystem passing config file issue

Open TurboJens opened this issue 1 year ago • 1 comments

I need to batch config some cameras, I'm able to set IP address, works okay, but missing something that makes the camera unable to render it's own config page. Must reset the camera or restore backup manually. I thought it would be easier to use RestoreSystem instead and then I'm able to make more adjustments.

Issue, I really can't figure out how to pass the config file to the script. Probably it's just my lack of knowledge and I hope someone is willing to help.

This is working great: from onvif import ONVIFCamera mycam = ONVIFCamera(10.1.1.228, 80, 'admin', '')

device_info = mycam.devicemgmt.GetDeviceInformation() print(device_info)

And this is for setting IP address, works okay, but missing something that makes the camera unable to render it's own config page: mycam.devicemgmt.SetNetworkInterfaces(dict( InterfaceToken='eth0',
NetworkInterface=dict(
IPv4=dict( Enabled=True, Manual=[dict( Address='192.168.0.20', PrefixLength=24)], DHCP=False))))

How could I format the last part to use RestoreSystem with a file, like C:\temp\config.tar.gz

Any help would be greatly apreciated!

TurboJens avatar Sep 03 '24 23:09 TurboJens

I got it, the camera did not support the restoresystem function.

But It did work with config_upload over HTTP.

TurboJens avatar Sep 06 '24 10:09 TurboJens