Hello!
I have try get queue tree rate, but output is null. Why? Thanks for your support.
[bsh@CCR] > :put ([/queue tree print rate as-value where name=GLOBAL_TO_U]);
.id=*1000001;comment=;name=GLOBAL_TO_U;packet-mark=;parent=global;rate=8442592
[bsh@CCR] > :put ([/queue tree print rate as-value where name=GLOBAL_TO_U]->"rate");
[bsh@CCR] >
Have you read the scripting manual? You seem to have just made up the syntax, so it’s not surprising it doesn’t work.
I don’t have any queues, but I posted this yesterday on another thread:
:put [/interface ethernet get [/interface ethernet find where default-name=ether1] mac-address ]
so this:
:put [/queue tree get [/queue tree find where name=GLOBAL_TO_U] rate]
ought to stand some chance of working, although obviously I haven’t tried it.