19 Kasım 2012 Pazartesi

Juniper SRX Unutulan Şifreyi Resetlemek - Juniper Password Recovery

Reset Root Password - Juniper SRX

 Juniper cihazı yeniden başlatın

[edit]
metacortex@Kologarn# run request system reboot

The device will reboot and you need to watch for when it prompts to hit the spacebar

Trying to boot from Primary Compact Flash ...                                   
Loading /boot/loader                                                       
Consoles: serial port                                                                
BIOS drive C: is disk0                                                          
BIOS 639kB/1047552kB available memory                                           
                                                                                
FreeBSD/i386 bootstrap loader, Revision 1.1                                     
(builder@firth.juniper.net, Wed Mar 25 07:21:31 UTC 2009)                       
Loading /boot/defaults/loader.conf                                              
/kernel text=0xb637b0 data=0x51c68+0x7ccc0 syms=[0x4+0xa5b90+0x4+0xa5ebb]       
/boot/modules/platform.ko text=0x4f0 data=0xc4                                  
/boot/modules/early_boot.ko text=0x3b8 data=0x84                                
                                                                                
                                                                                
Hit [Enter] to boot immediately, or space bar for command prompt.               
Booting [/kernel] in 1 second...   
                                             
Bu alana geldiğinizde SPACE e birkaç defa basın loader> ekranında boot-s yazıp Enter'a basın.
                                                                              
Type '?' for a list of commands, 'help' for more detailed help.                 
OK boot -s                                                                      
GDB: debug ports: sio                                                           
GDB: current port: sio                                                          
KDB: debugger backends: ddb gdb                                                 
KDB: current backend: ddb                                                       
Copyright (c) 1996-2009, Juniper Networks, Inc.                                
All rights reserved.
Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
 The Regents of the University of California. All rights reserved.
JUNOS 9.4R2.9 #0: 2009-03-25 07:55:00 UTC
    builder@firth.juniper.net:/volume/build/junos/9.4/release/9.4R2.9/obj-i386/sys/compile/JSR
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 3.40GHz (3400.14-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf49  Stepping = 9
  Features=0xbfebfbff
  Features2=0x641d>
  AMD Features=0x20100000
real memory  = 1073741824 (1024 MB)
avail memory = 698953728 (666 MB)
Initializing this platform...
cpu0 on motherboard

...

Trying to create bootdev, rootpartition ad0s1a
Trying to mount root from ufs:/dev/ad0s1a
Attaching /cf/packages/junos via /dev/mdctl...
Mounted junos package on /dev/md0...
Booting single-user
** /dev/ad0s1a
FILE SYSTEM CLEAN; SKIPPING CHECKS
clean, 203009 free (169 frags, 25355 blocks, 0.0% fragmentation)
** /dev/bo0s1e
FILE SYSTEM CLEAN; SKIPPING CHECKS
clean, 97068 free (20 frags, 12131 blocks, 0.0% fragmentation)
System watchdog timer disabled
Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh: 

Bu alana geldiğinizde recovery  yazıp Enter'a basın.

Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh: recovery
Performing system setup ...
Verified junos signed by PackageProduction_9_4_0
Verified jboot signed by PackageProduction_9_4_0
Loading configuration ...
mgd: commit complete
Setting initial options:  debugger_on_panic=NO debugger_on_break=NO.
Starting optional daemons:  usbd.
Doing initial network setup:.
Initial interface configuration:
additional daemons: eventd.
savecore: /dev/bo0s1b: No such file or directory
savecore: Reboot reason(s): 0x10: misc hardware reason 
savecore: no dumps found
ng options:routi

...

Performing checkout of management services ...

NOTE: Once in the CLI, you will need to enter configuration mode using
NOTE: the 'configure' command to make any required changes. For example,
NOTE: to reset the root password, type:
NOTE:    configure
NOTE:    set system root-authentication plain-text-password
NOTE:    (enter the new password when asked)
NOTE:    commit
NOTE:    exit
NOTE:    exit
NOTE: When you exit the CLI, you will be asked if you want to reboot
NOTE: the system

Starting CLI ... 
root@Kologarn>
Cihaz CLI modda açılacaktır, aşağıdaki komut adımları ile i yenşifrenizi oluşturabilirsiniz.
root@Kologarn> configure 
Entering configuration mode

[edit]
root@Kologarn# set system root-authentication plain-text-password 
New password:
Retype new password:

[edit]
root@Kologarn# commit 
commit complete
Commit işlemi ile kaydedin ve aşağıdaki komutla cihazı yeniden başlatın
[edit]
root@Kologarn# run request system reboot

İşlem tamam ;)

Kaynak: http://jsrx.juniperwiki.com