Ethernet Switching
Highlighted
Ethernet Switching

EX3300 Autoinstalling a Configuration file from USB

‎11-02-2018 07:31 AM

Hi all,

 

I tried to autoinstall a configuration file from a USB Memory Stick onto an EX3300 (Junos 15.1R7.8) without success.

 

I followed the following guideline:

https://www.juniper.net/documentation/en_US/junos/topics/task/configuration/autoinstallation-ex-seri...

 

Who successfully auto-installed a configuration file from a USB Memory Stick onto an EX3300?

 

When USB Memory Stick was inserted EX3300 stuck in boot loop until USB Memory stick was extracted. See following command lines:

 

root@TEST_USB-Bootstrap# Jun 28 18:22:19 init: vchassis-diag-manager (PID 1407) stopped by signal 17
Jun 28 18:22:19 init: license-service (PID 1405) stopped by signal 17
Jun 28 18:22:19 init: multicast-snooping (PID 1404) stopped by signal 17
Jun 28 18:22:19 init: dot1x-protocol (PID 1403) stopped by signal 17
Jun 28 18:22:19 init: sflow-service (PID 1402) stopped by signal 17
Jun 28 18:22:19 init: pki-service (PID 1400) stopped by signal 17
Jun 28 18:22:19 init: shm-rtsdbd (PID 1399) stopped by signal 17
Jun 28 18:22:19 init: ethernet-switching (PID 1398) stopped by signal 17
Jun 28 18:22:19 init: secure-neighbor-discovery (PID 1397) stopped by signal 17
Jun 28 18:22:19 init: bdbrepd (PID 1396) stopped by signal 17
Jun 28 18:22:19 init: redundancy-device (PID 1393) stopped by signal 17
Jun 28 18:22:19 init: smid (PID 1392) stopped by signal 17
Jun 28 18:22:19 init: neighbor-liveness (PID 1391) stopped by signal 17
Jun 28 18:22:19 init: firewall (PID 1390) stopped by signal 17
Jun 28 18:22:19 init: periodic-packet-services (PID 1389) stopped by signal 17
Jun 28 18:22:19 init: class-of-service (PID 1388) stopped by signal 17
Jun 28 18:22:19 init: remote-operations (PID 1387) stopped by signal 17
Jun 28 18:22:19 init: pfed (PID 1385) stopped by signal 17
Jun 28 18:22:19 init: sntp (PID 1384) stopped by signal 17Jun 28 18:22:19 init: packet-forwarding-engine (PID 1299) stopped by signal 17Terminated
root@:RE:0% JWaiting (max 60 seconds) for system process `vnlru_mem' to stop...done
Waiting (max 60 seconds) for system process `vnlru' 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...6 6 6 5 1 2 3 3 2 1 0 0 0 0 0 0 done
 
syncing disks... All buffers synced.
Uptime: 1h5m57s
Rebooting...
 
 
U-Boot 1.1.6 (Jun  4 2012 - 01:56:18)
 
Board: EX3300-24T 5.14
EPLD:  Version 04.130327 (0x02)
DRAM:  Initializing (1GB)
Flash: 8 MB
 
Firmware Version: --- 01.00.00 ---
USB:   scanning bus for devices...
Root Hub 0: 2 USB Device(s) found
T
      USB device not responding, giving up (status=40000000)
Root Hub 1: 2 USB Device(s) found
       scanning bus for storage devices... T Device NOT ready
   Request Sense returned 00 00 00
0 Storage Device(s) found
 
ELF file is 32 bit
Consoles: U-Boot console
 
FreeBSD/arm U-Boot loader, Revision 1.1
(builder@greteth, Mon Jun  4 01:40:05 UTC 2012)
Memory: 1024MB
bootsequencing is disabled
new boot device =
 
 
U-Boot 1.1.6 (Jun  4 2012 - 01:56:18)
 
Board: EX3300-24T 5.14
EPLD:  Version 04.130327 (0x02)
DRAM:  Initializing (1GB)
Flash: 8 MB
 
Firmware Version: --- 01.00.00 ---
USB:   scanning bus for devices...
Root Hub 0: 2 USB Device(s) found
 
      USB device not responding, giving up (status=20)
Root Hub 1: 2 USB Device(s) found
       scanning bus for storage devices... Device NOT ready
   Request Sense returned 00 00 00
0 Storage Device(s) found
 
ELF file is 32 bit
Consoles: U-Boot console
 
