Template variable declared and never used
At a glance
Base severity
Area
Platform
Evidence level
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.
- Confirm the variable is not held for a template change that is still in progress.
- Remove the declaration.
- 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> variableValues 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.
More in Panorama Advanced
- PAN-MGT-007Object redefined in a device group that inherits one with the same name
- PAN-MGT-008Templates in one stack set the same value differently
- PAN-MGT-009Template stack member whose settings are all supplied above it
- PAN-MGT-010Template stack names a template that does not exist
- PAN-MGT-011Template variable used with no declaration
- PAN-MGT-013Device group with no managed devices assigned
- PAN-MGT-014Managed device in a device group but in no template stack
- PAN-MGT-015Rule names a zone the template stack of its firewalls does not define
See it on your own firewall
One complete analysis of one firewall costs nothing. A card is required and nothing is charged.