Community discussions

MikroTik App

Search found 16 matches

by cheesegrits
Fri May 09, 2008 10:25 pm
Forum: Scripting
Topic: API 'find'
Replies: 3
Views: 1397

Re: API 'find'

Yup.

-- hugh
by cheesegrits
Fri May 09, 2008 10:23 pm
Forum: Scripting
Topic: perl API client
Replies: 107
Views: 57340

Re: perl API client

Glad it helps you out.

I've now built a fairly comprehensive provisioning system for our Mtik based wireless networks using it, and so far haven't had to update the main mtik_api.pl core.

If you feel adventurous, feel free to turn it into an actual package ... :)

-- hugh
by cheesegrits
Wed Mar 26, 2008 11:33 pm
Forum: Scripting
Topic: API 'find'
Replies: 3
Views: 1397

Re: API 'find'

Any takers? Here's an example of the problem. I'm writing some provisioning code to add, remove and authorize wireless ACL's. Obviously my "primary key" is the MAC address of the radio. But the 'set' command requires the Mtik internal '.id'. So what I'd like to be able to do is a quick call to the A...
by cheesegrits
Wed Mar 26, 2008 11:13 pm
Forum: Scripting
Topic: perl API client
Replies: 107
Views: 57340

Re: perl API client

New version uploaded. Bug described in previous post is fixed.

-- hugh
by cheesegrits
Tue Mar 25, 2008 8:46 pm
Forum: Scripting
Topic: perl API client
Replies: 107
Views: 57340

Re: perl API client

I think I've tracked down the reason it hangs occasionally on the socket recv. A misunderstanding on my part on how recv works with regards to specified read lengths.

I'm testing the new version, I'll post it when I'm sure it's fixed.

-- hugh
by cheesegrits
Mon Mar 24, 2008 6:24 pm
Forum: General
Topic: Mikrotik API and C# ?
Replies: 14
Views: 8027

Re: Mikrotik API and C# ?

FYI, I posted a perl API client here:

http://forum.mikrotik.com/viewtopic.php?f=9&t=22744

-- hugh
by cheesegrits
Mon Mar 24, 2008 6:01 pm
Forum: Scripting
Topic: perl API client
Replies: 107
Views: 57340

perl API client

[New version uploaded 3/26/2008. Fixed a bug which caused command output to hang sometimes, and added simple command line client] Attached should be a ZIP with three files: Mtik.pm - a simple perl client for the Mtik API. Pretty much a perl port of the python client from the Wiki, with an extra rout...
by cheesegrits
Fri Mar 21, 2008 7:40 pm
Forum: Scripting
Topic: API 'find'
Replies: 3
Views: 1397

API 'find'

I'm testing my new perl API client. Most stuff seems to work fine, but I'm having problems with the 'find' command. In the console, if I want to find (say) a wireless-access entry with a given MAC, I can do this: [admin@foo] /interface wireless access-list> :put [find mac-address="00:02:6F:56:78:9A"...
by cheesegrits
Fri Mar 21, 2008 5:20 pm
Forum: Scripting
Topic: API vs console item ID's
Replies: 0
Views: 886

API vs console item ID's

Is there any particular reason the API seems to report item ID's differently to the equivalent console 'print' command?

The 'print' command starts item ID's at 0, whereas the API starts them from 1.

-- hugh
by cheesegrits
Mon Mar 17, 2008 10:08 pm
Forum: General
Topic: console output changes
Replies: 1
Views: 659

console output changes

I have a bunch of perl script which drive NET::telnet to do "stuff" in 2.x. None of it works on 3.0 because of changes in console output. This was referenced and marked fixed in this thread: http://forum.mikrotik.com/viewtopic.php?f=1&t=20153&p=97246&hilit=console+color#p97246 But even when using th...
by cheesegrits
Wed Jul 18, 2007 8:58 pm
Forum: General
Topic: RADIUS Account-On and Accounting-Off
Replies: 2
Views: 2252

Re: RADIUS Account-On and Accounting-Off

Thanks for the response. Unfortunately I don't currently have a spare Mtik to test b3 on. Can anyone confirm if accounting ON/OFF is being sent in 3.0beta10? This is kind of important, so I'd like to get a definitive answer. [edit] Ah, I just found it in the changelog : > What's new in 3.0beta10: [b...
by cheesegrits
Tue Jul 17, 2007 8:04 pm
Forum: General
Topic: RADIUS Acct-Session-Id in 'ppp active print' and/or SNMP
Replies: 1
Views: 1356

RADIUS Acct-Session-Id in 'ppp active print' and/or SNMP

It would be very useful if you could provide a 'radius' option to the 'ppp active print' command, which would add a column for the RADIUS Acct-Session-Id for each PPP session, if available. As I'm sure you know, some servers (like FreeRadius) provide the option to verify simultaneous use limits, and...
by cheesegrits
Tue Jul 17, 2007 7:23 pm
Forum: General
Topic: RADIUS Account-On and Accounting-Off
Replies: 2
Views: 2252

RADIUS Account-On and Accounting-Off

I'm told that Mikrotik don't support the RADIUS Accounting-On and Accounting-Off status types, as described in RFC 2866 and friends: Acct-Status-Type MAY be used by the client to mark the start of accounting (for example, upon booting) by specifying Accounting-On and to mark the end of accounting (f...
by cheesegrits
Tue Jun 05, 2007 12:23 am
Forum: Wireless Networking
Topic: Linksys models without PPOE Service Name
Replies: 2
Views: 855

Re: Linksys models without PPOE Service Name

Yeah, I came across dd-wrt pretty quickly after starting to google this issue! Unfortunately as an ISP, it's hard for us to do this as part of a customer install. Too much risk of having to eat the cost of a new router if things go wrong, or having an installer spending a whole day sorting a fubar'e...
by cheesegrits
Fri Jun 01, 2007 11:58 pm
Forum: Wireless Networking
Topic: Linksys models without PPOE Service Name
Replies: 2
Views: 855

Linksys models without PPOE Service Name

We recently started migrating our wireless networks over to MT routers, using the clients PPPOE Service Name to obtain the appropriate dynamic IP from freeradius on the backend (via the Called-Station-Id attribute). We have run into a slight snag though, when we discovered that some LinkSys routers ...