Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[ScreenOS] Retrieving NetScreen configuration via SCP (Secure Copy)

0

0

Article ID: KB33128 KB Last Updated: 27 Sep 2018Version: 1.0
Summary:

This article explains how to retrieve a configuration file from Netscreen Firewall using SCP.

Solution:
There are a couple of prerequisites before you can copy the configuration file from Netscreen firewall using SCP.
  1. Enable SSH and SCP globally on firewall

    Syntax:
    set ssh version v2
    set ssh enable
    set scp enable
  2. Enable SSH management on the interface you are going to connect via SCP

    Syntax:
    set interface ethernet<x/x> manage ssh

    Example:
    set interface ethernet1/1 manage ssh

  3. Run following syntax on the SCP client running in PC

    Syntax:
    scp <administrator name>@<IP address of firewall>:ns_sys_config <filename>
    example:
    scp netscreen@10.1.1.1:ns_sys_config ns_sys_config_backup

This will copy the configuration file in the SCP client folder with file name ns_sys_config_backu . The actual config file is stored in the flash of the device as file name ns_sys_config and can be validated in the output of the get file as the following example:

-> get file
    flash:/$NSBOOT$.BIN              13631488
    flash:/envar.rec                      166
    flash:/ns_sys_config                 1781
    flash:/prngseed.bin                    64
    flash:/pkidatabase.digest              20
    flash:/cli-log                      49952
    flash:/ns_sys_cfg.sig                  20
    flash:/license.key                    360
    flash:/crash.dmp                   262144
    flash:/$lkg$.cfg                     3402

 
Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search