cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1099
Views
5
Helpful
1
Replies

Cisco ASA 9.x shell variables like iOS 15?

Alex-Borromeo
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

Marvin Rhoads
Hall of Fame
Hall of Fame

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

View solution in original post

1 Reply 1

Marvin Rhoads
Hall of Fame
Hall of Fame

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card