Community discussions

MikroTik App
 
User avatar
robyhr
newbie
Topic Author
Posts: 25
Joined: Fri May 25, 2007 8:03 pm
Location: Croatia
Contact:

Mikrotik script editor and ChatGPT

Mon Mar 13, 2023 9:34 am

We tried asking ChatGPT about debugging Mikrotik scripts, and his response was:

"Use the script editor in the Mikrotik RouterOS web interface to write and edit your scripts. This editor includes syntax highlighting and error checking features, which can help you catch mistakes and make your scripts more readable and maintainable."

Is there really a script editor with syntax highlighting and error checking in web interface of Mikrotik or is it another one of ChatGPT's lies? I looked for it but couldn't find it.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26322
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Mikrotik script editor and ChatGPT

Mon Mar 13, 2023 9:37 am

ChatGPT is not an encyclopedia, it is a conversation bot. It has no knowledge, it invents stuff, for conversation purposes.
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 2865
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: Mikrotik script editor and ChatGPT

Mon Mar 13, 2023 9:51 am

We tried asking ChatGPT about debugging Mikrotik scripts...
I do not believe ... really?
It took years to persudae people that search engines are only additional tools for finding information and the answers should be verified. I'm still not sure if it succeded.
Now we face the same problem ... how to teach people that ChatGPT is not a "swiss-army knife" for solving every problem as it "knows better".

Edit:

According to ChatGPT: viewtopic.php?t=194143
Last edited by BartoszP on Mon Mar 13, 2023 10:00 am, edited 1 time in total.
Reason: added link to another topic
 
User avatar
memelchenkov
Member Candidate
Member Candidate
Posts: 202
Joined: Sun Oct 11, 2020 12:00 pm
Contact:

Re: Mikrotik script editor and ChatGPT

Mon Mar 13, 2023 10:07 am

ChatGPT “lies” not more than average citizen in real life. It’s not a “lie” by itself but something like a cognitive distortion that humans have. But some people treat it like a strict computer program, like an expert system. No, it’s a “black box” machine transforming input from really big database. Like you sit down to read all books in whole library and then will try to make adequate and verified answers. Like talking about countries where you never been by only looking Instagram of titty girls. You should go to a professional rather than to a book worm who read a lot but understand very little. I hope, I answered this and future questions about ChatGPT.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Mikrotik script editor and ChatGPT

Mon Mar 13, 2023 11:34 am

Is why:
viewtopic.php?t=194143


I finally understood...

They are creating "a machine" to replace one of the most hated jobs in the world: a politician...

On the other hand, he speaks well, promises well, it seems that his speeches contain something ... but in the end he doesn't do s–t ...
THE SAME...
 
pe1chl
Forum Guru
Forum Guru
Posts: 10195
Joined: Mon Jun 08, 2015 12:09 pm

Re: Mikrotik script editor and ChatGPT

Mon Mar 13, 2023 11:49 am

I can understand why ChatGPT would make this mistake. It sees patterns like "the 3 configuration interfaces of RouterOS present the same data in 3 different ways" and there is a commandline script editor/printer with syntax highlighting and error checking, so why would it not be the same in webfig and winbox?
It seems like a "things to do" item for MikroTik to fix that, so that ChatGPT again is speaking the truth...
(not that I value this higher than achieving feature parity between v7 and v6, but that is another matter)
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Mikrotik script editor and ChatGPT

Mon Mar 13, 2023 12:25 pm

So thank goodness that there is also ChatGPT that "tells" what MikroTik must do, in addition to all the other experts on the forum who know how to run the company?
How lucky the MikroTik Staff is, it's full of people who tell them what to do, otherwise they had already closed since 2003...
What does MikroTik do with administrators, just read the forum, or ask ChatGPT.
All money saved, so he hires another dozen programmers, in order to stand still for months to realign all programmers with the existing hardware & software...
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19106
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Mikrotik script editor and ChatGPT

Mon Mar 13, 2023 1:15 pm

I asked ChatGPT how to best setup a server on MT, do you know what the response was?

Not possible until Mikrotik adds zerotrust cloudflare tunnel as an options package for all MT routers, and then Mikrotik will be the safest server option on the market!
 
holvoetn
Forum Guru
Forum Guru
Posts: 5405
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Mikrotik script editor and ChatGPT

