Community discussions

MikroTik App
 
rosa
newbie
Topic Author
Posts: 41
Joined: Mon Jan 15, 2024 6:10 am

Correctly determine the status of PPPOE connection?

Tue Jan 16, 2024 5:59 am

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.
 
rosa
newbie
Topic Author
Posts: 41
Joined: Mon Jan 15, 2024 6:10 am

Re: Correctly determine the status of PPPOE connection?

Wed Jan 17, 2024 4:02 am

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={}
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12030
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Correctly determine the status of PPPOE connection?

Wed Jan 17, 2024 7:07 pm

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?

Who is online

Users browsing this forum: No registered users and 7 guests