- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
12-02-2021 01:43 PM
Hello,
I have recently taken on a project. This involves me restricting access for a specific machine to a list of public IP address which I have a list of. Normally I would just bite the bullet and manually enter the objects by hand but this time its over 100 addresses and I think the better option is making an address group of these addresses. Is there a way to import a CSV into the objects list either in PAN-OS or through CLI? I havent found a very good answer through searching. Thanks in advanced
12-03-2021 01:57 AM
You can use cli scripting mode to crate objects in batches.
First change set the output format to "set" using 'set cli config-output format set'
Then try creating a single object with the right syntax, if everything looks ok, prepare your commands for all objects in excel or a text editor
Enable cli scripting mode using the command 'set cli scripting-mode on' , copy and paste your object creation commands in batch, check the count of objects in GUI to make sure you didn't miss any.
After you are finished disable cli scripting mode using the command 'set cli scripting-mode off'
12-03-2021 01:57 AM
You can use cli scripting mode to crate objects in batches.
First change set the output format to "set" using 'set cli config-output format set'
Then try creating a single object with the right syntax, if everything looks ok, prepare your commands for all objects in excel or a text editor
Enable cli scripting mode using the command 'set cli scripting-mode on' , copy and paste your object creation commands in batch, check the count of objects in GUI to make sure you didn't miss any.
After you are finished disable cli scripting mode using the command 'set cli scripting-mode off'
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!