Page 1 of 1

Correctly determine the status of PPPOE connection?

Posted: Tue Jan 16, 2024 5:59 am
by rosa
PPPOE dialing may encounter a situation where the (status) column is [disconnected] during connection. How to correctly determine this in the script? When this situation occurs, perform the operation of replacing the MAC.

Re: Correctly determine the status of PPPOE connection?

Posted: Wed Jan 17, 2024 4:02 am
by rosa
Flip the forum and watch the discussion with the experts~I solved it myself~

:if (:typeof [([/interface pppoe-client monitor $pppoename once as-value]->"status")] = "disconnected") do={}

Re: Correctly determine the status of PPPOE connection?

Posted: Wed Jan 17, 2024 7:07 pm
by rextended
Flip the forum and watch the discussion with the experts~I solved it myself~

:if (:typeof [([/interface pppoe-client monitor $pppoename once as-value]->"status")] = "disconnected") do={}
Take it sarcastically... What did you smoke?