question

NickL avatar image
NickL asked madhuri edited

Tbml command to list all devices in topology?

Is there a tbml command/query to return all the device names in the topology? The idea here is to iterate through and open each one.
iTesttopologytbml
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

madhuri avatar image
madhuri answered madhuri edited
We could achieve this by using [tbml deviceList] and [tbml query //tbml/body/resources/resource\[@id="resource_0"\]/property\[@name="name"\] commands as shown in below screenshot.![alt text][1] [1]: /storage/temp/3488-tbml.png

tbml.png (22.0 KiB)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

madhuri avatar image
madhuri answered madhuri edited
We could also use [tbml property -id "deviceid" name]. ![alt text][1] [1]: /storage/temp/3489-tbml.png

tbml.png (9.7 KiB)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

NickL avatar image
NickL answered
Would [testbed devices] do this?
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.