I am working on a issue where in I need to run 2 commands (multi step) to get the data I want. This is for a PAN firewall and I am using the APIs.
- url: /api?type=op&cmd=<show><interface>hardware</interface></show>&key=${credentials.api-key}
- I get the interface name, read the dynamic variable "nic" and use it later on in step 2.
- I also need to read the speed of that interface "speed", but I don't want to iterate on it.
- url: /api?type=op&cmd=<show><counter><rate>${nic}</rate></counter></show>&key=${credentials.api-key}
- I use dynamic("nic") to do what I need to get to.
- If I use dynamic("speed") it iterates on all the options, which I don't want.
Any thoughts/help on getting to iterate on dynamic variable "nic", but also read the associated speed along with it in the first step?
Thanks
Satya