GroupStudy.com GroupStudy.com - A virtual community of network engineers
 Home  BookStore  StudyNotes  Links  Archives  StudyRooms  HelpWanted  Discounts  Login
Re: juniper password recover [9:750] posted 10/24/2001
[Chronological Index] [Thread Index] [Top] [Date Prev][Date Next] [Thread Prev][Thread Next]


After a reboot of the box you will bee presented with something
similar to the following, type '-s' then *enter* when you see this
screen for JUNOS 4.4 and below:

boot.config: -D -h

>> BOOT @ 0x10000: 639/65535 k of memory, serial/dual console
Boot default: 0:wd(0,a)kernel
Usage: bios_drive:interface(unit,partition)kernel_name options
    interface    wfd or wd
    unit         0, 1, ...
    partition    a, c, ...
    kernel_name  name of kernel, or ? for list of files in root
directory
    options      -c (userconfig) -s (single user) -v (verbose)
                 -D (dual consoles) -h (alternate console) -P (probe
kbd)


boot: -s
Booting 0:wd(0,a)kernel @ 0x100000
text=0x1b0000 data=0x18000 bss=0x27f1c
symbols=[+0xe4+0x4+0x1d850+0x4+0x29606]
total=0x336e5e entry point=0x100000
-snip bootup stuff-
Enter pathname of shell or RETURN for sh:
NOTE: to go to multi-user operation, exit the single-user shell (with
^D)
#

Or with 5.0 and above you will get this instead, upon bootup.  Hit any
key besides enter before boot up starts and then run 'boot -s' then
*enter*:

Console: serial port
BIOS drive C: is disk0
BIOS 639kB/129920kB available memory

FreeBSD/i386 bootstrap loader, Revision 0.8
(builder@xxxxxxxxxxxxxxxxx, Tue Jun  5 07:41:35 GMT 2001)
Loading /boot/defaults/loader.conf
/kernel text=0x26e61a data=0x2b69c+0x2b4f8
syms=[0x4+0x33530+0x4+0x39c31]

                    Loader Quick Help
                    -----------------
The boot order is PCMCIA or floppy -> Flash -> Disk -> Lan ->
back to PCMCIA or floppy. Typing reboot from the command prompt will
cycle through the boot devices. On some models, you can set the next
boot device using the nextboot command: nextboot compact-flash | disk

For more information, use the help command: help  

Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [kernel] in 4 seconds...

Type '?' for a list of commands, 'help' for more detailed help.
ok boot -s
Copyright (c) 1996-2001, Juniper Networks, Inc.
All rights reserved.
Copyright (c) 1992-2001 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993,
1994
-snip rest of boot sequence-
Enter full pathname of shell or RETURN for /bin/sh:
NOTE: to go to multi-user operation, exit the single-user shell (with
^D)
#

Like you said, the script will run fsck, mount the appropriate slices,
and then run mgd and start the cli.  You can do this all manually if
you want or run the script, does not matter.  The script is just
easier to remember if your not familiar with the manual method.


-Julian

""TARRY James""  wrote in message
news:200110232122.RAA30917@xxxxxxxxxxxxxxxxx
: Question...
:
: I am wondering though about how you get to the boot prompt itself?
:
: Your instructions say:
: 1)  obtain console access
: 2)  power off the system and boot it up in single user mode
: 3)  type -s at the boot prompt.
:
: So JUNOS runs off of UNIX BSD which is what you'll be accessing when
you
: boot the router. So you have to use -s (single user mode) and then
you run
: the script.
:
: I think the script must run the fsck and mount and starts the
management
: daemon
: if my information is correct, but getting to the boot prompt is
confusing me.
:
: So I am assuming that when the Juniper router reboots that
: it will automatically boot to Multiuser mode unless you specify
single
: user mode (which has no password)?
: The question is then how do you get to the boot prompt so that
: you can specify the -s option. Does it come up automatically?
:
: As you can tell I do not have the luxury to test out this sequence.
:
: JT
:
:
: D J E wrote:
:
: > Please do the following to recover/reset the root password:
: >
: >         1.  Obtain console access
: >
: >         2.  Power off the system and boot it up in single user
mode.
: >             This is done by typing "-s" at the boot: prompt.
: >
: >         3.  Next, the system will do it's normal boot up process.
When
: prompted
: >             for "pathname" enter: /usr/libexec/ui/recovery-mode
: >             This will run a script for password recovery.
: >
: >             Enter pathname of shell or RETURN for sh:
: > /usr/libexec/ui/recovery-mode
: >
: >         4.  The system will finish booting up and put you at a
"root>"
: prompt
: >             as such.
: >
: >                 NOTE: the system
: >                 Starting CLI ...
: >                  root>
: >
: >         5.  Now you can go into configuration mode and edit or
delete the
: >             root authentication password.
: >
: >                 root> configure
: >                 Entering configuration mode
: >
: >                 [edit]
: >                 root# delete system root-authentication
: >
: >                 [edit]
: >                 root# commit and-quit
: >                  commit complete
: >                 Exiting configuration mode
: >
: >         6.  Finally, reboot system.
: >
: >                 root@xxxxxx> request system reboot
: >                 Reboot the system ? [yes,no] (no) yes
: >
: > Unfortunately I don't know of a way to do this without rebooting
the router.
:
:
:
:
http://www.groupstudy.com/list/juniper.html
:




Message Posted at:
http://www.groupstudy.com/form/read.php?f=9&i=761&t=750
--------------------------------------------------
FAQ, list archives, and subscription info: http://www.groupstudy.com/list/juniper.html