Community discussions

MikroTik App
 
alixviral
just joined
Topic Author
Posts: 7
Joined: Tue Apr 23, 2024 12:11 pm

help me to make PPPOE scheduler script

Thu Apr 25, 2024 10:27 pm

1-gets the current date and time from the router
2-It iterates over all PPP secrets with the profile ''A''
3-For each PPP secret, it extracts the comment
4-It extracts the expiration date and time from the comment. data format YYYY-MM-DD HH:MM:SS | Example 2024-04-25 21:10:00 rmmber the system data format is |Apr/25/2024|
so the script need to shift time format to work
5-It compares the expiration date and time with the current date and time.
6-If the expiration date and time have passed, it sets the profile to "B" and removes the active PPP connection associated with that secret.
ROS v7.14

Who is online

Users browsing this forum: No registered users and 8 guests