Script cannot retrieve MPLS TE info...??

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?

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.

Thanks for the super quick response…worked perfectly