Community discussions

MikroTik App
 
petr5250
just joined
Topic Author
Posts: 23
Joined: Mon Jun 12, 2006 5:06 pm

Scripting problem

Wed May 02, 2007 12:39 am

To search for existing route I'm using following script:
:put [/ip route find dst-address=172.16.90.104/30 interface=ether6] 
Although searched IP address exists, script returns no value.

Can you help me find the problem? I'm using it on RouterOS v. 2.9.40
Last edited by petr5250 on Thu May 03, 2007 10:52 pm, edited 2 times in total.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7211
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Scripting problem

Wed May 02, 2007 1:05 am

...
Although searched IP address exists, script returns no value.
Are you looking route or ip address?
 
petr5250
just joined
Topic Author
Posts: 23
Joined: Mon Jun 12, 2006 5:06 pm

Wed May 02, 2007 1:06 am

I'm looking for route. Sorry
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7211
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Wed May 02, 2007 1:12 am

this script works on v2.9.42
make sure you typed correct dst address and interface
 
petr5250
just joined
Topic Author
Posts: 23
Joined: Mon Jun 12, 2006 5:06 pm

Wed May 02, 2007 1:18 am

The problem is, that script works in 99% of cases, but sometimes it fails to return the value. When I look for the route in output of /ip route print, it is there, but script does not return it.