Is it possible to determine the static nats on an ASA 5550 or 5540 running 8.2(x) programmatically? I don't see it as an available SNMP oid but perhaps I am missing it.
|
|
There is probably a more graceful way, but you could write an expect script to login to your ASA and then run the command I haven't got a full script that will do exactly what you need, as I only use expect to roll out configuration changes across the ASAs I manage. However, the following will login to an ASAs and get to the enable (#) prompt, then dump the config to a tftp server and exit. That does get your config onto a server where you can then process the file(s) using grep.
Replace {username}, {asa-hostname-or-ip-address}, and {password} above as appropriate. Someone who is more experienced in expect than me might be able to extract the output of the If doing this on a bunch of ASAs you can put the above into a bash script that pulls in an array of asa hostnames, usernames and passwords, then loop using |
||||
|
|