Mon Mar 13, 2023 1:17 pm

Knowing that source info from ChatGPT ends around somewhere 2021, I highly doubt it responded as such.

But kudos for your persistence :lol:
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Mikrotik script editor and ChatGPT

Mon Mar 13, 2023 2:29 pm

@anav, @holvoetn,
if both you want, I ask ChatGPT to make me a script, I have ZeroTrust with that... :lol: :lol: :lol:
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 2865
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: Mikrotik script editor and ChatGPT

Mon Mar 13, 2023 4:20 pm

Kind of oxymoron: to trust ZeroTrust. :)
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3253
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: Mikrotik script editor and ChatGPT

Mon Mar 13, 2023 5:25 pm

I can understand why ChatGPT would make this mistake.
Well, it sees a large number of older feature requests, and assumes a vendor might have added them after X years... not unreasonable ;)

We tried asking ChatGPT about debugging Mikrotik scripts
On the "debugging" part, it does avoid that discussing that. And it would certainly miss the esoteric ":import verbose=yes" syntax to at least get line numbers to debug a script, the "verbose=" part isn't documented.
 
User avatar
cfikes
Member Candidate
Member Candidate
Posts: 106
Joined: Mon Dec 08, 2014 9:14 pm
Location: Texas
Contact:

Re: Mikrotik script editor and ChatGPT

Mon Mar 13, 2023 5:40 pm

I asked ChatGPT how to best setup a server on MT, do you know what the response was?

Not possible until Mikrotik adds zerotrust cloudflare tunnel as an options package for all MT routers, and then Mikrotik will be the safest server option on the market!
I look forward to the day when Normis and Viktors release the "Anav Tunnel Package"
 
holvoetn
Forum Guru
Forum Guru
Posts: 5405
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Mikrotik script editor and ChatGPT

Mon Mar 13, 2023 5:49 pm

ATP

Hmmm.... Would be a nice name.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3253
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: Mikrotik script editor and ChatGPT

Mon Mar 13, 2023 5:51 pm

That sounds like broader offering that also include ZeroTier for TILE/etc as well. ;)
 
pe1chl
Forum Guru
Forum Guru
Posts: 10195
Joined: Mon Jun 08, 2015 12:09 pm

Re: Mikrotik script editor and ChatGPT

Mon Mar 13, 2023 6:11 pm

Well, I watched a video about ChatGPT generating code for an Arduino setup and I was truly impressed. I had never expected that from the vague description of what it had to do, it would generate code that was close to correct. It made a couple of beginner mistakes, but it did a lot of things right the first time, and when pointed at the mistakes it had made it came back with corrections.
Now of course Arduino code is like C, so its syntax is clear and well-defined. RouterOS scripting is a completely different animal. Maybe it makes more mistakes with that.
(just as I do, although I am an experienced programmer. with RouterOS scripting I often exceed syntax limitations that one would not expect to be there)
 
Guntis
MikroTik Support
MikroTik Support
Posts: 158
Joined: Fri Jul 20, 2018 1:40 pm

Re: Mikrotik script editor and ChatGPT

Mon Mar 13, 2023 6:22 pm

There is a syntax checker within RouterOS, open up Terminal, "/system script edit scriptname source", you will have to press f5 to redraw the syntax highlights though.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10195
Joined: Mon Jun 08, 2015 12:09 pm

Re: Mikrotik script editor and ChatGPT

Mon Mar 13, 2023 6:27 pm

That is what I wrote above. ChatGPT probably assumed that it would work in webfig and winbox as well (as one rightly can assume in the general RouterOS world)...
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Mikrotik script editor and ChatGPT

Mon Mar 13, 2023 6:31 pm

In fact they work both on winbox and on webfig, just open the terminal...
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3291
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Mikrotik script editor and ChatGPT

Sun Mar 19, 2023 9:59 pm

ChatGTP can give you some idea on how to do stuff, and I have for sure solved some problem with the answer I has got.
But as other points out, take care, it makes lots of stuff up.

@Rextended I will travel to Italia in may to see your beautiful country :)
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Mikrotik script editor and ChatGPT

Mon Mar 20, 2023 1:14 am

@Rextended I will travel to Italia in may to see your beautiful country :)
Thank you ;)
I hope you enjoy

Who is online

Users browsing this forum: No registered users and 15 guests