Community discussions

MUM Europe 2020

Search found 24 matches

by rubence
Mon Feb 22, 2016 5:21 pm
Forum: Scripting
Topic: scripting with for each loop
Replies: 2
Views: 2055

Re: scripting with for each loop

thanks a lot . its working..
by rubence
Sat Feb 20, 2016 9:36 pm
Forum: Scripting
Topic: scripting with for each loop
Replies: 2
Views: 2055

scripting with for each loop

i've some files each starting with "mikrotik" prefix, like mikrotik-1234, mikrotik-5678 and so on.need to do a loop scripting like "for each $filename do /tool fetch $filename " so that i can send all files through ftp with same name with help of /tool fetch command

thanks in advnace
by rubence
Wed Feb 10, 2016 11:03 pm
Forum: Scripting
Topic: need to save simple queue output to a file
Replies: 15
Views: 2282

Re: need to save simple queue output to a file

Probably an SNMP-based solution would be helpful if each user has their own interface that you can poll - or it might be possible that the queues' statistics are available as SNMP-readable OIDs... tried with cacti, probably its also not working because of 700+ queues :( check my other thread http:/...
by rubence
Wed Feb 10, 2016 9:47 pm
Forum: Scripting
Topic: need to save simple queue output to a file
Replies: 15
Views: 2282

Re: need to save simple queue output to a file

although I'd have to agree that using RADIUS may be better in the long run for this case. few times in googling i found documentation about radius+mikrtoik is for pppoe or hotspot. i am using static ip addresses for each client. is it possible to collect download upload data regularly from simple q...
by rubence
Wed Feb 10, 2016 9:15 pm
Forum: Scripting
Topic: need to save simple queue output to a file
Replies: 15
Views: 2282

Re: need to save simple queue output to a file

This sounds like a billing issue - why not play with RADIUS accounting, since that naturally sends you statistics such as how much data the user transferred....
any simple documentation with examples ?? never did radius ...
by rubence
Wed Feb 10, 2016 9:05 pm
Forum: Scripting
Topic: need to save simple queue output to a file
Replies: 15
Views: 2282

Re: need to save simple queue output to a file

I suggest you rethink your approach to the problem. The API seems to be the way to go - from a remote device, just call "print" (as Deantwo showed), and write the results to wherever in whatever format you want. If you insist on storing them at the router, that's fine too, just use the API to actua...
by rubence
Wed Feb 10, 2016 7:49 pm
Forum: Scripting
Topic: need to save simple queue output to a file
Replies: 15
Views: 2282

Re: need to save simple queue output to a file

working mikrotik router : hAP lite package version 6.28 NOT working router: CCR1036-12G-4S version 6.34 Make the delay 2s, not 1s. The HDD writes every 1.5s, so if you're using 1s, you're gambling on exactly when the HDD read and writes are going to be. The other router is on a lucky streak, but it ...
by rubence
Wed Feb 10, 2016 7:44 pm
Forum: Scripting
Topic: need to save simple queue output to a file
Replies: 15
Views: 2282

Re: need to save simple queue output to a file

