Can a firewall hostname be setup as a variable in a Template?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Scheduled Maintenance: November 14–15 (starting Nov. 14 at 12:00 AM PST)
LIVEcommunity will temporarily operate in read-only mode as we prepare to welcome Idira!
Public content will remain accessible, but log-ins, posting and community interactions will be paused during this period. Thank you for your patience!

Can a firewall hostname be setup as a variable in a Template?

L1 Bithead

Setting up a bunch of new firewalls and would like to push the host names down as a variable in a template.

 

Doesn't look like hostname is a variable type.   Am I missing something?

1 accepted solution

Accepted Solutions

Cyber Elite

Thank you for the post @RHuss1

 

I do not think you are missing anything. Only configuration values mentioned in this article can be set as a variable: https://docs.paloaltonetworks.com/pan-os/10-1/pan-os-web-interface-help/panorama-web-interface/panor... The hostname is not on the list. I do not believe there is a way around it. You will likely have to create a template for each Firewall to configure name.

 

Kind Regards

Pavel

Help the community: Like helpful comments and mark solutions.

View solution in original post

2 REPLIES 2

Cyber Elite

Thank you for the post @RHuss1

 

I do not think you are missing anything. Only configuration values mentioned in this article can be set as a variable: https://docs.paloaltonetworks.com/pan-os/10-1/pan-os-web-interface-help/panorama-web-interface/panor... The hostname is not on the list. I do not believe there is a way around it. You will likely have to create a template for each Firewall to configure name.

 

Kind Regards

Pavel

Help the community: Like helpful comments and mark solutions.

Cyber Elite

Hello @RHuss1

 

only to update you. From PAN-OS 11.1 and later Hostname has been added as a templet variable: configure-template-or-template-stack-variables.

 

Kind Regards

Pavel 

Help the community: Like helpful comments and mark solutions.
  • 1 accepted solution
  • 4772 Views
  • 2 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!