|
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@vitra.juniper.net, 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@groupstudy.com... : 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 youll 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 its 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@congo3> request system reboot : > Reboot the system ? [yes,no] (no) yes : > : > Unfortunately I dont know of a way to do this without rebooting the router.
|