I often have to configure a hundred new address objects at a time and then add them to an address group.
I prepare the config by using Excel to combine columns with different values until I have the string of txt that I can paste into the CLI to add these objects to the PA.
Here is an example of some of the lines of code I end up with:
set vsys vsys11 address net_22.214.171.124 ip-netmask 126.96.36.199/24
set vsys vsys11 address net_188.8.131.52 ip-netmask 184.108.40.206/24
set vsys vsys11 address net_220.127.116.11 ip-netmask 18.104.22.168/24
Each line of code is formatted in the same way and I know this is the correct format for adding an address object.
However, when I copy and paste multiple lines of CLI code into the configure prompt - I get invalid syntax errors with some lines of code.
Sometimes the PA does not include the whole string or misses off the /24 netmask at the end so the PA throws an invalid syntax error.
If I paste each line of code in individually, I do not get any errors but I'm trying to save time here so want to be able to paste in 100+lines of code at once with confidence that there will not be any errrors.
I'm wondering if it is the text editor I'm using or perhaps my copy of Secure CRT doesn't seem to interpret the CLI copied from the clipboard properly.
Has anyone else ever come across this type of issue or can anyone give any advice on best practices when entering 100's of lines of code onto the CLI.
Any advice or feedback would be greatly appreciated.
... View more