<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Arkan,<br>
<br>
Yes it's possible, I ended up with the following setup with Dan's
and Zaid's help:<br>
<br>
Provision firmware-upgrade:<br>
<br>
-- BEGIN --<tt><br>
</tt><br>
<tt>const TAG_UPGRADE = "Tags.upgrade";<br>
const TAG_UPGRADING = "Tags.upgrading";<br>
<br>
const REQ_VERSION = "V3.2.0-B20180412.1617";<br>
<br>
if (declare(TAG_UPGRADE, {value: 1}).value !== undefined) {<br>
// remove upgrade tag<br>
declare(TAG_UPGRADE, null, {value: false});<br>
commit();<br>
// retrieve CPE software version<br>
let REP_VERSION =
declare("InternetGatewayDevice.DeviceInfo.SoftwareVersion",
{value: Date.now()}).value[0];<br>
// make sure versions do not match<br>
if (REP_VERSION !== REQ_VERSION) {<br>
// append upgrading tag (will be removed in
firmware-upgrade-complete)<br>
declare(TAG_UPGRADING, null, {value: true});<br>
commit();<br>
// request upgrade<br>
declare("Downloads.[FileType:1 Firmware Upgrade Image]",
{path: 1}, {path: 1});<br>
declare("Downloads.[FileType:1 Firmware Upgrade
Image].FileName", {value: 1}, {value: REQ_VERSION + ".web"});<br>
declare("Downloads.[FileType:1 Firmware Upgrade
Image].Download", {value: 1}, {value: Date.now()});<br>
}<br>
}<br>
</tt><br>
-- END --<br>
<br>
Provision firmware-upgrade-complete:<br>
<br>
-- BEGIN --<tt><tt><br>
<br>
</tt></tt><tt>const TAG_UPGRADING = "Tags.upgrading";<br>
declare(TAG_UPGRADING, null, {value: false});<br>
</tt><br>
-- END --<br>
<br>
Preset firmware-upgrade:<tt><br>
<br>
Events: 1 BOOT, -7 </tt><tt><tt><tt>TRANSFER COMPLETE</tt></tt><br>
Precondition: Tag = upgrade<br>
Configurations: Provision name: firmware-upgrade<br>
<br>
</tt>Preset firmware-upgrade-complete:<tt><br>
<br>
</tt><tt><tt>Events: 7 TRANSFER COMPLETE<br>
Precondition: Tag = upgrading<br>
Configurations: Provision name: firmware-upgrade-complete<br>
</tt></tt><br>
Upload file with the following parameters:<tt><br>
<br>
Name: </tt><tt>V3.2.0-B20180412.1617.web</tt><tt><br>
Type: </tt><tt>1 Firmware Upgrade Image<br>
OUI: <your devices' mac OUI here></tt><tt><br>
Product class: <your devices' product class here><br>
Version: </tt><tt>V3.2.0-B20180412.1617<br>
<br>
</tt>Put "upgrade" tag on any device you want to upgrade and wait
until it boots up. That's it.<br>
<br>
Best regards,<br>
<br>
George Chelidze<br>
<br>
<tt><br>
<br>
</tt>On 05/10/2018 10:38 PM, Arkan Add wrote:<br>
<blockquote type="cite"
cite="mid:97237592.2142917.1525977533780@mail.yahoo.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div style="font-family:Helvetica Neue, Helvetica, Arial,
sans-serif;font-size:13px;">
<div>Hello Everyone, </div>
<div><br>
</div>
<div> I'm trying to do an automated software upgrade using
Provisions Tab in GenieACS-GUI, but without success. Is it
possible to do it?</div>
<div> I need to compare the device actual sw and do a sw
upgrade if it was different from what is needed.</div>
<div> I did a preset to add a tag for upgraded and not
upgraded devices and maybe i just need to read these tags and
start the upgrade to not upgraded devices.</div>
<div><br>
</div>
<div><br>
</div>
<div>Kind Regards,</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a>
<a class="moz-txt-link-freetext" href="http://lists.genieacs.com/mailman/listinfo/users">http://lists.genieacs.com/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>