Panorama import a list of objects from csv

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

Panorama import a list of objects from csv

L0 Member

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

1 accepted solution

Accepted Solutions

L0 Member

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'

 

View solution in original post

1 REPLY 1

L0 Member

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'

 

  • 1 accepted solution
  • 3929 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!