U
SER
G
UIDE
77
where
<action>
can be any
CLI
command supported by Imola. A sequence of actions is configured
through the sequence of commands:
set trigger shdsl up <action1>
set trigger shdsl up <action2>
set trigger shdsl up <actionN>
The execution of the actions follows the same order according to which they were set.
For example, the command sequence:
set trigger shdsl up ip route add 12.12.12.12 dev atm0
set trigger shdsl up logger
–
r 10.10.1.212 SHDSL is up
set trigger shdsl down ip route del 12.12.12.12 dev atm0
set trigger shdsl down logger
–
r 10.10.1.212 SHDSL is down
sets a static route towards host 12.12.12.12 and sends the log message “
SHDSL is up
” when the
SHDSL interface is activated. When the SHDSL interface is no longer operational the route is
eliminated and the log message “
SHDSL is down
” is sent.
In order to delete a trigger the following commands are used:
set no-trigger shdsl up <action>
set no-trigger shdsl down <action>