我希望设置hawkBit (运行在服务器上)和swupdate (运行在多个客户机上- Linux ),以在Suricatta模式下执行OS/Software。
1/跟进我在hawkBit社区的文章,我成功地在服务器上运行了hawkBit,如下所示:
2/我成功地将swupdate构建/执行为SWupdate指南
/usr/bin/swupdate -v -k /etc/public.pem -u '-t DEFAULT -u http://<domain>:<port> -i dev01'* Trying <ip address>...
* TCP_NODELAY set
* Connected to <domain> (<ip address>) port <port> (#0)
> GET /DEFAULT/controller/v1/10 HTTP/1.1
Host: <domain>:<port>
User-Agent: libcurl-agent/1.0
Content-Type: application/json
Accept: application/json
charsets: utf-8
< HTTP/1.1 401 Unauthorized
< Date: Sun, 16 May 2021 02:43:40 GMT
< X-Content-Type-Options: nosniff
< X-XSS-Protection: 1; mode=block
< Cache-Control: no-cache, no-store, max-age=0, must-revalidate
< Pragma: no-cache
< Expires: 0
< X-Frame-Options: DENY
< Content-Length: 0
<
* Connection #0 to host <domain> left intact
[TRACE] : SWUPDATE running : [channel_log_effective_url] : Channel's effective URL resolved to http://<domain>:<port>/DEFAULT/controller/v1/dev01
[ERROR] : SWUPDATE failed [0] ERROR corelib/channel_curl.c : channel_get : 1109 : Channel operation returned HTTP error code 401.
[DEBUG] : SWUPDATE running : [suricatta_wait] : Sleeping for 45 seconds.You can use Gateway token in the Auth header of the request, e.g. “Authorization : GatewayToken a56cacb7290a8d8a96a2f149ab2f23d1”但是我不知道客户端是如何发送这个请求的(它应该由swupdate发送,对吗?)
3/按照来自教程@ EclipseCon欧洲2019的这些说明,它指导我发送请求,以便从hawkBit设备模拟器提供多个客户端。问题是如何将它应用到真正的设备上。
另一个困惑是:当创建新的软件模块,在hawkBit UI上发布时,我找不到这些模块的ID,但是通过发送请求创建教程,我可以在响应中看到ID。
所以我的问题是:
1/我的hawkBit设置步骤正确吗?
2/如何配置/运行swupdate (在客户端上)以执行更新:对新软件的轮询、下载、更新、报告状态、.
如果我的描述不够清楚,请告诉我。
谢谢
发布于 2021-05-21 11:43:42
很高兴看到你正在为你的解决方案尝试鹰派!
我有几点意见:
suricatta参数GatewayToken为-g,-k为TargetToken。-g <GATEWAY_TOKEN> (参见SwUpdate文档示例:/usr/bin/swupdate -v -u '-t DEFAULT -u http://<domain>:<port> -i dev01 -g 76430e1830c56f2ea656c9bbc88834a3' )https://stackoverflow.com/questions/67553101
复制相似问题