FreeBSD/arm U-Boot loader, Revision 1.1
(builder@greteth, Mon Jun  4 01:40:05 UTC 2012)
Memory: 1024MB
bootsequencing is disabled
new boot device =
 
 
U-Boot 1.1.6 (Jun  4 2012 - 01:56:18)
 
Board: EX3300-24T 5.14
EPLD:  Version 04.130327 (0x02)
DRAM:  Initializing (1GB)
Flash: 8 MB
 
Firmware Version: --- 01.00.00 ---
USB:   scanning bus for devices...
Root Hub 0: 2 USB Device(s) found
 
      USB device not responding, giving up (status=20)
Root Hub 1: 2 USB Device(s) found
       scanning bus for storage devices... Device NOT ready
   Request Sense returned 00 00 00
0 Storage Device(s) found
 
ELF file is 32 bit
Consoles: U-Boot console
 
FreeBSD/arm U-Boot loader, Revision 1.1
(builder@greteth, Mon Jun  4 01:40:05 UTC 2012)
Memory: 1024MB
bootsequencing is disabled
new boot device =
 
 
U-Boot 1.1.6 (Jun  4 2012 - 01:56:18)
 
Board: EX3300-24T 5.14
EPLD:  Version 04.130327 (0x02)
DRAM:  Initializing (1GB)
Flash: 8 MB
 
Firmware Version: --- 01.00.00 ---
USB:   scanning bus for devices...                                            # USB Memory stick extracted
Root Hub 0: 2 USB Device(s) found
Root Hub 1: 1 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
 
ELF file is 32 bit
Consoles: U-Boot console
 
FreeBSD/arm U-Boot loader, Revision 1.1
(builder@greteth, Mon Jun  4 01:40:05 UTC 2012)
Memory: 1024MB
bootsequencing is disabled
new boot device =
Loading /boot/defaults/loader.conf
/kernel data=0x9d0e98+0xfeed8 syms=[0x4+0x10a910+0x4+0xe4b71]
 
 
Hit [Enter] to boot immediately, or space bar for command prompt.
Booting [/kernel]...
Kernel entry at 0x1400100 ...
GDB: debug ports: uart
GDB: current port: uart
KDB: debugger backends: ddb gdb
KDB: current backend: ddb
Copyright (c) 1996-2018, 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.1R7.8 #0: 2018-04-27 20:41:48 UTC
    builder@watatsumi.juniper.net:/volume/build/junos/15.1/release/15.1R7.8/obj/arm/junos/bsd/kernels/JUNIPER-EX-3300/kernel
can't re-use a leaf (all_slot_serialid)!
CPU: Early Feroceon 88FR571 rev 0 (Marvell core)
cpu55: Early Feroceon 88FR571 revision   WB enabled EABT branch prediction enabled
  32KB/32B 4-way Instruction cache
  32KB/32B 4-way write-back-locking-C Data cache
