Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

1- list rollback

...

Code Block
titlelist rollback: file list /config/
collapsetrue
root@vsrx1> file list /config/ | match juniper
juniper.conf.1.gz
juniper.conf.2.gz
juniper.conf.3.gz
juniper.conf.gz


root@vsrx1> file list /config/ recursive

/config/:
total blocks: 60
drwxrwxr-x  2 root  wheel        512 Oct 1  10:25 .snap/
-rw-r--r--  1 root  wheel          0 Oct 1  10:29 db_ext
-rwxr-xr-x  1 root  wheel       2369 Oct 1  10:25 default.conf*
-rw-r-----  1 root  wheel        757 Oct 1  10:42 juniper.conf.1.gz
-rw-r-----  1 root  wheel        749 Oct 1  10:38 juniper.conf.2.gz
-rw-r-----  1 root  wheel        747 Oct 1  10:35 juniper.conf.3.gz
-rw-r-----  1 root  wheel        772 Oct 1  10:44 juniper.conf.gz
drwxr-xr-x  2 root  wheel        512 Oct 1  10:29 license/
-rw-r--r--  1 root  wheel          1 Oct 1  10:32 license-status.db
-rw-r--r--  1 root  wheel       2700 Oct 1  10:50 usage.db
total files: 8

/config/.snap:
total blocks: 8
total files: 0

/config/license:
total blocks: 12
-rw-r--r--  1 root  wheel        194 Oct 1  10:29 E420588955.lic
total files: 1

root@vsrx1> 


show system rollback compareĀ 




Code Block
titlecompare rollback
collapsetrue

root@vsrx1> show system rollback compare 0 3
[edit system services ssh]
-    root-login allow;
[edit system services]
-    netconf {
-        ssh;
-    }
[edit interfaces fxp0 unit 0]
-     family inet {
-         address 192.168.0.12/24;
-     }




Basic vSRX config:

set system host-name vsrx1
set system root-authentication plain-text
set system services ssh root-login allow
set system services netconf ssh
set interfaces fxp0 unit 0 family inet address 192.168.0.12/24
set routing-options static route default next-hop 192.168.0.1