Adding Multiple Individual IP addresses at one time.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Adding Multiple Individual IP addresses at one time.

L1 Bithead

In our environment we use tags on individual IP addresses for a few different things and then have policies in place to take those actions based on those tags.

 

Sometimes we have requests come in with a lot of indivudla IP addresses that we have to add and tag in multiple VSYS's. This is tedious and time consuming because the only way I know how to do it is manually, one at a time, adding each address and tagging it.

 

Is it possible to add multiple IP addresses and tag them at one time? I wouldn't mind doing it in individual VSYS's if needed.

 

Thanks.

13 REPLIES 13

L5 Sessionator

You can use the CLI to add addresses and set a tag on them. You still have to create the script but can paste them all at once.

set vsys vsys2 address rf tag test fqdn rf.myco.local

set vsys vsys3 address rf1 tag test1 fqdn rf1.myco.local

 

I'm looking for exactly something like that, but that command doesn't work for me...

 

In order to hop into the right vsys I have to use this command:

 

set system setting target-vsys vsys2

 

From there I don't see anything similar to what you have.

 

What version of of PanOS are you running?

 

I'm on 7.1.6 but it looks like you aren't in config mode.

I prefer the set based CLI so the first command I run is:

set cli config-output-format set

 

Then type 'configure' to get to config mode, which is shown by the # symbol after the hostname. 

user@firewall#

Then you can paste the config.

 

I only have the following commands available in configure mode:

 

check
edit  
exit  
find  
quit  
run   
show  
top   
up   

It looks like your account permissions in the CLI have been restricted. Admin roles can have different permissions for GUI and CLI.

Does your login account have a specific profile attached to it?

This was tried on a fully privileged account. I wonder if maybe that is just not available in PanOS 7.0.x

@garethdoyle,

The listed options that you have would not be consistent with a fully privileged account on any version of the os. The 'set' command has been around since the beginning and without it you aren't going to be able to do any of this in the CLI as it appears your CLI is restricted. You may be allowed to change everything you want in the GUI, but it appears CLI is most definitely limited. 

Thanks for that, there may be something else at play.

 

As a separate question, would a PA-200 have this functionality?

 

Thanks.

I just created a user with the devicereader CLI permissions and I see the exact options you do in config mode.

 

Yes, the set commands work on any hardware version. 

When I test in my PA-200 as the admin account I don't see these commands either. Also running 7.0.x ... Interestingly weird.

Is the admin account Dynamic or Role Based?

I'm not sure what that means.. It is the default admin account and even still has the default admin/admin password.

On the admin account, there is a section for 'Administrator Type'. The choices are Dynamic or Role Based.

  • 5407 Views
  • 13 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!