real memory  = 1073741824 (1024 MB)
avail memory = 1028313088 (980 MB)
SOC: Marvell MV78100, TClock 200MHz
Security policy loaded: Junos MAC/veriexec (mac_veriexec)
Security policy loaded: JUNOS MAC/pcap (mac_pcap)
Security policy loaded: JUNOS MAC/runasnonroot (mac_runasnonroot)
MAC/veriexec fingerprint module loaded: SHA1
MAC/veriexec fingerprint module loaded: SHA256
ETHERNET SOCKET BRIDGE initialising
Initializing EXSERIES properties ...
mbus0: <Marvell Internal Bus (Mbus)> on motherboard
ic0: <Marvell Integrated Interrupt Controller> at mem 0xf1020200-0xf102023b on mbus0
timer0: <Marvell CPU Timer> at mem 0xf1020300-0xf102032f irq 8 on mbus0
gpio0: <Marvell Integrated GPIO Controller> at mem 0xf1010100-0xf101011f irq 56,57,58,59 on mbus0
uart0: <16550 or compatible> at mem 0xf1012000-0xf101201f irq 12 on mbus0
uart0: console (9600,n,8,1)
uart1: <16550 or compatible> at mem 0xf1012100-0xf101211f irq 13 on mbus0
ehci0: <88F5XXX Integrated USB 2.0 controller> at mem 0xf1050000-0xf1050fff irq 72,16 on mbus0
usb0: EHCI version 1.0
usb0 on ehci0
usb0: USB revision 2.0
uhub0: Marvell EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub0: 1 port with 1 removable, self powered
umass0: STMicroelectronics ST72682  High Speed Mode, rev 2.00/2.10, addr 2
ehci1: <88F5XXX Integrated USB 2.0 controller> at mem 0xf1051000-0xf1051fff irq 72,17 on mbus0
usb1: EHCI version 1.0
usb1 on ehci1
usb1: USB revision 2.0
uhub1: Marvell EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1: 1 port with 1 removable, self powered
ehci2: <88F5XXX Integrated USB 2.0 controller> at mem 0xf1052000-0xf1052fff irq 72,18 on mbus0
usb2: EHCI version 1.0
usb2 on ehci2
usb2: USB revision 2.0
uhub2: Marvell EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 1 port with 1 removable, self powered
mge0: <Marvell Gigabit Ethernet controller> at mem 0xf1072000-0xf1073fff irq 41,42,43,40,70 on mbus0
mge0: hardware MAC address f4:b5:2f:52:30:ff
miibus0: <MII bus> on mge0
e1000phy0: <Marvell 88E1310 Gigabit PHY> on miibus0
e1000phy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto
i2c0: <Marvell I2C ARM OnChip Controller> at mem 0xf1011000-0xf101101f on mbus0
8564 rtc0: <8564 RTC> on i2c0
poe0: <POE> on i2c0
poe_attach: re-types method failed
device_attach: poe0 attach returned 19
i2c1: <Marvell I2C ARM OnChip Controller> at mem 0xf1011100-0xf101111f on mbus0
pcib0: <Marvell MV78100 PCI-Express host controller> at mem 0xf1040000-0xf1041fff,0xe8000000-0xebffffff on mbus0
pci0: <PCI bus> on pcib0
mpfe0: <Juniper EX-series Packet Forwarding Engine> mem 0xe8000000-0xebffffff irq 112 at device 1.0 on pci0
mpfe0: 0x100000 bytes of rid 0x10 res 3 failed (0, 0xffffffff).
syspld0 at mem 0xf9000000-0xf90fffff on mbus0
cfi0: <SPI flash - 8MB> at mem 0xf1010600-0xf101062f,0xf8800000-0xf8ffffff irq 1 on mbus0
Initializing product: 112 ..
Timecounter "CPU Timer" frequency 200000000 Hz quality 1000
Registered AMT tunnel Encap with UDP Tunnel!
Loading Redundant LT driver
###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 45) exited prematurely.
Trying to mount root from ufs:/dev/da0s1a
Attaching /packages/junos via /dev/mdctl...
Mounted junos-ex package on /dev/md0...
Verified manifest signed by PackageProductionEc_2018 method ECDSA256+SHA256
Verified jboot signed by PackageProductionEc_2018 method ECDSA256+SHA256
Verified junos-ex-15.1R7.8 signed by PackageProductionEc_2018 method ECDSA256+SHA256
Mounted fips-mode-arm package on /dev/md2...
Verified manifest signed by PackageProductionEc_2018 method ECDSA256+SHA256
Verified fips-mode-arm-15.1R7.8 signed by PackageProductionEc_2018 method ECDSA256+SHA256
Mounted jdocs-ex package on /dev/md4...
Verified manifest signed by PackageProductionEc_2018 method ECDSA256+SHA256
Verified jdocs-ex-15.1R7.8 signed by PackageProductionEc_2018 method ECDSA256+SHA256
Mounted junos-ex-3300 package on /dev/md6...
Verified manifest signed by PackageProductionEc_2018 method ECDSA256+SHA256
Verified junos-ex-3300-15.1R7.8 signed by PackageProductionEc_2018 method ECDSA256+SHA256
Mounted jweb-ex package on /dev/md8...
Verified manifest signed by PackageProductionEc_2018 method ECDSA256+SHA256
Verified jweb-ex-15.1R7.8 signed by PackageProductionEc_2018 method ECDSA256+SHA256
Executing /packages/mnt/jweb-ex-15.1R7.8/mount.post..
Error execution /packages/mnt/jweb-ex-15.1R7.8/mount.post: path /var/jail does not exist
Automatic reboot in progress...
Media check on da0 on ex platforms
** /dev/da0s1a
FILE SYSTEM CLEAN; SKIPPING CHECKS
clean, 22716 free (12 frags, 2838 blocks, 0.0% fragmentation)
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
365 files, 802 used, 62100 free (236 frags, 7733 blocks, 0.4% fragmentation)
Computing slice and partition sizes for /dev/da0 ...
checking for core dump...
savecore: could not be determined
No dump exists
** Last Mounted on /var/tmp
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
4 files, 4 used, 188850 free (26 frags, 23603 blocks, 0.0% fragmentation)
** 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
3 files, 4 used, 31602 free (34 frags, 3946 blocks, 0.1% fragmentation)
rm: /var/etc/pam.conf: Operation not permitted
mkdir: /mfs/var/sdb: No such file or directory
mkdir: /mfs/var/sdb: No such file or directory
Creating initial configuration...mgd: error: Cannot open configuration file: /config/juniper.conf
mgd: warning: activating factory configuration
mgd: Running FIPS Self-tests
veriexec: no signatures for device. file='/sbin/kats/cannot-exec' fsid=71 fileid=51404 gen=1 uid=0 pid=531
mgd: FIPS Self-tests Skipped
mgd: Running FIPS Self-tests
veriexec: no signatures for device. file='/sbin/kats/cannot-exec' fsid=71 fileid=51404 gen=1 uid=0 pid=592
mgd: FIPS Self-tests Skipped
mgd: commit complete
mgd: ----------------------------------------------------------
mgd: Please login as 'root'. No password is required.
mgd: To start Initial Setup, type 'ezsetup' at the JUNOS prompt.
mgd: To start JUNOS CLI, type 'cli' at the JUNOS prompt.
mgd: ----------------------------------------------------------
Setting initial options:  debugger_on_panic=NO debugger_on_break=NO.
Starting optional daemons: .
Doing initial network setup:
.
Initial interface configuration:
additional daemons:.
Additional routing options:kern.module_path: /boot//kernel;/boot/modules ->Loading the CHMIC module
/boot/modules;/modules/peertype;/modules/ifpfe_drv;/modules/platform;/modules;
kld netpfe drv: ifpfed_chmic ifpfed_ml_cmn ifpfLoading the EX-series platform NETPFE module
ed_svcskld platform: ex_ifpfe if_vcpkld peertype: peertype_hcm peertype_pfem peertype_sfi peertype_slavere grat_arp_on_ifup=YES: net.link.ether.inet.grat_arp_on_ifup: 1 -cryptosoft0: <software crypto> on motherboard
> 1
ipsec kld kats kldkldload: can't load kats.ko: File exists
IPsec: Initialized Security Association Processing.
.
Doing additional network setup:.
Starting final network daemons:.
starting local daemons:set cores for group access
.
Boot media /dev/da0 has dual root support
** /dev/da0s2a
FILE SYSTEM CLEAN; SKIPPING CHECKS
clean, 23228 free (28 frags, 2900 blocks, 0.0% fragmentation)
setting ldconfig path: /usr/lib /opt/lib
starting standard daemons: cron.
Local package initialization:.
Initialize /var subdirs
Thu Jun 28 18:56:58 UTC 2018
 