Well, what is the error message when you paste the script into the terminal? Could be it is reaching the string limit... [rubence@MikroTik] > { {... :local message "Queues:" {... :local queueList [/queue simple find] {... :foreach q in=$queueList do={ {{... :local qName [/queue simple get $q name] ...
by rubence
Wed Feb 10, 2016 4:34 pm
Forum: Scripting
Topic: need to save simple queue output to a file
Replies: 15
Views: 2282

Re: need to save simple queue output to a file

hey,
your script is ok i think
its working in router where i've 20 queues . but with 700 queues same script is not working.
by rubence
Wed Feb 10, 2016 4:19 pm
Forum: Scripting
Topic: need to save simple queue output to a file
Replies: 15
Views: 2282

Re: need to save simple queue output to a file

{ :local message "Queues:" :local queueList [/queue simple find] :foreach q in=$queueList do={ :local qName [/queue simple get $q name] :local qTarget [/queue simple get $q target] :local qBytes [/queue simple get $q bytes] :set message ($message . "\r\n" . "name=\"" . $qName . "\" target=" . $qTarg...
by rubence
Wed Feb 10, 2016 3:15 pm
Forum: Scripting
Topic: conditionaly remove files
Replies: 3
Views: 2245

Re: conditionaly remove files

thanks dean, urs one is the perfect solution i guess. though i found following script is working properly /tool fetch address=192.168.200.254 src-path=$filename user=mt mode=ftp password=sr@4944 dst-path=$filename upload=yes; :log info "$filename File Sent"; /file remove [find name=$filename]; :log ...
by rubence
Tue Feb 09, 2016 4:26 am
Forum: Scripting
Topic: conditionaly remove files
Replies: 3
Views: 2245

conditionaly remove files

i've following line in my script for transferring files to remote /tool fetch address=192.168.200.254 src-path=$filename user=mt mode=ftp password=sr@4944 dst-path=$filename upload=yes; i need to remove the file from MT only after successful transfer. if ftp can not be done for network trouble or re...
by rubence
Mon Feb 08, 2016 3:47 pm
Forum: Scripting
Topic: need to save simple queue output to a file
Replies: 15
Views: 2282

need to save simple queue output to a file

hello all, /queue simple print stats file=usage.txt output is 0 name="queue1" target=192.168.230.52/32 rate=0bps/0bps total-rate=0bps packet-rate=0/0 total-packet-rate=0 queued-bytes=0/0 total-queued-bytes=0 queued-packets=0/0 total-queued-packets=0 bytes=6751734/192510318 total-bytes=0 packets=9024...
by rubence
Thu Feb 04, 2016 6:46 pm
Forum: General
Topic: Simple Queue From Mikrotik is not working in cacti
Replies: 1
Views: 1010

Re: Simple Queue From Mikrotik is not working in cacti

when verbose query for simple queue getting following error :

+ <arg_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting arg_index entries

Though Mikrotik - Queue - Simple query status is success. please help
mt1.png
by rubence
Tue Feb 02, 2016 1:39 pm
Forum: General
Topic: Simple Queue From Mikrotik is not working in cacti
Replies: 1
Views: 1010

Simple Queue From Mikrotik is not working in cacti

Hi everyone I m trying to configure Mikrotik simple queue on my cacti as per following tutorial : http://forum.mikrotik.com/viewtopic.php?t=21189 but i getting error the RRD files does not exist. but i m getting the ether graphs perfectly ! RRDTool Says: ERROR: opening '/usr/share/cacti/rra/server_t...
by rubence
Tue Oct 13, 2015 6:00 pm
Forum: General
Topic: ping between different network within same ether and from different ether
Replies: 4
Views: 588

Re: ping between different network within same ether and from different ether

no . 199.2 is not blocking ping request.

i can ping both network from router without selecting any interface
i can not ping ether1 network by selecting ether2 interface and vice-versa

btw i've multiple ip configuration in both interface . is it the cause of problem ??
by rubence
Wed Oct 07, 2015 10:22 pm
Forum: General
Topic: ping between different network within same ether and from different ether
Replies: 4
Views: 588

Re: ping between different network within same ether and from different ether

thanks for ur reply no its nt working by default [abc@MikroTik] > /ip route print Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit # DST-ADDRESS PREF-SRC GATEWAY DISTANCE 1 ADC 192.168.199.0/24 19...
by rubence
Wed Oct 07, 2015 7:21 am
Forum: General
Topic: ping between different network within same ether and from different ether
Replies: 4
Views: 588

ping between different network within same ether and from different ether

Hello all, I've following Network WAN0 IP address X.X.X.X is connected with interent LAN0 ip address 192.168.0.1 is used to connect with some ip cameras using ip block 192.168.0. 0/24 LAN0 ip address 192.168.1.1 is used as some windows machines ( using ip block 192.168.1.0/24) internet gateway. LAN1...
by rubence
Wed Oct 07, 2015 7:15 am
Forum: General
Topic: ping between different network within same ether and from different ether
Replies: 1
Views: 333

ping between different network within same ether and from different ether

Hello all, I've following Network WAN0 IP address X.X.X.X is connected with interent LAN0 ip address 192.168.0.1 is used to connect with some ip cameras using ip block 192.168.0. 0/24 LAN0 ip address 192.168.1.1 is used as some windows machines ( using ip block 192.168.1.0/24) internet gateway. LAN1...
by rubence
Thu Apr 02, 2015 10:39 pm
Forum: Scripting
Topic: Youtube Bandwidth
Replies: 29
Views: 33431

Re: Youtube Bandwidth

hello cybertod and z3ro

youtube bandwidth is not working for me .... i cant make simple queue without target address ... as its showing network address is needed. so i enter 0.0.0.0/0 .. but its not working at all ..
by rubence
Sun Jan 30, 2011 4:16 pm
Forum: Scripting
Topic: notify the user about their consumption
Replies: 6
Views: 1503

Re: notify the user about their consumption

reset-counter when reboot is a very discussed problem or limitation of MT. can we take the bandwidth consumption information from any other source ? MT is creating graph for bandwidth consumption for each queue which is stored and remain unchanged when router gets reboot. can we use this information...
by rubence
Wed Jan 26, 2011 10:33 pm
Forum: The User Manager
Topic: User Manager Feature request - sticky please?
Replies: 193
Views: 54351

Re: User Manager Feature request - sticky please?

usermanager can do time-limit and traffic amount limit. when user login his page he can see how much time (i.e, time-limit) he is given. but he cant see how much traffic he is given (i.e, trffic-limit) . is there any option to show the user how much traffic limit he is given, so that he can calculat...
by rubence
Tue Jan 25, 2011 6:04 pm
Forum: Scripting
Topic: notify the user about their consumption
Replies: 6
Views: 1503

Re: notify the user about their consumption

thanks mrz,

that page helped me a lot. now i can do email with the information of total-bytes for a queue. the problem is when my MT get reboot all information of total-bytes from simple queue get lost and it starts again from 0.
by rubence
Mon Jan 24, 2011 10:14 am
Forum: Scripting
Topic: notify the user about their consumption
Replies: 6
Views: 1503

notify the user about their consumption

hi,

i want to write a script which will notifiy user by email about their total use. it'll take the total-bytes (if possible download bytes and upload bytes separtely) from simple queue from a specific queue name and send email to a specific email address.

plz help