07-12-2020 02:15 AM
In an iOS 15 router/switch you can use shell variables in your script when you do
(config)# shell processing full
(config)# MyVariable=SomeValue
I can then reference the MyVariable with $MyVariable
e.g.
Switch# MyVariable="Hello World"
Switch# echo $MyVariable
Hello World
The above is usefull when I set the variables in the beginning of my config script and paste it into the CLI
Does anyone know if there is the same feature in ASA 9.x ?
I can't seem to find any documentation on it. Any guidance would be appreciated.
Thanks.
Alex
Solved! Go to Solution.
07-12-2020 03:17 AM
That's not supported in any ASA version directly.
If you interact with the ASA via its API you could build the variable usage into your IDE that you use as the frontend for the that.
https://www.cisco.com/c/en/us/td/docs/security/asa/api/qsg-asa-api.html
07-12-2020 03:17 AM
That's not supported in any ASA version directly.
If you interact with the ASA via its API you could build the variable usage into your IDE that you use as the frontend for the that.
https://www.cisco.com/c/en/us/td/docs/security/asa/api/qsg-asa-api.html
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide