Code Monkey home page Code Monkey logo

mtik's Introduction

= 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

mtik's People

Contributors

astounding avatar bartbraem avatar philomory avatar tulak avatar xcdr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mtik's Issues

Query in version 3.9 of the Mikrotik or below does not work

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

update

is there any update about this mtik gem? thank you

Feature Request : Customize the port you are connecting to

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)

how use remove command

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 ?

Ruby bundle install still on old 4.0.0 version

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.