Hi:
3G connection status is avialable via interface pane on winbox (info …) or via terminal/telnet (/interface ppp-client info ppp).
Several parameters such as status, pin-status, gprs-mode, cops & etc are recovered. And the signal-strengh in dBm.
I’m trying to write some simple script that reads the signal-strengh value and as soon as this value is less than a minimum (lets say -100dBm) some info is logged, but no success on that 'till now.
The way 3G modem info is displayed in the same way as gps-monitor is? I mean, on a gps/ntp routine I run, I use something like this (forget unclosed brackets, I cut the codes):
{/system gps monitor once do={
:if ($"valid" = no) do={
:log info "GPS down, enabling NTP-client";
etc etc ...
Converting this to ppp-client info should be more or less this way:
{/interface ppp-client info PPP once do={
:if ($"signal-strengh" < -100) do={
:log info "3G RSL Low";
etc etc ...
But it’s not working. I’m not able to read the signal-strengh value.
Anyway, I want to build a script that send 3G RSL to a Dude syslog, may be after that generating some alert.
Any help?
Regards (and a nice 2010 4 all)