In short
Juniper SRX configuration export: the file Juniper SRX writes of its own settings, which a configuration review reads setting by setting without connecting to Juniper SRX.
How to export the Juniper SRX configuration, step by step, what the review checks in the file (44 checks run), and what it does not read.
| The file | Plain text, one .txt file of Junos set commands (set system …, set security policies …) |
|---|---|
| Checks run on it | 44 |
| Highest grade its findings reach | PROVEN |
| Feeds attack paths | No |
| Not read from this export | 2 areas, listed below |
Sources: Juniper SRX documentation (1); Juniper SRX documentation (2); Juniper SRX documentation (3); the vendor table.
How to export it
- Who can pull it
- A Junos login whose class has the view and view-configuration permissions. The command needs view, and view-configuration "Can view all of the configuration excluding secrets, system scripts, and event options", so the file comes without passwords and keys. Try your existing login before you ask for anything: if no line of the output reads ACCESS-DENIED, it is enough. The predefined read-only class has the view permission and not view-configuration. If lines read ACCESS-DENIED, an administrator who can enter configuration mode and whose class has the admin-control permission (the predefined super-user class has the permission flag set "all") creates the class: set system login class cybertwin-read permissions [ view view-configuration ] then set system login user <your-user> class cybertwin-read then commit .
- Time
- About 5 minutes once your login can view the configuration; add about 10 minutes when an administrator has to create the login class.
- The file
- Plain text, one .txt file of Junos set commands (set system …, set security policies …)
No console export: Use the command-line steps: the review reads the display set form of the configuration (every line starts with set), and the J-Web page Device Administration → Tools → CLI Viewer shows the configuration with braces instead.
From the command line
macOS or Linux: run the export over SSH and write it to a file in one line:
The vendor's page, checked 2026-10-15ssh <user>@<srx-ip> "show configuration | display set | no-more" > srx-config.txt(<srx-ip> is the management address you sign in to; the session closes by itself)Windows (PuTTY): Session → Logging → "Printable output" → choose the log file, then open the SSH session and sign in
The vendor's page, checked 2026-10-15In that session run
The vendor's page, checked 2026-11-11show configuration | display set | no-moreand typeexitwhen the prompt comes back. Open the log file, delete every line above the top line that starts with set and the prompt line at the end, save it as srx-config.txt, and upload it
What the file looks like
Plain text, one .txt file of Junos set commands (set system …, set security policies …). It varies with the number of policies, address-book entries and interfaces: Juniper documents no typical size. The upload takes files up to 10 MB.
What it holds: Security policies, zones, network address translation (NAT), screens and intrusion detection and prevention (IDP), interfaces, and the system configuration, as far as your login may view them.
Every line of the file starts with set. Sign in as your own user, not root: root starts in the operating-system shell, where you type cli before the export command. The one-line ssh … > srx-config.txt step runs in a macOS or Linux terminal (or Windows Subsystem for Linux); on Windows, use the PuTTY steps instead: in Windows PowerShell 5.1, > writes UTF-16, which the upload refuses. When the host name is set at the system level, the file carries it as set system host-name , but the upload does not yet read that line as the identity of the device, so a later export of the same firewall is not matched to this one by itself. When the upload shows the Device tag field for the file, type a tag and choose Set tag, and use the same tag for later exports.
Afterwards
Delete the PuTTY log and any copy of srx-config.txt from your computer after the upload. If the cybertwin-read class was made for this export and is not needed again, an administrator, in configuration mode, moves your user to another class with set system login user <your-user> class <class> then runs delete system login class cybertwin-read and commit .
If the export goes wrong
| What you see | The fix |
|---|---|
| The file stops at ---(more)--- or is much shorter than expected | Run the command again exactly as written, ending with | no-more, so the CLI does not pause for a key press. |
| Lines read ACCESS-DENIED in place of settings | Your login class may not view those parts of the configuration: ask an administrator for a class with view and view-configuration (see who can pull it, above), then export again. SECRET-DATA in place of passwords and keys is expected. |
| The file has { and } lines or <rpc-reply> tags, and the upload cannot read it or finds few settings | That is the brace or XML form: run show configuration | display set | no-more, so every line starts with set, and upload that file. |
What we read from it
- Checks run
- 44 + 2 guidance items, not counted
- Formats read
- `show configuration` text · JSON RPC export
- Releases
- 21.x to 23.x
Checks run is the number of checks that reached a result on this system's own export in our tests, as the vendor table shows it.
The areas checked
- Security policies: permit any-any, IDP and UTM use, session logging
- Zones and the services each zone accepts, and NAT
- Management: root login, SSH ciphers and version, Telnet, J-Web over HTTP, NETCONF, login message, password rules
- SNMP, syslog, NTP authentication, AAA and ALGs
- IPsec proposals and PFS
The grade its findings reach
Proven A finding from this file can reach PROVEN: the stored file is read a second time by a separate reader, and the finding is found at the setting it names.
Its findings stay in the review and its reports. Juniper SRX does not feed attack paths.
Attack paths, the one change and dollar figures are MODELED. How each grade is worked out is on the method page.
What we do not read from this export
- Hit counts and last-change data, so unused rules are not found
- Address-book entries resolved to addresses
- The members of custom application sets
- XML and brace-format output: just display set output is read
- FIPS mode: not checked yet
- System scripts and event options: a login with view-configuration does not see them, so they are not in the file
Limits of the reader
- Findings stay in the review. They do not feed attack paths.
- The checks of this system are not counted: a check counts once a test shows it firing on a file in the layout the vendor documents.
A finding never comes from what the file does not hold: live traffic, running hosts and logs are not in a configuration export.
Questions
Who can export the Juniper SRX configuration?
A Junos login whose class has the view and view-configuration permissions. The command needs view, and view-configuration "Can view all of the configuration excluding secrets, system scripts, and event options", so the file comes without passwords and keys. Try your existing login before you ask for anything: if no line of the output reads ACCESS-DENIED, it is enough. The predefined read-only class has the view permission and not view-configuration. If lines read ACCESS-DENIED, an administrator who can enter configuration mode and whose class has the admin-control permission (the predefined super-user class has the permission flag set "all") creates the class: set system login class cybertwin-read permissions [ view view-configuration ] then set system login user <your-user> class cybertwin-read then commit .
Does the export change anything?
Nothing on the firewall when your login can already view the configuration: show configuration displays the last committed configuration. If an administrator creates the cybertwin-read login class for you, that is a committed change to the device configuration, and it stays until it is deleted.
Does the file hold passwords or keys?
With the view-configuration class, Junos prints SECRET-DATA in place of passwords and keys. If a login with the secret permission runs the export (the super-user class has it), the file holds encrypted-password values and $9$ shared secrets; Juniper says the $9$ format uses "an obfuscation algorithm, which is not a very strong encryption for configuration secrets". Treat such a file like a password file. With redaction on (the default), the passwords, keys and tokens the review recognises are replaced with a placeholder before anything is stored; the check before upload shows how many it found.