Hi
Is it possible to fill a variable with the value of "interface/lte/cellular/Access Technology" in a LtAP Router for example ?
If yes, wath are the possible values like: LTE (CA2), Evolved 3G ...etc.
thx for help, Richard
What you mean ?Is it possible to fill a variable with the value of "interface/lte/cellular/Access Technology" in a LtAP Router for example ?
Evolved 3G (LTE) -> you have a LTE connection.If yes, wath are the possible values like: LTE (CA2), Evolved 3G ...etc.
global SiB_MyLTEAccTech ([/interface lte info lte1 once as-value ]->"access-technology") ;
interface/lte/monitor lte1 once
:put ([interface/lte/monitor lte1 once as-value ]->"imei")
:local lteStatus ([interface/lte/monitor lte1 once as-value ]->"status"); :put "Lte is $lteStatus";
{ :local cmdname "info" ; :if ([/system resource get version] ~ "^7\\.") do={:set cmdname "monitor"} :local cmdstring ":return [/interface lte $cmdname ([find]->0) once as-value]" :local ltemon [[:parse $cmdstring]] # mode 1 :put "IMEI is $($ltemon->"imei")" :put "Current Operator is $($ltemon->"current-operator")" # mode 2, if the values are readed multipe times: :local lteimei ($ltemon->"imei") :local lteoperator ($ltemon->"current-operator") :put "IMEI is $lteimei" :put "Current Operator is $lteoperator and the IMEI still $lteimei" }