MikroTik Scripting: Lesson 2 - Hello World
ฝัง
- เผยแพร่เมื่อ 4 ต.ค. 2024
- In this lesson, we continue on from lesson one to configure our development environment and build our first "hello world" script. In this video we:
Open a VSC development folder
Verify SSH access from VSC
Add a development user
Add 2 extensions to VSC: Mikrotik RouterOS Script & ftp-sync
Configure plugin ftp-sync
Create, test, deply & debug our script script (hello.rsc)
The slide deck, cheat-sheet and book details are available from mikrotikscript....
If you enjoyed this video, please consider giving it a "like" and subscribe to my channel. Thanks!
** Don't forget that you can get a copy of the Mikrotik Scripting book from Amazon in paperback and e-book formats. **
Best MikroTIk Scripting class I've ever attended; Thank you, I'm going to buy the book now!
Thanks for the feedback, glad it was useful. :)
Thank you so much for providing these videos, Nigel. I don't have a lot of money, and this has been a big help studying. I will be buying your book with my first paycheck!
Thanks for the kind words. I'm so glad the videos have been useful. Good luck with your studies and future career.
This is exactly what I needed to find. Thanks so much!
Glad it was helpful!
WOW thanks for the lesson sir, i like your content about computer network.
You are most welcome
17:35 Just a detail to share. MikroTik accepts short command names if the rest of it has only one possible match. For example, you can use 'pr' instead of 'print', and it will still work. Similarly, 'pu' can be used exclusively for 'put'. However, the single letter 'p' can be ambiguous, as it can refer to multiple commands like 'parse', 'pick', or 'put'. I'm not advanced in scripting on MikroTik, but your playlist will certainly help me. Thank you!
Hi, thanks for the feebback and sharing this useful information!
Amazing work ...that summary after the tutorial is amazing
Glad you liked it!
thank you for the videos sir, it's really hard to find clear and descriptive mikrotik scripting tutorial
Glad it was helpful. Thank you for the kind feedback!
Really good tutorials. Just started scripting on my Rb2011uias router. 👍
Good to hear. Hope it's all going well :)
Thanks, very interesting!
Glad you liked it!
Hi!
ftp-sync extension does not work with strong crypto option enabled in RouterOS 7.11.
I got an error:
"Ftp-sync: Uploading TemperatureChecker.rsc failed:
Error: Handshake failed: no matching host key format"
or should do
/ip/ssh/set strong-crypto=no
on my router.
Switched to SFTP extension by Natizyskunk (v1.16.3).
My sftp.json in .vscode directory look like:
{
"name": "Profile Name",
"host": "192.168.88.1",
"protocol": "sftp",
"port": 22,
"secure": true,
"username": "my_username",
"remotePath": "",
"password": "my_password",
"uploadOnSave": true
}
This works.
Thanks for sharing this information!