The provisioning process includes the following operations:
pushing a PicOS® image
configuring the switch
installing a valid license in the switch.
Following are the required steps for the automated provisioning of a new switch:
IT operator racks the new switch, powers the switch on and connects it to either an in-band or out-of-band network.
ONIE (Open Network Install Environment) is required on the Bare Metal switch. Please read the Installing PICOS on Bare Metal Switches using AmpCon document to load properly load the PICOS image.
After loading image, the switch will register with the AmpCon server to get configuration and obtain a valid license.
Prerequisites
...
Ensure that you have created system config and switch configurations for the Switch to provision. For more information, see Adding System Configurations and Adding Switch Configurations.
...
Zero Touch Provisioning (ZTP) is a technology for automated deployment and configuration of network devices. AmpCon-DC supports using ZTP to provision new switches.
ZTP relies on the DHCP service, and thus you need to configure DHCP first. After you plug in and reboot a switch, DHCP automatically provides the switch with an IP address and the address of a provision shell script that is obtained from AmpCon-DC server. Then, the switch automatically runs the shell script to complete the ZTP deployment:
The white-box switch runs the shell script to download a PicOS image, install PicOS and its license, register with the AmpCon-DC server, update switch configurations, and reboot the switch.
The integrated hardware and software switch runs the shell script to register with the AmpCon-DC server, install a PicOS license on the switch, update switch configurations, and reboot the switch.
Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Prerequisites
Ensure that the following prerequisites are met:
The Hardware ID of the switch to provision has been are added to the AmpCon-DC license. For more information, see Preparing Licenses.
For white-box switches, step 1 to 7 in Deploying White-Box Switches are completed.
For integrated hardware and software switches, step 1 to 5 in Deploying Integrated Hardware and Software Switches are completed.
You have installed a DHCP server and added configurations as follows to the DHCP configuration file (/etc/dhcp/dhcpd.conf):
For white-box switches, refer to the following configuration example:
“10.10.51.4” is the IP address that you want to assign to the switch.
“10.56.20.180” is the IP address of the AmpCon-DC server.
...
For integrated hardware and software switches, refer to the following configuration example:
“10.10.51.198” is the IP address that you want to assign to the switch.
“10.56.20.184” is the IP address of the AmpCon-DC server.
...
Provisioning a White-Box
...
Switch
Download and install MobaXterm.
Open MobaXterm, and then create a session to connect with the switch.
Obtain the PicOS® image from the AmpCon-DC server by running the command:
wget http://<AmpCon-Server-IP>/onie |
---|
Replace <AmpCon-Server-IP> with the IP address of your AmpCon-DC server.
...
Reboot the switch by running the following command:
sudo reboot -f |
---|
If you see the “Hit any key to stop autoboot” message, press the Enter key to exit the autoboot mode.
If you don’t see this message, go to step 5 directly.
Reboot the switch.
For switches with the ONIE menu, select ONIE, and then select ONIE: Install OS.
...
For AS4610 switches, reboot from ONIE by running the following command:
run onie bootcmd |
---|
Then, the switch will be restarted and automatically register with the AmpCon-DC server.
Wait for the registration process to be completed.
...
In the AmpCon-DC UI, click Service > Switch. Check whether the switch status is shown as Provisioning Success.
...
Provisioning an Integrated Hardware and Software Switch
Download and install MobaXterm.
Open MobaXterm, and then create a session to connect with the switch.
Reboot the switch by running the following command.
sudo reboot |
---|
...
Then, the switch will be restarted and automatically register with the AmpCon-DC server.
Wait for the registration process to completebe completed.
chmod a+x onie sh onie |
---|
...
In the AmpCon-DC UI, click Service Services > Switch. You can see Check whether the switch status of the switch is “Provisioning Success”.
...
is shown as Provisioning Success.
...