cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

749
Views
5
Helpful
1
Replies
Alex-Borromeo
Beginner

Cisco ASA 9.x shell variables like iOS 15?

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 Guru

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 Guru

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

Content for Community-Ad