astounding / mtik Goto Github PK
View Code? Open in Web Editor NEWAn interface to the MikroTik RouterOS API (via TCP) in Ruby
Home Page: http://www.aarongifford.com/computers/mtik/
License: Other
An interface to the MikroTik RouterOS API (via TCP) in Ruby
Home Page: http://www.aarongifford.com/computers/mtik/
License: Other
= MTik -- A Ruby implementation of the MikroTik RouterOS API The MTik gem implements the MikroTik RouterOS API for connecting to devices running RouterOS (with the API enabled) over the network. == Examples Included in the bin subdirectory are four example ruby scripts that use the Ruby API implementation: tikcli:: A command-line-like API interface tikcommand:: A tool for executing a single API command from a unix command-line tikfetch:: A tool for instructing devices to download files from specified URLs (unix command-line tool) tikjson:: Like 'tikcommand' a tool for executing a single API command, except the output is formatted in JSON-style == Download The latest version of MTik can be found at * https://aarongifford.com/computers/mtik/ Ruby RDoc documentation can be found online at * https://aarongifford.com/computers/mtik/doc/ Additional documentation is available at * https://aarongifford.com/computers/mtik/ * https://wiki.mikrotik.com/wiki/API_Ruby_class Source code is available on GitHub: * https://www.github.com/astounding/mtik/ For documentation on the MikroTik RouterOS API, see * https://wiki.mikrotik.com/wiki/API == Installation To install MTik is through its GEM file: % [sudo] gem install mtik-4.1.1.gem == License This gem and all other scripts and documentation files are licensed under a BSD-style license. (See the LICENSE.txt file.) == Report Bugs Bugs/issues may also be reported via GitHub: * https://www.github.com/astounding/mtik/issues/ ALSO, please send the author a note regarding the issue by clicking on the "Contact Me" link in the left-hand menu of the author's web site. The direct URL is: * https://aarongifford.com/leaveanote.html Thank you! -- Aaron D. Gifford
Hello,
When trying to make a filter in query with Mikrotik 3.9, using version 4.0 of mtik does not work.
conn = MTik::Connection.new(:host => host, :port => porta, :user => usuario, pass => senha)
conn.get_reply("/ip/hotspot/user/getall", "?.id=*3")
The code above returns all users of the hotspot. In version 4.0 or higher Mikrotik works normally.
Congratulations on the project.
Big Hug.
Josué Teixeira
ive tried logging in into mikrotik with mtik gem via ruby rails but eachtime i keep getting invalid username or password even though my credentilals are correct
is there any update about this mtik gem? thank you
ISP is blocking TCP ports for only Mikrotik API and API SSL.
Could you possibly implement the ability to customize the port you can connect to on the host?
Tried the traditional syntax "hostnameexample:1112"
Receiving error
getaddrinfo: Name or service not known (SocketError)
Hi,
it seems Mikrotik has implemented new login api, so the old one is not working anymore.
Any change you can implement it?
https://wiki.mikrotik.com/wiki/Manual:API#Initial_login
Thank you
I am trying to login above 6.44 version but error sowing invalid username & password
Hi!
How can I write a command in mikrotik cli like /ip firewall address-list remove [find where comment="10.10.10.10"] using your gem ?
I'm using the new 4.0.4 release and it is great. However found I had to manually install it, where I couldn't refer to the new version via Gemfile and bundle install. Bundle install just goes and installs 4.0.0 version by default.
The mikrotik wiki, the readme, version docs on github and your website also refer to older version/s.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.