i have a long list with all my user and i want to take to other mt i got.
thxs in advance
Export compact to a file and copy the bits you want?
/queue simple export file="queues.txt"and hit enter.
From a terminal.
Click "New Terminal", typeros code
/queue simple export file="queues.txt"and hit enter.
Not directly and/or easily.
To export just the names, you could create a custom script at "/system script", but you'd have to learn scripting for that.
For Excel, it's even harder. The easiest way is to create a CSV file using scripting. Alternatively, if you know any programming language (C, PHP, JAVA, C#, etc.), you could connect to the router using the API protocol and use whatever other libraries are available to that language to programmatically create Excel files.
:local "filename" "queue_names.txt"; #Create a (nearly) empty file to overwrite later /file print file=$filename where 1=0; :local contents ""; /queue simple :foreach "queue" in=[find] do={ :set "contents" ($contents . [get $queue "name"] . "\n"); }; /file set $filename contents=$contents;I think Excel might be able to extrapolate that into a column of values, but I'm not sure. If it doesn't, you'd have to figure out what it does and does not accept from text files before reworking the script accordingly.
I think the following should work generating a list of names (one per row)ros code
:local "filename" "queue_names.txt"; #Create a (nearly) empty file to overwrite later /file print file=$filename where 1=0; :local contents ""; /queue simple :foreach "queue" in=[find] do={ :set "contents" ($contents . [get $queue "name"] . "\n"); }; /file set $filename contents=$contents;I think Excel might be able to extrapolate that into a column of values, but I'm not sure. If it doesn't, you'd have to figure out what it does and does not accept from text files before reworking the script accordingly.