get ppp-out uptime

Hello ,
I’m trying to get the uptime of the ppp-out connection
where can I get it?
I have try

 /interface get ppp-out1 
actual-mtu    fp-rx-packet         link-downs   rx-byte    tx-drop      
comment       fp-tx-byte           mac-address  rx-drop    tx-error     
default-name  fp-tx-packet         max-l2mtu    rx-error   tx-packet    
disabled      l2mtu                mtu          rx-packet  tx-queue-drop
dynamic       last-link-down-time  name         slave      type         
fp-rx-byte    last-link-up-time    running      tx-byte    value-name   

/interface ppp-client get ppp-out1 
add-default-route       dial-on-demand     mrru        profile       
allow                   disabled           name        remote-address
apn                     info-channel       null-modem  running       
comment                 keepalive-timeout  password    use-peer-dns  
data-channel            max-mru            phone       user          
default-route-distance  max-mtu            pin         value-name    
dial-command            modem-init         port

?


Thanks .,

Try

put ([interface ppp-client monitor ppp-out1 once as-value]->“uptime”)

I don’t have a running ppp-client so the name may be different; also, if the interface is not running for whatever reason, the uptime item is not defined, so you may want to save the complete output into an array and only ask for the value of uptime if the value of status is connected:

local pppInfo [interface ppp-client monitor ppp-out1 once as-value] ; if (($pppInfo->“status”) = “connected”) do={put ($pppInfo->“uptime”)} else={put “the interface is down”}

it’s working ,

Thank you!