03-25-2015 10:10 AM - edited 03-07-2019 11:15 PM
Hi all.
We are using a TCL script to to change NAT entries. It works fine but when the entry is in use, the delete entry command ios_config "no ip nat inside source static tcp <local ip> <local port> <global ip> <global port> extendable" "end" returns :
Static entry in use, do you want to delete child entries? [no]:
%: Error: static entry in use, cannot remove
Is it possible to 'interact' inside the TCL script so when the ios_config command returns 'Static entry in use, do you want to delete child entries? [no]:' the script could send 'Y' to remove the entries?
Thanks in advance.
Solved! Go to Solution.
03-26-2015 03:21 AM
We've solved using forced in spite of extendable, so :
ios_config "no ip nat inside source static tcp <local ip> <local port> <global ip> <global port> forced"
03-26-2015 03:21 AM
We've solved using forced in spite of extendable, so :
ios_config "no ip nat inside source static tcp <local ip> <local port> <global ip> <global port> forced"
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