Support Support Downloads Knowledge Base Service Request Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[EX/QFX] How to implement ZTP on QFX and EX series switches

0

0

Article ID: KB31216 KB Last Updated: 04 Mar 2017Version: 2.0
Summary:

This article describes how to implement ZTP on QFX and EX series switches on Windows servers with Junos OS.


Symptoms:
 
Cause:

 How to implement ZTP on QFX and EX series switches.

Solution:

Preparation:


Connect the management interface of the EX/QFX device to the Windows server. Windows server should have both DHCP and HTTP server available.

DHCP Server Configuration:


Scope: Create scope with range of IP addresses that you need to give to your client (EX/QFX Devices)

DHCP Option Configuration:

003: Router. The IP address of DHCP server which acts as gateway.
006: Boot Server Host Name: IP of the DHCP/HTTP/FTP Server.
043: Here we need to configure all the attributes that the DHCP server is going to return.

Here sub option 0 : Junos File Name

1 : Config File name
3 : Transfer Protocol Name

All the above attributes must be configured in hex value. To to do so,  follow this procedure:

  1. From https://github.com/JNPRAutomate/opt43builder download opt43builder_windows_amd64.exe file

  2. Install opt43builder_windows_386.exe file.
  3. From the command prompt,  run the following command:


    opt43builder_windows_386.exe -options="0:jinstall-qfx-5e-15.1X53-D30.5-domestic-signed.tgz,1:test.cfg,3:http"
  4. From the output capture the Hex (spaces) output:

  5. C:\Documents and Settings\Administrator>opt43builder_windows_386.exe -options="0
    :jinstall-qfx-5e-15.1X53-D30.5-domestic-signed.tgz,1:test.cfg,3:http"
    Decimal (Spaces): 00 49 106 105 110 115 116 97 108 108 45 113 102 120 45 53 101
    45 49 53 46 49 88 53 51 45 68 51 48 46 53 45 100 111 109 101 115 116 105 99 45 1
    15 105 103 110 101 100 46 116 103 122 01 08 116 101 115 116 46 99 102 103 03 04
    104 116 116 112
    Decimal: 00491061051101151169710810845113102120455310145495346498853514568514846
    53451001111091011151161059945115105103110101100461161031220108116101115116469910
    21030304104116116112
    Hex (Spaces): 00 31 6a 69 6e 73 74 61 6c 6c 2d 71 66 78 2d 35 65 2d 31 35 2e 31
    58 35 33 2d 44 33 30 2e 35 2d 64 6f 6d 65 73 74 69 63 2d 73 69 67 6e 65 64 2e 74
    67 7a 01 08 74 65 73 74 2e 63 66 67 03 04 68 74 74 70
    Hex: 00316a696e7374616c6c2d7166782d35652d31352e315835332d4433302e352d646f6d65737
    469632d7369676e65642e74677a0108746573742e636667030468747470
    Hex Full(Spaces): 0x0 0x31 0x6a 0x69 0x6e 0x73 0x74 0x61 0x6c 0x6c 0x2d 0x71 0x6
    6 0x78 0x2d 0x35 0x65 0x2d 0x31 0x35 0x2e 0x31 0x58 0x35 0x33 0x2d 0x44 0x33 0x3
    0 0x2e 0x35 0x2d 0x64 0x6f 0x6d 0x65 0x73 0x74 0x69 0x63 0x2d 0x73 0x69 0x67 0x6
    e 0x65 0x64 0x2e 0x74 0x67 0x7a 0x1 0x8 0x74 0x65 0x73 0x74 0x2e 0x63 0x66 0x67
    0x3 0x4 0x68 0x74 0x74 0x70
    Hex Full: 0x00x310x6a0x690x6e0x730x740x610x6c0x6c0x2d0x710x660x780x2d0x350x650x2
    d0x310x350x2e0x310x580x350x330x2d0x440x330x300x2e0x350x2d0x640x6f0x6d0x650x730x7
    40x690x630x2d0x730x690x670x6e0x650x640x2e0x740x670x7a0x10x80x740x650x730x740x2e0
    x630x660x670x30x40x680x740x740x70
  6. This data should go inside option 43:




