GPRS connection is active and the
interface has obtained an IP address
GPRS interface
(modem HSDPA or
UMTS - models 3xx0)
The connection is correctly
established
GPRS connection is active and the
interface has obtained an IP address
GPRS TRIGGERS CONFIGURATION
It is possible to define actions to execute when the GPRS interface is activated or deactivated by
using the following commands
set trigger gprs up <action>
set trigger gprs down <action>
where <action> is any CLI command supported by Imola. A sequence of actions is specified by a
sequence of commands:
set trigger gprs up <action1>
set trigger gprs up <action2>
set trigger gprs up <actionN>
The execution of the actions follows the same order according to which they were set.
For example, with the following commands:
set trigger gprs up ip route add 12.12.12.12 dev ppp0
set trigger gprs up logger –r 10.10.1.212 ADSL is up
set trigger gprs up hello 85.34.166.18 514
set trigger gprs down ip route del 12.12.12.12 dev ppp0
set trigger gprs down logger –r 10.10.1.212 ADSL is down
A static route towards host 12.12.12.12 is set and a log message “GPRS is up” is sent. An hello
command is executed. It sends a message containing IP address of the GPRS interface, hostname
and serial number to the specified IP address and port.
The route is eliminated and a log message “GPRS is down” is sent when the GPRS session is
terminated.
In order to cancel a trigger the following commands are used:
set no-trigger gprs up <action>
set no-trigger gprs down <action>
GPRS TRAFFIC CONTROL
The router can be configured in order to make input and output traffic control on the GPRS
interface. In particular, it is possible to configure a threshold value and trigger events when traffic,
in a given unit of time, is higher or lower than the defined threshold.
set gprs traffic-control input-threshold <N>