Make your router run scripts, pt.2

แชร์
ฝัง

ความคิดเห็น • 17

  • @drumaddict89
    @drumaddict89 หลายเดือนก่อน

    dru got really comfortable with being the main YT face for MT! great progress!! always keen on your uploads. keep up the good work guys!

  • @vasjabatareikin6016
    @vasjabatareikin6016 2 หลายเดือนก่อน

    Thank you, great tips .

  • @codylane2104
    @codylane2104 2 หลายเดือนก่อน +1

    Please update your docs. Devs like me still have to scour through the internet to find how to correctly format for example the date. Good docs can be very well incorporated into the Gemini 1.5 1 million token context window, but your docs, even though huge, still have very many shortfalls.

  • @ariasm8911
    @ariasm8911 2 หลายเดือนก่อน

    what is difference between / and : in start of script lines? for example :log print; and /log print;

    • @zactodd3144
      @zactodd3144 2 หลายเดือนก่อน

      IIRC...
      ":" is for a function, such as ":put" or ":foreach"
      "/" is for root of command structure. " /system", "/wifi" etc.
      Is possibly explained better somewhere on the manual.

    • @zactodd3144
      @zactodd3144 2 หลายเดือนก่อน

      So for your example, ":log" is not valid... I believe.

    • @mikrotik
      @mikrotik  2 หลายเดือนก่อน +1

      '/log' is a CLI command that can be called from a script, but ':log' is a separate scripting command that simply has a shorter syntax. help.mikrotik.com/docs/display/ROS/Scripting#Scripting-Commands

    • @ariasm8911
      @ariasm8911 2 หลายเดือนก่อน

      Thank you guys

    • @zactodd3144
      @zactodd3144 2 หลายเดือนก่อน

      And I was wrong... Obviously I have yet to watch the video, will be doing so when the girls are asleep.
      Thanks to Mikrotik team for clearing up my error

  • @skyfivideos4805
    @skyfivideos4805 2 หลายเดือนก่อน

    For Pt. 3... Maybe cover using script functions to do config, perhaps showing how to take some params to add a L3 VLAN network

    • @mikrotik
      @mikrotik  2 หลายเดือนก่อน

      Can you elaborate on the situation you would like to script for?

  • @FFAMax1
    @FFAMax1 2 หลายเดือนก่อน

    Yay nice

  • @kchiem
    @kchiem 2 หลายเดือนก่อน

    oh shit, a correct "allows"!

  • @FinlayDaG33k
    @FinlayDaG33k 2 หลายเดือนก่อน +1

    Would be nice to have an easy way to check dates.
    Like say: /bla [find where ended=[/system clock get - 1d]
    Would save me so much in my cleanup scripts for UserMan...

  • @mohamadbaghdadi3612
    @mohamadbaghdadi3612 2 หลายเดือนก่อน

    we need python to be integrated with Mikrotik

    • @mikrotik
      @mikrotik  2 หลายเดือนก่อน +2

      Mere mortals could not handle such power...

    • @kchiem
      @kchiem 2 หลายเดือนก่อน +2

      @@mikrotik I'll settle for bash.