To configure HTTP Server on Windows 2003 Server

  1. Install Abyss Web Server X1 (c 2.11.1)

  2. Click on Configure > General > Browse
  3. Add the directory where the config and Junos images are located:





Once the DHCP server is ready, the following procedure can be performed on QFX/EX devices:

  1. Request system zeroize on the EX/QFX box. Example output of how this works (This is tested just with config file).
  2. Auto Image Upgrade: DHCP Client Bound interfaces: vme.0

  3. Auto Image Upgrade: DHCP Client Unbound interfaces: irb.0 em1.0
  4. Auto Image Upgrade: To stop, on CLI apply

clecleroot@:RE:0% clear

Auto Image Upgrade: Active on client interface: vme.0

Auto Image Upgrade: Interface:: "vme"

Auto Image Upgrade: Server:: "1.1.1.2"

Auto Image Upgrade: Image File:: "NOT SPECIFIED"

Auto Image Upgrade: Server File:: "test.cfg"

Auto Image Upgrade: Jloader Package File:: "NOT SPECIFIED"

Auto Image Upgrade: Protocol:: "http"


Auto Image Upgrade: Start fetching test.cfg file from server 1.1.1.2 through vm
e using http


Auto Image Upgrade: File test.cfg fetched from server 1.1.1.2 through vme


Auto Image Upgrade: Applying test.cfg file configuration fetched from server 1.
1.1.2 through vme


Broadcast Message from root@
(no tty) at 12:55 UTC...

Auto image Upgrade: Stopped


Auto Image Upgrade: Committed Configuration test.cfg received from 1.1.1.2 thro
ugh vme


Amnesiac (ttyd0)

login: root
Password:

--- JUNOS 14.1X53-D38_vjunos.50 built 2016-07-01 11:24:33 UTC
root@:RE:0% cli
{master:0}
root> show vlans

Routing instance VLAN name Tag Interfaces
default-switch default 1

default-switch test 10

Example output of image upgrade using ZTP:


o Image Upgrade: DHCP Options for client interface vme.0 ConfigFile:
test.cfg ImageFile: jinstall-qfx-5e-15.1X53-D30.5-domestic-signed.tgz
DHCP Server: 1.1.1.2 File Server: 1.1.1.2 Options state: All options set

Auto Image Upgrade: Active on client interface: vme.0

Auto Image Upgrade: Interface:: "vme"

Auto Image Upgrade: Server:: "1.1.1.2"

Auto Image Upgrade: Image File:: "jinstall-qfx-5e-15.1X53-D30.5-domestic-signed.tgz"

Auto Image Upgrade: Server File:: "test.cfg"

Auto Image Upgrade: Protocol:: "http"

Auto Image Upgrade: Start fetching test.cfg file from server 1.1.1.2 through vme using http

Auto Image Upgrade: File test.cfg fetched from server 1.1.1.2 through vme

Auto Image Upgrade: Start fetching jinstall-qfx-5e-15.1X53-D30.5-domestic-signed.tgz file from server 1.1.1.2 through vme using http

Auto Image Upgrade: File jinstall-qfx-5e-15.1X53-D30.5-domestic-signed.tgz fetched from server 1.1.1.2 through vme

Auto Image Upgrade: To install /var/tmp/jinstall-qfx-5e-15.1X53-D30.5-domestic-signed.tgz image fetched from server 1.1.1.2 through vme

WARNING!!! On successful image installation, system will reboot automatically



{master:0}
root>
Auto Image Upgrade: Installation of /var/tmp/jinstall-qfx-5e-15.1X53-D30.5-domestic-signed.tgz image fetched from server 1.1.1.2 through vme is done, proceeding for reboot of system

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Security Alerts and Vulnerabilities

Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search