Amnesiac (ttyu0)
 
login: root
 
--- JUNOS 15.1R7.8 built 2018-04-27 20:41:48 UTC
root@:RE:0% cli
 
Broadcast Message from root@
        (no tty) at 18:57 UTC...
 
ALERT:Auto image Upgrade will start. This can terminate config         CLI sess
ion(s). Modified configuration will be lost. To stop Auto-image, in CLI do the
following: 'edit; delete chassis auto-image-upgrade; commit'.
 
{master:0}
root> configure
Entering configuration mode
Users currently editing the configuration:
  autodconfig (pid 1471) on since 2018-06-28 18:57:38 UTC
      exclusive
 
{master:0}[edit]
root#
 
{master:0}[edit]
root#
 
{master:0}[edit]
root#

 

 

2 REPLIES 2
Highlighted
Ethernet Switching

Re: EX3300 Autoinstalling a Configuration file from USB

‎11-02-2018 08:31 AM

I have never done what you are trying, but I "think" maybe that doc page has some inaccuracies! 

 

After power-up with USB installed, I believe switch is looking for a Junos OS image file  on USB to boot off of.

 

Since you are able to get to console, why not load the image via load terminal ?

 

https://www.juniper.net/documentation/en_US/junos/topics/topic-map/junos-config-files-loading.html

 

https://www.juniper.net/documentation/en_US/release-independent/topics/task/configuration/ex-series-...

 

This method works for sure -:)

Highlighted
Ethernet Switching

Re: EX3300 Autoinstalling a Configuration file from USB

[ Edited ]
‎11-05-2018 03:43 AM

@rccpgm: Many thanks for your response. To configure or change software via console is not use case which I aim at.


Use case is that field engineer gets the configuration for USB Memory Stick via e-mail. So field engineer has to plug USB Memory Stick, attach Switch to core Network and power on the device. Further Configuration will be done via inband management. (Zero Touch Provisioning)

Feedback