Community discussions

User avatar
just joined
Topic Author
Posts: 12
Joined: Fri Feb 06, 2009 12:51 pm

ros_command different responce 4.x 5.x print count-only

Sun Apr 01, 2012 10:58 pm

I use this function in dude to monitor the number of firewall connections on a hotspot.
ros_command("ip firewall connection print count-only")
With the upgrade from ros 4 to ros 5 i do see that there is more coming back then only numbers.
Behind the number there are two extra characters. ( cr lf maybe ?)
Should i make some extra scripting filter to remove the two characters ?.
Can i use some extra options from the ros_command to prevent this problem ?
User avatar
Member Candidate
Member Candidate
Posts: 111
Joined: Thu Nov 04, 2010 11:37 pm
Location: Russia, 78rus

Re: ros_command different responce 4.x 5.x print count-only

Fri Jul 20, 2012 7:14 pm

I have the same promlem!


I found i little workaround:


but it works very unstable! This functoin return "timeout" after 2-3 hours working.

How to fix this problem whith "left" symbols on the end of value?

Who is online

Users browsing this forum: MSN [Bot] and 6 guests