ICR-3211
2.8
Power Backup Feature
This router is equipped with a power backup feature. It is a short-term power backup,
which is used to complete the running operation or to send the required data immediately after
the failure of the power supply. The maximal operation time for the power outage depends on
actual cellular technology used and is up to 15 seconds.
The easiest way how to handle this state is to write a custom script and store it in
Config-
uration -> Scripts -> Startup
. Below you can see scripts for three different actions of sending
an SMS, sending an e-mail and sending an SNMP trap.
Send an SMS
This script is going to send an SMS message for when the power supply will reach the
defined threshold voltage.
Following items should be revised in the script:
•
destined phone number,
•
threshold for minimal power supply voltage,
•
content of the SMS message, (
$VOLTAGE
variable stands for the value of the actual power
supply voltage).
# This script monitors the supply voltage and will send an SMS if below the defined
threshold.
PHONE=+xxx123456...
# Set the destined phone number
THRESHOLD=8
# Set the threshold voltage level
SENT=0
while true; do
VOLTAGE=‘status sys | awk ’/Voltage/ { print $4 }’‘
if [ $THRESHOLD -lt ${VOLTAGE%.*} ]; then
SENT=0
elif [ $SENT -eq 0 ]; then
# Sending SMS message
sms $PHONE "Power supply below defined threshold! Actual voltage is $VOLTAGE V."
SENT=1
fi
sleep 1
done
20