ArubaOS 8.6.0.0Help Center
You are here: > Getting Started > Automatic Setup

Automatic Setup using ZTP

ZTPZero Touch Provisioning. ZTP is a device provisioning mechanism that allows automatic and quick provisioning of devices with a minimal or at times no manual intervention.makes the deployment ofmanaged deviceplug-n-play. Themanaged device现在,从网络中学习所有必需的信息,并自动学习规定。

ZTPZero Touch Provisioning. ZTP is a device provisioning mechanism that allows automatic and quick provisioning of devices with a minimal or at times no manual intervention., amanaged deviceautomatically gets its local and global configuration and license limits from a centralmanaged device. A manage device with factory default settings gather the required information from the network and then provision itself automatically.

使用SDWAN 1.7图像将9004设备转换为控制器

Perform the following steps to convert the9004device with an SDWAN image to acontroller:

1.确保9004device is added in the correct Activate folder. For example, the folder should have the托管node_to_mc规则和设备序列号应类似于CNHHKLB02B。

2.重置9004设备到工厂图像和9004设备加载8.6.0.0图像。

示例配置

In this example,ArubaOS8.5.0.3 image is used.

阿鲁巴网络

Arubaos版本8.5.0.0.0-1.0.7.1(Build 72342 / Label#72342)

由P4Build@pr-hpn-Build05于2019-09-20在15:32:42 UTC构建(GCC版本4.9.4)

(c) Copyright 2019 Hewlett Packard Enterprise Development LP.

[02:47:16]:Starting device manager [ OK ]

<<<<<欢迎来到Aruba Networks -Aruba A9004 -US >>>>>

[02:47:18]:Probing for real-time clock [ OK ]

[02:47:18]:取消压缩核心图像文件[确定]

[02:47:36]:提取corefs [OK]

[02:47:36]:等待存储设备... [确定]

Performing partition fast test... [ DONE ]

Checking for file system... [ OK ]

[02:47:37]:Mounting flash [ OK ]

[02:47:37]:Mounting disk1 [ OK ]

[02:47:37]:安装磁盘[确定]

[02:47:37]:Initializing 256MB as swap on zRam0 [ OK ]

[02:47:39]:Turning swap ON on zRAM0 [ OK ]

[02:47:39]:Installing ancillary FS [ OK ]

对辅助分区0 [确定]执行完整性检查

从/flashmv运行启动脚本:无法重命名`/flash/config/fpapps':否此类文件或目录

mv: unable to rename `/flash/config/policymgr': No such file or directory

MV:无法重命名`/flash/config/hcm':没有此类文件或目录

mv: unable to rename `/flash/config/sos.elf': No such file or directory

[ OK ]

[02:47:43]:QAT driver initialization [ OK ]

[02:47:59]:Reboot Cause: User reboot (Intent:cause: 86:50)

[02:47:59]:启动Syslog Service [OK]

[02:47:59]:删除数据库[确定]

[02:47:59]:Restoring the database [ OK ]

[02:47:59]:Starting random number generation service [ OK ]

[02:47:59]:Intel RDRAND is supported [ OK ]

[02:47:59]:启动HW随机数生成服务[OK]

[02:47:59]:Generating SSH keys [ OK ]

[02:47:59]:SPI NOR flash mounted successfully [ OK ]

[02:48:00]:初始化TPM和证书[确定]

[02:48:00]:Checking for configuration upgrade [ OK ]

[02:48:00]:安装崩溃内核[OK]

[02:48:01]:rcS Done(45 sec)

[02:48:01]:Starting OS services [ OK ]

n^?e

enable-debug

开始ZTP

开始ZTPauto provision

Starting auto provisioning

Registered for NTP Sync

Initiated DHCP, awaiting DHCP response

接收到DHCP响应,我的IP = 192.168.82.1,master = none,mask = 255.255.255.0,gw = 192.168.82.254,dns = 10.44.17.241,country Code = none,物理端口= 3

Oct 28 02:49:28 LOG: Received DHCP response, My IP = 192.168.82.1, Master = none, Mask = 255.255.255.0, GW = 192.168.82.254, DNS = 10.44.17.241, Country code = none

DNS server name 10.44.17.241 assigned to info structure..

10月28日02:49:28日志:DNS服务器名称10.44.17.241分配给信息结构。

Master info not received, trying activate

Oct 28 02:49:28 LOG: Master info not received, trying activate

Oct 28 02:49:28 LOG: Starting Activate communication

10月28日02:49:28日志:激活服务器URL用于自动提供https://device.arubanetworks.com/provision

Oct 28 02:49:28 LOG: Sending provisioning parameters request to Activate

Oct 28 02:49:28 LOG: Posting message to Activate

OCT 28 02:49:28日志:执行curl命令/usr/sbin/curl https://device.arubanetworks.com/provision -cacert/tmp/act_cert_cert_bundle.pem -x/var/log/oslog/activate/trace1.txt -h“连接:keep-alive” -h“ x-type:provision-update” -h“ content-length:0” -h“ -h” x-mode:controller''-h“ x-current-version:8.5.0.0.0.7.1.1_72342“ -h” x-ap-info:cnhhklb02b,20:4c:4c:03:40:40:0b:0b:0b:78,aruba9004-us-us-us-us-us“ -d /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /log/oslog/activate/act_resp

Oct 28 02:49:28 LOG: Provisioning parameters request sent to Activate

curl: (6) Could not resolve host: device.arubanetworks.com

Oct 28 02:49:28 LOG: Activate handler invoked for client 7230

Oct 28 02:49:28 ERR: Activate client failed with status 1536

10月28日02:49:28错误:终止因故障而引起的激活连接

10月28日02:49:28日志:停止激活通信

Oct 28 02:49:28 LOG: Destroying Activate context

Oct 28 02:49:28 LOG: Calling response handler

未从激活中收到的配置参数,将在30秒后重试

Oct 28 02:49:28 ERR: Activate failed, will retry after 30 seconds

10月28日02:49:28日志:AcitVate重试计数为1。在DHCP重置之前重新恢复:9

Oct 28 02:49:58 LOG: Retrying Activate device.arubanetworks.com

10月28日02:49:58日志:开始激活通信

Oct 28 02:49:58 LOG: Activate server URL being used for auto-provisioning https://device.arubanetworks.com/provision

Oct 28 02:49:58 LOG: Sending provisioning parameters request to Activate

Oct 28 02:49:58 LOG: Posting message to Activate

10月28日02:49:58日志:执行curl命令/usr/sbin/curl https://device.arubanetworks.com/provision -cacert/tmp/act_cert_cert_bundle.pem -x/var/log/oslog/activate/trace1.txt -h“连接:keep-alive” -h“ x-type:provision-update” -h“ content-length:0” -h“ -h” x-mode:controller''-h“ x-current-version:8.5.0.0.0.7.1.1_72342“ -h” x-ap-info:cnhhklb02b,20:4c:4c:03:40:40:0b:0b:0b:78,aruba9004-us-us-us-us-us“ -d /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /var /log/oslog/activate/act_resp

Oct 28 02:49:58 LOG: Provisioning parameters request sent to Activate

Oct 28 02:49:58 LOG: Activate handler invoked for client 7461

10月28日02:49:58日志:解析激活响应

10月28日02:49:58日志:收到挑战,发送挑战回应

10月28日02:49:58日志:处理挑战和编码

Oct 28 02:49:58 LOG: Adding challenge hash

10月28日02:49:58日志:添加消息主体

Oct 28 02:49:58 LOG: Posting message to Activate

Oct 28 02:49:58 LOG: Executing CURL Command /usr/sbin/curl https://device.arubanetworks.com/provision --cacert /tmp/act_cert_bundle.pem --trace-ascii /var/log/oslog/activate/trace2.txt -H "Connection: close" -H "X-Type: provision-update" -H "Content-Length: 2630" -H "X-Mode: CONTROLLER" -H "X-Current-Version: 8.5.0.0-1.0.7.1_72342" -H "X-Session-Id: 0f29ab6a-43d0-444d-8cdc-b26763a39945" -H "X-Challenge-Hash: SHA-1" -H "X-Oem-Tag: Aruba" -H "X-Ap-Info: CNHHKLB02B, 20:4c:03:40:0b:78, Aruba9004-US" --data-binary @/var/log/oslog/activate/act_body -D /var/log/oslog/activate/act_resp -o /var/log/oslog/activate/act_rbody

Oct 28 02:49:58 LOG: Challenge response sent to Activate

百分比收到%XFERD平均速度时间时间当前

DLOAD上传总左速度

100 2720 100 90 100 2630 468 13697 --:--:-- --:--:-- --:--:-- 14240

Oct 28 02:49:58 LOG: Activate handler invoked for client 7467

10月28日02:49:58日志:解析激活响应

10月28日02:49:58日志:强制性升级信息可用[8.5.0.3_72498],运行版本[8.5.5.0.0.0.0.7.7.1_72342]

Oct 28 02:49:58 LOG: Attempting mandatory upgrade firmware with http://activate-frm5-cf.arubathena.com/fwfiles/ArubaOS_90xx_8.5.0.3_72498...

................................................................................................... oct 28 02:50:18日志:

Checking if the file was downloaded successfully and try to update flash...

Image is signed;

Image is signed;

Image upgrade done sucessfully!

3.Ensure to have the required configurations in theMobility Master, where the device terminates. After the9004devices comes up with required image, verify that the device is in UP and UPDATE SUCCESSFUL state.

示例配置

(master_ctrl_40_0b_78)#show loyinfo

Switchrole:MD

Masterip:10.8.248.150

Certificate Type: Factory Certificates

Master MAC: 20:4c:03:13:a0:e4

(MASTER_CTRL_40_0B_78) #show image version

---------------------------------------------------

分区:0:0(/mnt/disk1)**默认启动**

Software Version : ArubaOS 8.5.0.3 (Digitally Signed SHA1/SHA256 - Production Build)

Build number : 72498

Label : 72498

Built on : Tue Oct 1 08:00:09 UTC 2019

---------------------------------------------------

分区:0:1(/mnt/disk2)

Software Version : ArubaOS 8.5.0.3 (Digitally Signed SHA1/SHA256 - Production Build)

Build number : 72498

Label : 72498

Built on : Tue Oct 1 08:00:09 UTC 2019

(MASTER_CTRL_40_0B_78) #show switches

All Switches

--------------

IP Address IPv6 Address Name Location Type Model Version Status Configuration State Config Sync Time (sec) Config ID

------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------

3.4.5.6无Master_ctrl_40_0b_78 buildues1.floor1 MD Aruba9004 8.5.0.3_72498 UP UP UP UP UPDITS成功6 10

总开关:1

/*]]>*/
Baidu