DrayTek UK Users' Community Forum

Help, Advice and Solutions from DrayTek Users

Simple web-based check for latest firmware version??

  • bluefin2105
  • Topic Author
  • User
  • User
More
09 Mar 2020 21:25 #1 by bluefin2105
As I tend not to log in directly to my few bits of network kit very often, I've written a powershell script to run a quick check to see if there are new firmware releases that I should be installing. I run the check about once a week. For Draytek and the Vigor2860 I'm currently doing some rather ugly screen scraping from "https://www.draytek.co.uk/support/downloads/vigor-2860", which works but is no doubt a bit fragile. If there's a simpler, more 'robust' web call I can make that would be preferable (and I assume the router itself can do it, otherwise how does it know an update is available?). Does anyone have a better way?

Thanks.

Please Log in or Create an account to join the conversation.

  • mrk26
  • User
  • User
More
09 Mar 2020 21:40 #2 by mrk26
If you register on draytek support, you should get email notification (once you agree for it) when new fw is available.

Please Log in or Create an account to join the conversation.

  • bluefin2105
  • Topic Author
  • User
  • User
More
09 Mar 2020 21:52 #3 by bluefin2105
Thanks. That doesn't satisfy my "I'll just knock up a script" craving though :-) :-)

Please Log in or Create an account to join the conversation.

  • mrk26
  • User
  • User
More
09 Mar 2020 22:08 #4 by mrk26
You of course do what's suit you best.
If fw is stable there may not be updates available for weeks, so keep checking every hour don't make any difference...

Please Log in or Create an account to join the conversation.

  • bluefin2105
  • Topic Author
  • User
  • User
More
09 Mar 2020 23:18 #5 by bluefin2105
Well no, I agree. I don't check that often. The other part of it is that I don't necessarily install the f/w as soon as it's announced - and sometimes I forget whether I've done it or not :-) So a script that lists each device, the current firmware version on it (from SNMP) and the latest available (from the vendor support site) is just a quick "is there anything to do" check without having to login to each device individually. I'm just lazy - there are fewer than 10 devices so it wasn't a big job to start with!

Please Log in or Create an account to join the conversation.

  • hornbyp
  • User
  • User
More
10 Mar 2020 01:38 #6 by hornbyp

bluefin2105 wrote: (and I assume the router itself can do it, otherwise how does it know an update is available?)



I fired up Teleric Fiddler , went to "System Maintenance >> Firmware Upgrade" and hit "Check the latest firmware".
This generated a call to
Code:
http://www.draytek.co.uk/ftp/fwver.php?m=Vigor2860&date=2-10


The response in JSON format, was:-
Code:
JSON |--3.8.9.7 |--/support/downloads/vigor-2860/send/344-vigor-2860/ |--1756-readme-2860-3896 |--https://www.draytek.co.uk/support/ |-- |--


or, using Curl :-
Code:
C:\>curl http://www.draytek.co.uk/ftp/fwver.php?m=Vigor2860^&date=2-10 (Note the added "^" before &date) var LATE_VER=["3.8.9.7","\/support\/downloads\/vigor-2860\/send\/344-vigor-2860\/","1756-v2860-3897-bt","1755-readme-286 0-3896","https:\/\/www.draytek.co.uk\/support\/","",""]; C:\>


I don't know the significance of the &date=2-10 ... it returns the same data without it.

I think you're being optimistic, in assuming that there will be any new firmware for the Vigor 2860 though :D

Please Log in or Create an account to join the conversation.