How to convert internal-id to a string

How do I convert internal id to a string ?
.eg, find retuns bunch of ids, how do I print/export objects represented by the ids ?

[admin@router1] > :put [ /queue tree find max-limit=1351000 ]  
*1000022;*1000023;*1000024;*1000025;*1000026;*1000027;*1000028;*1000029;*100002a;*100002b;*100002c;*100002d;*100002e;*100002f;*1000030;*1000031;*1000032;*1000033

I would like to see each ID printed in print or export format.

What do you want to do?

sent from my mobile phone using tapatalk

Like c0d3rSh3ll said, it really depends on what you want to do… but this might get you started. Use :foreach to loop through all matching entries, and then display a particular attribute, the name for example:

/queue tree
:foreach i in=[find max-limit=1351000] do={
  :put [get $i name]
}

it really depends on what you want to do
While developing script I would like to see what entries the find returns, as they appear in export/print format.

I don’t know if there is a way to do this with the export command.

With the print command:

/queue tree print where max-limit="1351000"

it is not possible to limit items exported from one submenu. You either get all, for example, ‘’/ip firewall filter" entries on none.