Community discussions

MikroTik App
 
-headstrong-
Member
Member
Topic Author
Posts: 377
Joined: Thu Jun 05, 2008 8:04 pm
Location: South Africa

Script cannot retrieve MPLS TE info...??

Wed Sep 02, 2009 10:13 pm

Hi Guys

I want to write a few scripts but I am having difficulty retrieving the remaining bandwidth value. I have created a TE with 2mbps, see below

"/mpls traffic-eng interface print"

Flags: X - disabled, I - invalid
# INTERFACE BANDWIDTH TE-METRIC REMAINING-BW
0 wlan1 2Mbps 1 2.0Mbps

However, I cannot specify "remaining-bw" after typing the following:

"/mpls traffic-eng interface get"..pushing tab twice does not show any available options. I tried manually typing "/mpls traffic-eng interface get remaining-bw" but no success..

Is my syntax incorrect?
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Script cannot retrieve MPLS TE info...??

Wed Sep 02, 2009 10:18 pm

Try
/mpls traffic-eng interface get 0 remaining-bw
instead.

You need to specify the index of the entry that you're trying to fetch a property from.
 
-headstrong-
Member
Member
Topic Author
Posts: 377
Joined: Thu Jun 05, 2008 8:04 pm
Location: South Africa

Re: Script cannot retrieve MPLS TE info...??

Wed Sep 02, 2009 10:22 pm

Thanks for the super quick response...worked perfectly

Who is online

Users browsing this forum: No registered users and 6 guests