Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduction

The beroNet gateways Gateways and cards Cards can receive their configuration via tftp or http. This method can be used to automatically provision the devices. The basic concept is, that the same configuration files that are provided via the backup function, can be used to provision the device. This gives the user the possibility to configure the device in the way he wants via the GUI and then simply download the backup of this configuration and use it to provision multiple devices at once and automatic. 

...

This Document provides a step by step guide on how to provision the beroNet gateways Gateways and cardsCards.

Prerequirements

In order to provision beroNet devices you will need control over at least a web- or tftp-server. This server provides the configuration files either as plain files or generated via a script. Starting from firmware version 3 you will need control over a dhcp DHCP server, only if you want to use auto-provisioning via dhcpDHCP

Provisioning with Firmware >= 16.XX

...

Code Block
http://172.20.5.16/beronet-{MAC}-{SERIAL}.config.xml

letLet's assume {MAC} = D8:DF:0D:00:11:22 and {SERIAL} = 1-01-0000000001

...

Code Block
http://172.20.5.16/beronet-D8DF0D001122-1-01-0000000001.config.xml

this This enables the webserver to provide different config files to different devices, even though the same provisioning URL is set in each device. 

...

When you open the XX.config.xml file in an editor you swill see a <update></update> xml block. There are 2 Paremeters paremeters possible here:

  • <update>yes</update>   -  When the device executes the provisioning, this XML file will be used as new configuration file and it will be imported
  • <update>no</update>     -  When the device executes the provisioning, this XML file will be ignored

...

Manual configuration via the GUI

This method is very simple, you can manually configure the provisioning URL under Preferences→Provisioning. You need to enable "Manual configuration" and then you need to define If the Provisioning should happen:

...

You can also specify a Polling interval in minutes


...

Configuration via the API

The beroNet API is described here: Using the beroNet Gateway & Card API. For Provisioning just a few API commands are required:

...

Code Block
http://172.20.5.10/app/api/api.php?apiCommand=ProvisioningGetConfiguration
ProvisioningGetConfiguration:success:Mode:off;Url:http://172.20.5.16/beronet-{MAC}-{SERIAL}.config.xml;

The following Command command pipe can be used to provision the device via the API:

  1. set a provisioning URL for one time configuration updates
  2. trigger the configuration fetch mechanism
  3. activates the new configurion configuration without reboot
Code Block
http://172.20.5.10/app/api/api.php?apiCommand=ProvisioningSetConfiguration&Mode=once&Url=http://172.20.5.16/beronet-{MAC}-{SERIAL}.config.xml
ProvisioningSetConfiguration:success


http://172.20.5.10/app/api/api.php?apiCommand=ProvisioningTriggerConfig
updateConfig:info:config_provisioning_enabled_by_server updateConfig:info:updated:hardware.conf updateConfig:info:updated:isgw.analog updateConfig:info:updated:isgw.cas updateConfig:info:updated:isgw.causes updateConfig:info:updated:isgw.conf updateConfig:info:updated:isgw.cpt updateConfig:info:updated:isgw.dialplan updateConfig:info:updated:isgw.gsm updateConfig:info:updated:isgw.isdn updateConfig:info:updated:isgw.sip updateConfig:info:updated:isgw.tdm updateConfig:info:updated:misc.conf updateConfig:info:updated:network.acl updateConfig:success:config_provisioning:beronet-D8DF0D0035F4-3-04-0000016254.config.xml ProvisioningTriggerConfig:success


http://172.20.5.10/app/api/api.php?apiCommand=ConfigurationActivate&Option=1
ConfigurationActivate:success

...

Automatic configuration via DHCP

The beroNet devices can be provisionened provisioned completely automatic via the DHCP Serverserver. This is called zerotouch provisioning and works in the following way:

  • Default Network configuration is DHCP
  • Device requests DHCP Settingssettings
  • Device receive TFTP Option 66 (or 67)
  • Device starts provisioning on the URL provided by option 66 (or 67)

...