/
Adding Switch Configurations

Adding Switch Configurations

Before you provision a switch as described in Provisioning New Switches with ZTP, add a switch configuration. You can also add multiple switch configurations by using a JSON file.

Before You Begin

  • If you provision a switch without adding a switch configuration beforehand, the switch will be in Parking status. The switch in Parking status is not listed on the “Switch” page and can’t be staged.

In the AmpCon-DC UI, click Service > Switch. On the “Switch” page, click Parking Lot, and then you can see all switches in Parking status. Locate a parking switch, and then click Create Config to add a switch configuration. After you add the switch configuration, the switch will be listed on the “Switch” page with the Configured status.

Adding a Switch Configuration

  1. In the AmpCon-DC UI, click Services > Switch Configuration.

  2. Input the following information:

    • Switch SN/Service Tag: The SN or service tag of the switch.

    • Switch Model: Select the switch model of the switch.

    • Deployment Location: The location where the switch exists, such as Beijing.

    • Fabric: Select the fabric that the switch belongs to. The default fabric is selected by default.

    • Select Global Config: Select the global configuration file with configurations to push to the switch.

    • Select Site Template: Select the configuration template to use.

    • Option Post-Deployed: Select whether to back up the switch configuration.

       

      80.png

       

  3. Click Next. You can see an input section, which is related to the selected configuration template. Enter the relevant information.

81.png
  1. Click Save.

  2. In the Preview Config pop-up window, preview or edit the global configurations.

  1. Click Save. The switch configuration is added now. On the “Switch List” page, you can see the switch status is shown as Configured.

  2. Click System Config to select the system configuration that is applicable to the switch.

Note: The selected system configuration needs to contain the default username and password of the switch.

  1. Optional: Click Agent to edit the Pushing Agent Configuration information.

Adding Multiple Switch Configurations with a JSON file

You can add multiple switch configurations by uploading a JSON file. In this way, you don’t need to add each switch configuration one by one. Follow these steps:

  1. Prepare a JSON file with switch configurations. See the following example:

{

"sn": [ "EC1631000063","EC1806001292","732656X2007017"],

"hardware_model": "ag5648",

"location": "Beijing",

"global_config_name": "2024-8-2-glob-ag5648-test1",

"site_template_name": ["test1"],

"agent_config": {

"enable": true,

"vpn_enable": true,

"server_domain": "http://pica8.com ",

"inband_native_vlan": "4094",

"server_vpn_host": "vpn.pica8.com",

"inband_vlan": "4094",

"server_hostname_prefix": "ac",

"inband_lacp": true,

"uplink_ports": "te-1/1/49,te-1/1/50",

"uplink_speed": "1000"

},

"vpn": true,

"retrieve_config": true,

"default_config_param": {

"test1": {

"vlan_id": "12",

"vlan_name": "23"

}

},

"unique_config_param": {

}

}

  1. In the AmpCon-DC UI, click Services > Switch Configuration.

  2. Click Upload by JSON.

  3. Click or drag a file to upload the JSON file.

  4. Click Upload.

Viewing or Editing Switch Configurations

In the Historical Switch Config Edit section, you can see all the added switch configurations, which are grouped by switch models.

To edit a switch configuration, follow these steps:

  1. Locate the global configuration, and then click it.

  1. In the pop-up window, click Edit.

  2. Edit the configurations as you need.

  3. Click Save.

Optional: Checking the Switch Status

After you add a switch configuration, check whether the switch status is shown as Configured.

If not, locate the switch, and click Log to see more details.

 

Related content

Copyright © 2025 Pica8 Inc. All Rights Reserved.