Monitoring, Management & Location Tracking

how to push Network Settings using CSV file during ZTP

Aruba Employee
Requirement:

Need to push Static Network setting  (IP Address, Netmask, Gateway) to Aruba Switch using CSV whitelist option during Zero Touch Provisioning  with Airwave.



Solution:

This is possible by including dynamic variables in CSV file in specific format for Network details. However we need to make sure that the variable names shouldn't match with the system defined variables. 



Configuration:

1. Configure your DHCP server refering the link below: 

http://h22208.www2.hpe.com/eginfolib/networking/docs/switches/WB/16-01/webhelp/content/ch09s05.html

you need to configure option 43 with details below:

<Group>:<Topfolder>:<folder1>,<AMP IP>,<shared secret>

 

2. Create a CSV file and make sure of the format:

For example: 

Sync dynamic variables,Modify authorized device,Name,LAN MAC Address,Serial Number,Group Name,Folder Name,hostname,ip,gateway_1,ip_address_1,netmask_1,Modify authorized device,Sync dynamic variables
0,1,Test_Aruba,F4:03:43:10:06:40,CN74HKX091,ARUBASW,ARUBASW,S74,static,172.x.x.x,172.x.x.x,255.255.255.0,0,1
 

Note: you need to make sure that the dynamic variables shouldn't match with the System defined variables. In this case the variable name I haved used suffix as '_1'.

 

You also need to modify the Template with the variable you have defined in .csv file

For example: 

%template_header%

hostname "%hostname%"
%module_command%
include-credentials
ip default-gateway %gateway_1%
snmp-server community "public" unrestricted
snmp-server community "test123" operator unrestricted
snmp-server host 172.x.x.x community "test123" trap-level all

vlan 1
   name "DEFAULT_VLAN"
   ip address %ip_address_1% %netmask_1%
   exit
amp-server ip 172.x.x.x group "ARUBASW" folder "ARUBASW" secret "aruba123"

 

3. AMP Confiugration: 

In AMP setup > General page enable Whitelist option for Authorize Aruba Instant APs and Aruba Switches to Airwave. Also For Automatically Authorized Switch mode, enable Manage Read/Write.

Then 

 

Now, navigate to New Devices from Top header or from AP/Devices > New and upload the CSV file. 

 

Once switch gets the IP and Airwave server details from DHCP server, it will be contacting the Airwave. As per the Whitelisting it will get authorized and setting will get pushed to the Switch as per the CSV file.

 



Verification

To verify the config: 

1. Login to the switch and verify the network settings using 'show ip' command.

2. Verify the IP details from the Switch's Monitor and Manage page from Airwave. 

 

To debug: 

You could also enable debug for ztp, events and destination session on the switch using the command below:   

deb ztp
deb eve
deb des sess

Version history
Revision #:
2 of 2
Last update:
4 weeks ago
Updated by:
 
Labels (1)
Contributors
Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: