Junos OS

last person joined: 17 hours ago 

Ask questions and share experiences about Junos OS.
  • 1.  password recovery

    Posted 04-27-2010 14:02

    Hi

     

    I try to recovery password j2350 and i can, i try to follow step by step the procedure but something happend, i attach the logs for the activity, thanks

     

     

    Trying to boot from Primary Compact Flash ...                                   oles: serial port
    BIOS drive C: is disk0
    BIOS 639kB/1047360kB available memory

    FreeBSD/i386 bootstrap loader, Revision 1.1
    (builder@lanath.juniper.net, Tue Oct  6 19:54:46 UTC 2009)
    Loading /boot/defaults/loader.conf
    /kernel text=0x7299f8 data=0x41bdc+0x7a2b8 syms=[0x4+0x7d9c0+0x4+0xae2b0]
    /boot/modules/umodem.ko text=0x1a7c data=0x184
    loading required module 'ucom'
    /boot/modules/ucom.ko text=0x1aa0 data=0xe0+0x4
    /boot/modules/if_yk.ko text=0x1ea64 data=0x1348+0x20 |
    loading required module 'libmbpool'
    /boot/modules/libmbpool.ko text=0xd74 data=0x104
    /boot/modules/jmdx.ko text=0x90e4 data=0x29c+0x2c


    Hit [Enter] to boot immediately, or space bar for command prompt.
    Booting [/kernel] in 1 second...

    Type '?' for a list of commands, 'help' for more detailed help.
    OK boot -s
    platform_early_bootinit: J Series Early Boot Initialization
    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.6R2.11 #0: 2009-10-06 20:20:10 UTC
        builder@lanath.juniper.net:/volume/build/junos/9.6/release/9.6R2.11/obj-i386/bsd/sys/compile/JSR
    Timecounter "i8254" frequency 1193182 Hz quality 0
    CPU: Intel(R) Celeron(R) CPU 2.50GHz (2500.10-MHz 686-class CPU)
      Origin = "GenuineIntel"  Id = 0xf29  Stepping = 9
      Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
      Features2=0x4400<CNTX-ID,<b14>>
    real memory  = 1073545216 (1023 MB)
    avail memory = 587591680 (560 MB)
    Initializing JSR platform properties ..
    cpu0 on motherboard
    pcib0: <Host to PCI bridge> pcibus 0 on motherboard
    pir0: <PCI Interrupt Routing Table: 12 Entries> on motherboard
    pci0: <PCI bus> on pcib0
    pci0: <display> at device 2.0 (no driver attached)
    pcib1: <PCI-PCI bridge> at device 3.0 on pci0
    pci2: <PCI bus> on pcib1
    pci2: <network, ethernet> at device 1.0 (no driver attached)
    uhci0: <Intel 82801EB (ICH5) USB controller USB-A> port 0xc800-0xc81f irq 5 at device 29.0 on pci0
    usb0: <Intel 82801EB (ICH5) USB controller USB-A> on uhci0
    usb0: USB revision 1.0
    uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub0: 2 ports with 2 removable, self powered
    uhci1: <Intel 82801EB (ICH5) USB controller USB-B> port 0xcc00-0xcc1f irq 5 at device 29.1 on pci0
    usb1: <Intel 82801EB (ICH5) USB controller USB-B> on uhci1
    usb1: USB revision 1.0
    uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub1: 2 ports with 2 removable, self powered
    uhci2: <Intel 82801EB (ICH5) USB controller USB-C> port 0xd000-0xd01f irq 5 at device 29.2 on pci0
    usb2: <Intel 82801EB (ICH5) USB controller USB-C> on uhci2
    usb2: USB revision 1.0
    uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub2: 2 ports with 2 removable, self powered
    uhci3: <Intel 82801EB (ICH5) USB controller USB-D> port 0xd400-0xd41f irq 5 at device 29.3 on pci0
    usb3: <Intel 82801EB (ICH5) USB controller USB-D> on uhci3
    usb3: USB revision 1.0
    uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub3: 2 ports with 2 removable, self powered
    pcib2: <PCIBIOS PCI-PCI bridge> at device 30.0 on pci0
    pci1: <PCI bus> on pcib2
    ich0: <Intel 82562ET (ICH5/ICH5R) Pro/100 VE Ethernet> port 0xac00-0xac3f mem 0xfe4ff000-0xfe4fffff irq 5 at device 8.0 on pci1
    fxp0 on ich0
    fxp1 on ich0
    pci1: <encrypt/decrypt, entertainment crypto> at device 15.0 (no driver attached)
    isab0: <PCI-ISA bridge> at device 31.0 on pci0
    isa0: <ISA bus> on isab0
    atapci0: <Intel ICH5 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 31.1 on pci0
    ata0: <ATA channel 0> on atapci0
    ata1: <ATA channel 1> on atapci0
    ichsmb0: <Intel 82801EB (ICH5) SMBus controller> port 0x400-0x41f irq 5 at device 31.3 on pci0
    atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
    atkbd0: <AT Keyboard> irq 1 on atkbdc0
    kbd0 at atkbd0
    sio0: configured irq 4 not in bitmap of probed irqs 0
    sio0: port may not be enabled
    sio0 at port 0x3f8-0x3ff irq 4 flags 0x90 on isa0
    sio0: type 16550A, console
    sio1: configured irq 5 not in bitmap of probed irqs 0
    sio1: port may not be enabled
    sio2: configured irq 3 not in bitmap of probed irqs 0
    sio2: port may not be enabled
    sio2 at port 0x2f8-0x2ff irq 3 on isa0
    sio2: type 16550A
    sio3: configured irq 7 not in bitmap of probed irqs 0
    sio3: port may not be enabled
    Initializing product: 32 ..
    fxp0: detached
    fxp1: detached
    Timecounter "TSC" frequency 2500101244 Hz quality 800
    Timecounters tick every 1.000 msec
    IPsec: Initialized Security Association Processing.
    j23x0_gpio_sci_handle: spurious removable-flash insertion/removal event
    ad0: Device does not support APM
    ad0: 495MB <512MB CKS YUAN1026> at ata0-master UDMA66
    if_pfe_open: listener socket opened, listening on ...
    Trying to create bootdev, rootpartition ad0s1a
    Trying to mount root from ufs:/dev/ad0s1a
    WARNING: / was not properly dismounted
    Attaching /cf/packages/junos via /dev/mdctl...
    Mounted junos package on /dev/md0...
    Booting single-user
    ** /dev/ad0s1a
    ** Last Mounted on /
    ** Root file system
    ** Phase 1 - Check Blocks and Sizes
    ** Phase 2 - Check Pathnames
    ** Phase 3 - Check Connectivity
    ** Phase 4 - Check Reference Counts
    ** Phase 5 - Check Cyl groups
    359 files, 311924 used, 130011 free (75 frags, 16242 blocks, 0.0% fragmentation)

    ***** FILE SYSTEM MARKED CLEAN *****
    ** /dev/bo0s1e
    ** Last Mounted on /config
    ** Phase 1 - Check Blocks and Sizes
    ** Phase 2 - Check Pathnames
    ** Phase 3 - Check Connectivity
    ** Phase 4 - Check Reference Counts
    ** Phase 5 - Check Cyl groups
    8 files, 11 used, 49212 free (12 frags, 6150 blocks, 0.0% fragmentation)

    ***** FILE SYSTEM MARKED CLEAN *****
    System watchdog timer disabled
    Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh: recovery

    Skipping disk checks ...
    Verified junos signed by PackageProduction_9_6_0
    Verified jboot signed by PackageProduction_9_6_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:
    rts_ifl_mput_channel_tlvs svcs_drv_apis = NULL
    rts_ifl_mput_channel_tlvs svcs_drv_apis = NULL
    additional daemons: eventd.
    savecore: /dev/bo0s1b: No such file or directory
    savecore: Reboot reason(s): 0x8: power-button hard power off
    savecore: no dumps found
    kern.module_pathng options:
                    : L/boot//kernel;/booot/modules -> /aboot//kernel;/bodiot/modules;/modunles
     grat_arp_dgelay=${grat_arp_ delay}: net.linkt.ether.inet.grath_arp_delay: 0 ->e 0
    kld netpfe m edia: ifpfem_briISDN BRI Media Layer; Attaching to media services layer
     ifpfem_ds0Loading the DS0 Media Layer; Attaching to media services layer
     ifpfem_ds1e1Loading the DS1/E1 Media Layer; Attaching to media services layer
     ifpfem_ds3e3Loading the DS3/E3 Media Layer; Attaching to media services layer
    erd netpfe drv: ifpfed_atm ifpfed_controll
       ifpfed_dialerLoading the DIALER driver
     ifpfed_ds0Loading DS0 driver
     ifpfed_ds1e1Loading E1/T1/J1 driver
     ifpfed_ds3e3Loading the NETPFE DS3 module
     ifpfed_eia530 ifpfed_ethLoading the NETPFE ethernet module
     ifpfed_irb ifpfed_isdnLoading the ISDN driver
     ifpfed_ism Loading the ISM driver
     ifpfed_lt ifpfed_ml_cmnLoading common multilink module.
     ifpfed_ml_haLoading the SONET apsg module
     ifpfed_modemL ifpfed_ppeeroading the NETPFE picpeer module
     ifpfed_pppoeLoading the NETPFE PPPoE module
     ifpfed_stLoading the IPSec driver
     ifpfed_svcsLoading the netpfe services driver
     ifpfed_vp ifpfed_vtkld platform: fileassoc if_emem0: <Intel(R) PRO/1000 Network Connection Version - 3.2.18> port 0xbc00-0xbc1f mem 0xfe5e0000-0xfe5fffff,0xfe5d0000-0xfe5dffff irq 5 at device 1.0 on pci2
    em0: The EEPROM Checksum Is Not Valid
    em0: Unable to initialize the hardware
    device_attach: em0 attach returned 5
     ifpfem_xdslLoading the XDSL Media Layer; Attaching to media services layer
     ixp j_ifpfeLoading the J-series platform NETPFE module
    Loading Link Services PICs module.
    kern.module_path: /boot//kernel;/boot/modules;/modules -> /boot//kerneLl;/boot/modules;o/modules;/moduleas/peertype
    kld dpeertype: peertyepe_fwdd peertyped_pfpc peertype_s lavereR ipsec kld rtl kTldChannel module
     rtfc kld.
    Doing additional network setup:.
    Starting final network daemons:.
    setting ldconfig path: /usr/lib /opt/lib
    starting standard daemons: cron.
    Initial rc.i386 initialization: microcode kld.

     Lock Manager
    RDM Embedded 7 [04-Aug-2006] http://www.birdstep.com
    Copyright (c) 1992-2006 Birdstep Technology, Inc.  All Rights Reserved.

    Unix Domain sockets Lock manager
    Lock manager 'lockmgr' started successfully.
    rm: /var/pdb: Read-only file system
    Profile database initialized
    Local package initialization:.
    starting local daemons:.
    kern.securelevel: -1 -> 1
    Creating UTM MFS partition...
    UTM MFS partition created
    cp: /etc/namedb/named.conf.def: No such file or directory
    Wed Apr 28 04:44:02 UTC 2010

    LAB-1 (ttyd0)

    login:



  • 2.  RE: password recovery
    Best Answer

    Posted 04-27-2010 14:30

    i try with <space>recovery and i have the following

     

    ***** FILE SYSTEM MARKED CLEAN *****
    System watchdog timer disabled
    Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh:  recovery
    NOTE: to go to multi-user operation, exit the single-user shell (with ^D)
    Apr 28 05:15:00 init: can't exec /junos recovery for single user: No such file or directory

    To run the rest of rc manually (after the above):

            chroot /junos /bin/sh /etc/rc.chroot

    and to run a shell with a normal view of the system:

            chroot /junos /bin/sh

    #

     

    what can i do to recover the password???



  • 3.  RE: password recovery

    Posted 08-31-2010 04:11

    I am getting the similar message and not able to recover the password of J2350

     

    Any solution???

     

     

    Thanks

     

    Rohit