LogoLogo
  • RouterOS Scripts
  • Scripts
    • Forward log messages via notification
    • Mode button with multiple presses
    • Import SSH keys
    • Act on received SMS
    • Install LTE firmware upgrade
    • Visualize OSPF state via LEDs
    • Use wireless network with daily psk
    • Find and remove access list duplicates
    • Create DNS records for DHCP leases
    • Manage remote logging
    • Forward received SMS
    • Collect MAC addresses in wireless access list
    • Notify about health state
    • Update configuration on IPv6 prefix change
    • Renew certificates and notify on expiration
    • Renew locally issued certificates
    • Upload backup to server
    • Play Super Mario theme
    • Manage IP addresses with bridge status
    • Notify on LTE firmware upgrade
    • Run scripts on ppp connection
    • Run other scripts on DHCP lease
    • Update GRE configuration with dynamic addresses
    • Manage system update
    • Manage LEDs dark mode
    • Upload backup to Mikrotik cloud
    • Send GPS position to server
    • Rotate NTP servers
    • Manage ports in bridge
    • Update tunnelbroker configuration
    • Notify on host up and down
    • Notify on RouterOS update
    • Send notification with early errors
    • Use WPA2 network with hotspot credentials
    • Send backup via e-mail
    • Run rolling CAP upgrades from CAPsMAN
    • Wait for configuration und functions
    • Download packages for CAP upgrade from CAPsMAN
    • Comment DHCP leases with info from access list
  • Initial commands
  • COPYING
Powered by GitBook
On this page
  • Description
  • Requirements and installation
  • Usage and invocation
  • See also

Was this helpful?

  1. Scripts

Download packages for CAP upgrade from CAPsMAN

PreviousWait for configuration und functionsNextComment DHCP leases with info from access list

Last updated 4 years ago

Was this helpful?

Description

CAPsMAN can upgrate CAP devices. If CAPsMAN device and CAP device(s) are differnet architecture you need to store packages for CAP device's architecture on local storage.

This script automatically downloads these packages.

Requirements and installation

Just install the script on CAPsMAN device:

$ScriptInstallUpdate capsman-download-packages;

Optionally install and add a scheduler to run after startup:

$ScriptInstallUpdate global-wait;
/ system scheduler add name=capsman-download-packages on-event="/ system script { run global-wait; run capsman-download-packages; }" start-time=startup;

Only packages available in older version are downloaded. For initial setup place the required packages to CAPsMAN package path (see / caps-man manager). The packages can be downloaded from device with function $DownloadPackage, use something like this to download latest packages to directory routeros:

$DownloadPackage system "" arm routeros;
$DownloadPackage security "" arm routeros;
[...]
$DownloadPackage system "" mipsbe routeros;
$DownloadPackage security "" mipsbe routeros;
[...]

Usage and invocation

Run the script manually:

/ system script run capsman-download-packages;

... or from scheduler.

See also

After package download all out-of-date CAP devices are upgraded automatically. For a rolling upgrade install extra script .

◀ Go back to main README
global-wait
capsman-rolling-upgrade
Run rolling CAP upgrades from CAPsMAN
Wait for configuration und functions
◀ Go back to main README
▲ Go back to top