I would like to generate a list of my simple queues and their OIDs. I can do this with:
simple queue print oid
However, this list only provides me the queue number and not the name of the queue. Additionally, I only need to see bytes-in and bytes-out if at all possible.
I can generate a list like this:
:foreach i in=[/queue simple find] do={:global name [/queue simple get $i name]; :put $name;}
But I do not know the command to get the oid of a specific queue.
What I'm looking for is something like this (which obviously doesn't work):
:foreach i in=[/queue simple find] do={:global name [/queue simple get $i name]; :global oid-bytes-in [/queue simple get $i oid-bytes-in]; :global oid-bytes-out [/queue simple get $i oid-bytes-out]; :put ($name . " " . $oid-bytes-in . " " . $oid-bytes-out);}
Any help would be appreciated!