Skip to content

All controls

PAN-MGT-012LowPanorama

Template variable declared and never used

At a glance

Base severity

Low

Area

Panorama Advanced

Platform

Panorama

Evidence level

Fact0.90

Benchmark reference

Reads the export, not the device

ConfigProof reads a configuration export. This control is evaluated against the objects in that file, and it reports what the file says. It does not connect to the device and sees no traffic, so a finding here describes the configuration, not what the firewall is doing right now.

Why it matters

An unused variable is carried and maintained for nothing, and its presence suggests a setting that no longer exists. The cost is a reader's time rather than a device's behavior.

How to fix it

Web interface

The steps below are written for the web interface. A finding raised on your own export carries the same steps with your object names filled in.

  1. Confirm the variable is not held for a template change that is still in progress.
  2. Remove the declaration.
  3. Commit and confirm the push validates.

Command line

Panorama CLI

delete template-stack <template-stack> variable <object-name>

An example. Values in angle brackets are yours to supply; a finding on your own export fills in the names it read. Nothing here commits or pushes. Review, commit, then push to your devices yourself.

Read it back

show template-stack <template-stack> variable
Values to fill in2
<object-name>
The object's name, as it appears on your firewall
<template-stack>
The template stack
Before you type it2
  • The managed devices keep running their current policy until you push.
  • A configuration shows definitions and references, not traffic, so review this before you run it.

How to confirm the fix

  • Confirm no template outside this file uses the name.
  • Push to one device and confirm no setting changed.

Limits

  • A variable is treated as used when its name appears anywhere in the configuration. That is deliberately generous, so a name reported as unused really is unmentioned.

Compliance references

No benchmark recommendation is mapped to this control in this version.

See it on your own firewall

One complete analysis of one firewall costs nothing. A card is required and nothing is charged.

Start a free analysis