cascading dropdown menus for a lot of remote devices

21 views
Skip to first unread message

aristos....@gmail.com

unread,
May 14, 2025, 10:34:00 AM5/14/25
to rundeck-discuss

Imagine this scenario

  • 23 remote offices
  • Each office has 9 device groups
  • Each device group has from 1 to 8 devices
  • All the devices are defined in nodes.xml. 

When running a job, I need to create a dropdown menu that lists the 23 remote offices, then a second dropdown menu is dynamically updated, listing the device groups for that remote office, and when a device group is selected, a third dropdown menu is dynamically updated to show the devices in that group, that exist in that remote office.


Something like:

Office 14 > device group 3 > device 6


Is it possible to do this using my existing nodes.xml, considering that there’s a total of around 650 devices?

Roger McCarrick

unread,
May 23, 2025, 12:27:55 PM5/23/25
to rundeck-discuss
The cascading menus you describe are definitely possible ... but what do you mean by your existing "nodes.xml" ?

Here is a link that explains how to setup cascading options with JSON files
https://groups.google.com/g/rundeck-discuss/c/CcmPknG2NBc/m/UUD0BTSnBgAJ

aristos....@gmail.com

unread,
May 23, 2025, 12:37:41 PM5/23/25
to rundeck-discuss
I mean, I was wondering if I can somehow use my existing nodes.xml file as a source to create the cascading menus. 650 devices are a lot, and it took some time to create nodes.xml. I wouldn't want to start from scratch to create the cascading dropdown menus.

Roger McCarrick

unread,
May 27, 2025, 10:31:49 AM5/27/25
to rundeck-discuss
I would say no, you can't use your nodes.xml. That file describes your nodes and is in XML format.
For cascading drop downs you need JSON files.
It sounds like you are looking at Palo Altos in a Panorama. Panoramas operate with device groups.
You can write a script, perhaps in powershell, to pull all the device groups and auto generate JSON files.
Let me know if it is Panorama.
Reply all
Reply to author
Forward
0 new messages