Switching

IMPORTANT MODERATION NOTICE

This community is currently under full moderation, meaning  all posts will be reviewed before appearing in the community. Please expect a brief delay—there is no need to post multiple times. If your post is rejected, you'll receive an email outlining the reason(s). We've implemented full moderation to control spam. Thank you for your patience and participation.



Expand all | Collapse all

EX4200: ROOT PASSWORD RECOVERY

Jump to Best Answer
  • 1.  EX4200: ROOT PASSWORD RECOVERY

    Posted 09-26-2014 09:18

    I have a Juniper EX4200 series 8PoE that was donated to me as a lab asset. The problem is tha it has a configuration on it and i have no usernames/passwords. When i go through the password recovery process this is what happens:

     

    Loading /boot/defaults/loader.conf

    /kernel data=0x8e55b8+0x950d0 syms= [0x4+0x7aab0+0x4+0xae2b8]

     

    Hit  [Enter] to bbot immediately. or space bar for command prompt.

     

    Type '?' for list of commands, 'help' for more detailed help.

    loader> boot -s

     

    Then it continues to boot but then i get the following:

    System watchdog timer disabled

    Enter root password, or  ^D to go multi-user

    password:

     

    Once i press the return key it continues the boot process, never takes me to CLI ust finishes booting and ends up at a hostname and login prompt.

     

    Is there any way to break into this device to clear the configuration so i can use it? Please help and thank you for any assistance that you can provide.

     

    Stan



  • 2.  RE: EX4200: ROOT PASSWORD RECOVERY

    Posted 07-19-2019 11:53

    Note that this doesn't work for a stack. You have to seperate the master from the stack and update the master individually. 



  • 3.  RE: EX4200: ROOT PASSWORD RECOVERY

    Posted 09-27-2014 04:53

    http://kb.juniper.net/InfoCenter/index?page=content&id=KB14102&smlogin=true

     

    It looks like you might have missed the step where you type "recovery" at the prompt (after boot -s to boot into single-user mode)?



  • 4.  RE: EX4200: ROOT PASSWORD RECOVERY

    Posted 09-04-2021 11:09
    I have a problem with EX4200 switch
    We have tried password recovery but recovery mode is not shown, they have rebooted directly.

    Hit [Enter] to boot immediately, or space bar for command prompt.
    Type '?' for a list of commands, 'help' for more detailed help.
    loader> boot -s
    Kernel entry at 0x800000c0 ...
    GDB: no debug ports present
    KDB: debugger backends: ddb
    KDB: current backend: ddb
    Copyright (c) 1996-2016, Juniper Networks, Inc.
    All rights reserved.
    Copyright (c) 1992-2007 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.
    FreeBSD is a registered trademark of The FreeBSD Foundation.
    JUNOS 15.1R5.5 #0: 2016-11-25 16:39:56 UTC
    builder@mayland.juniper.net:/volume/build/junos/15.1/release/15.1R5.5/obj/powerpc/junos/bsd/kernels/JUNIPER-EX/kernel
    can't re-use a leaf (all_slot_serialid)!
    Timecounter "decrementer" frequency 50000000 Hz quality 0
    cpu0: Freescale e500v2 core revision 2.3
    cpu0: HID0 80004080<EMCP,TBEN,EN_MAS7_UPDATE>
    real memory = 1044381696 (996 MB)
    avail memory = 1022398464 (975 MB)
    Security policy loaded: JUNOS MAC/pcap (mac_pcap)
    Security policy loaded: JUNOS MAC/runasnonroot (mac_runasnonroot)
    Security policy loaded: Junos MAC/veriexec (mac_veriexec)
    MAC/veriexec fingerprint module loaded: SHA1
    MAC/veriexec fingerprint module loaded: SHA256
    ETHERNET SOCKET BRIDGE initialising
    Initializing EXSERIES properties ...
    nexus0: <Powerpc Nexus device>
    ocpbus0: <on-chip peripheral bus> on nexus0
    openpic0: <OpenPIC in on-chip peripheral bus> iomem 0xfef40000-0xfef600b3 on ocpbus0
    memctl0: <mpc85xx memory ECC monitor> iomem 0xfef20000-0xfef20e5b,0xfef02000-0xfef02e5b irq 32,34 on ocpbus0
    i2c0: <MPC85XX OnChip i2c Controller> iomem 0xfef03000-0xfef03014 irq 59 on ocpbus0
    poe0: <POE> on i2c0
    i2c1: <MPC85XX OnChip i2c Controller> iomem 0xfef03100-0xfef03114 irq 59 on ocpbus0
    uart0: <16550 or compatible> iomem 0xfef04500-0xfef0450f irq 58 on ocpbus0
    uart0: console (9600,n,8,1)
    uart1: <16550 or compatible> iomem 0xfef04600-0xfef0460f irq 58 on ocpbus0
    lbc0: <Freescale Local Bus Controller> iomem 0xfef05000-0xfef05fff,0xff000000-0xffffffff irq 22 on ocpbus0
    cb fpga: un-supported RE/board:39
    cfi0: <AMD/Fujitsu - 8MB> iomem 0xff800000-0xffffffff on lbc0
    cb fpga: un-supported RE/board:39
    syspld0 iomem 0xff000000-0xff00ffff on lbc0
    tsec0: <eTSEC ethernet controller> iomem 0xfef24000-0xfef24fff irq 45,46,50 on ocpbus0
    tsec0: hardware MAC address 40:b4:f0:71:09:ff
    miibus0: <MII bus> on tsec0
    e1000phy0: <Marvell 88E1112 Gigabit PHY> on miibus0
    e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto
    pcib0: <Freescale MPC8544 PCI host controller> iomem 0xfef08000-0xfef08fff,0xf0000000-0xf3ffffff on ocpbus0
    pci0: <PCI bus> on pcib0
    pci0: <serial bus, USB> at device 18.0 (no driver attached)
    ehci0: <Philips ISP156x USB 2.0 controller> mem 0xf0001000-0xf00010ff irq 22 at device 18.2 on pci0
    usb0: EHCI version 1.0
    usb0: <Philips ISP156x USB 2.0 controller> on ehci0
    usb0: USB revision 2.0
    uhub0: Philips EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
    uhub0: 2 ports with 2 removable, self powered
    umass0: STMicroelectronics ST72682 High Speed Mode, rev 2.00/2.10, addr 2
    pcib1: <Freescale MPC8544 PCI Express host controller> iomem 0xfef0a000-0xfef0afff,0xe0000000-0xe3ffffff,0xec000000-0xec0fffff irq 42 on ocpbus0
    pci1: <PCI bus> on pcib1
    pcib2: <PCI-PCI bridge> at device 0.0 on pci1
    pci2: <PCI bus> on pcib2
    mpfe0: <Juniper EX-series Packet Forwarding Engine> mem 0xa4000000-0xa40fffff,0xa0000000-0xa3ffffff irq 20 at device 0.0 on pci2
    mpfe_adcr_shadow_alloc: allocated idx: 0
    pcib3: <Freescale MPC8544 PCI Express host controller> iomem 0xfef09000-0xfef09fff,0xe4000000-0xe7ffffff,0xec100000-0xec1fffff irq 41 on ocpbus0
    pci3: <PCI bus> on pcib3
    pcib4: <PCI-PCI bridge> at device 0.0 on pci3
    pci4: <PCI bus> on pcib4
    mpfe1: <Juniper EX-series Packet Forwarding Engine> mem 0xac000000-0xac0fffff,0xa8000000-0xabffffff irq 18 at device 0.0 on pci4
    mpfe_adcr_shadow_alloc: allocated idx: 1
    pcib5: <Freescale MPC8544 PCI Express host controller> iomem 0xfef0b000-0xfef0bfff,0xe8000000-0xebffffff,0xec200000-0xec2fffff irq 43 on ocpbus0
    pci5: <PCI bus> on pcib5
    pcib6: <PCI-PCI bridge> at device 0.0 on pci5
    pci6: <PCI bus> on pcib6
    mpfe2: <Juniper EX-series Packet Forwarding Engine> mem 0xb4000000-0xb40fffff,0xb0000000-0xb3ffffff irq 19 at device 0.0 on pci6
    mpfe_adcr_shadow_alloc: allocated idx: 2
    idma0: <mp85xxx DMA Controller> iomem 0xfef21000-0xfef21300 irq 36 on ocpbus0
    Initializing product: 43 ..
    Loading Redundant LT driver
    Registered AMT tunnel Encap with UDP Tunnel!
    ###PCB Group initialized for udppcbgroup
    ###PCB Group initialized for tcppcbgroup
    da0 at umass-sim0 bus 0 target 0 lun 0
    da0: <ST ST72682 2.10> Removable Direct Access SCSI-2 device
    da0: 40.000MB/s transfers
    da0: 1000MB (2048000 512 byte sectors: 64H 32S/T 1000C)
    Kernel thread "wkupdaemon" (pid 44) exited prematurely.
    Trying to mount root from ufs:/dev/da0s1a
    Attaching /packages/junos via /dev/mdctl...
    Mounted junos-ex package on /dev/md0...
    Waiting (max 60 seconds) for system process `vnlru' to stop...done
    Waiting (max 60 seconds) for system process `vnlru_mem' to stop...done
    Waiting (max 60 seconds) for system process `bufdaemon' to stop...done
    Waiting (max 60 seconds) for system process `syncer' to stop...
    Syncing disks, vnodes remaining...0 0 0 0 0 0 0 0 0 0 done

    syncing disks... All buffers synced.
    Uptime: 27s
    Rebooting...


    U-Boot 1.1.6 (Jun 5 2012 - 02:26:04)

    Board: EX4200-48T 4.33
    EPLD: Version 10.0 (0x82)
    DRAM: Initializing (1024 MB)
    FLASH: 8 MB

    Please guide how i can resolve this issue.

    ------------------------------
    DHIRAJ PAWAR
    ------------------------------



  • 5.  RE: EX4200: ROOT PASSWORD RECOVERY

    Posted 09-29-2014 09:12

    ronf,

    I agree but that's the issue it doesn't even give me the option for this step:

    Enter full path name of shell or 'recovery' for root password recovery or RETURN for /bin/sh: recovery

     

    It goes straight to the propmt of asking for the root password so i never get to type recovery. Any suggestions? Thanks for the reply.

     

    Stan



  • 6.  RE: EX4200: ROOT PASSWORD RECOVERY

     
    Posted 02-26-2018 17:39

    ocbroadband,

     

    You can use single user mode from the console port to do a root password recovery following this kb article.  This does require you power off the switch and have physical access to the serial console port for the operation.

     

    https://kb.juniper.net/InfoCenter/index?page=content&id=KB14102

     



  • 7.  RE: EX4200: ROOT PASSWORD RECOVERY

    Posted 09-29-2014 09:40

    parau@juniper.net

    No i don't need the configuration that's currently on there, do you have a link to the process that you are referring to?

    Thank you for your assistance.

     

    Stan



  • 8.  RE: EX4200: ROOT PASSWORD RECOVERY

     
    Posted 09-29-2014 09:30

    Why don't you do an installation and format the filesystem in the same time?

     

    I know it's not what you are looking for, but it will save some time.

     

    This in the case that you don't need the configuration present already.

     

     

     

    =====

    If this worked for you please flag my post as an "Accepted Solution" so others can benefit. A kudo would be cool if you think I earned it.



  • 9.  RE: EX4200: ROOT PASSWORD RECOVERY
    Best Answer

     
    Posted 09-29-2014 10:08

    http://kb.juniper.net/InfoCenter/index?page=content&id=KB20643

     

     

     

    =====

    If this worked for you please flag my post as an "Accepted Solution" so others can benefit. A kudo would be cool if you think I earned it.



  • 10.  RE: EX4200: ROOT PASSWORD RECOVERY

    Posted 02-26-2018 07:58

    And what if the need is to keep the configuration?



  • 11.  RE: EX4200: ROOT PASSWORD RECOVERY

     
    Posted 09-05-2021 05:44
    Does it boot if you remove the flash drive from the USB port?