Provisioning Pre-Configured AOS-CX Switches

Unlike factory default switches, locally managed switches and the switches with custom configuration require one touch provisioning. On AOS-CX switches, Aruba Central is enabled, by default, as their management platform, and therefore the switches connect to Aruba Central automatically.

To onboard a locally-managed or a pre-configured AOS-CX switch to Aruba Central, follow one of the following options:

The following figure illustrates provisioning procedure for a pre-configured switch.

Figure 1  Provisioning Workflow for Pre-Configured AOS-CX Switches

Workflow 1—Pre-Provisioning an AOS-CX Switch

The pre-provisioning workflow includes the following steps:

Step 1: Onboard the AOS-CX Switch to Aruba Central

To onboard AOS-CX switches to the device inventory in Aruba Central, complete the following steps:

Step 2: Assign the AOS-CX Switch to a Group

AOS-CX switches can be provisioned in both UI and template groups. To preserve the switch configuration, you can either move it to a new template group or to a UI group. For more information about retaining switch configuration when moving a switch to a UI group, see Moving AOS-CX Switches Between Groups.

For more information on creating a switch group, see Creating Groups for Switches.

To assign a device to a group from the Aruba Central app:

  1. In the Aruba Central app, set the filter to Global.

    The dashboard context for the group is displayed.

  2. Under Maintain, click OrganizationGroups.

    The Groups page is displayed.

  3. From the devices table on the right, select the device that you want to assign to a new group.
  4. Drag and drop the device to the group to which you want to assign the device.

Step 3: Provision the AOS-CX Switch to a Group

When the AOS-CX switch connects to Aruba Central, Aruba Central assigns it to the pre-assigned group. If no group is pre-assigned, then Aruba Central moves it to the unprovisioned group.

Figure 2  Switch Provisioning Steps Per Group Type

If the switch is assigned to a new UI group, you can modify the configuration of switches in a group using the UI menu options under the Aruba Central app > Manage > Devices > Switches. For more information, see Configuring AOS-CX Switches in UI Groups.

You can also move switches to a UI group. When moving switches from an unprovisioned, template, or UI group to another UI group, the existing switch configuration can be retained by selecting the Retain CX-Switch Configuration check box on the Move Devices page. For more information, see Moving AOS-CX Switches Between Groups.

You can import the existing switch configuration to a new configuration template and apply this template to other devices in the group. To create a configuration template using the existing configuration on the switch:

  1. In the Aruba Central app, set the filter to a template group.

    The dashboard context for the group is displayed.

  2. Under Manage, click Devices > Switches.
  3. Click the Config icon.

    The tabs to configure switches using templates is displayed.

  4. Click the Templates tab. The Templates page is displayed.
  5. Click + to add a new template. The Add Template window is displayed.
  6. In the Basic Info tab, enter a name for the template in the Template Name field.
  7. In the Device Type drop-down, select Aruba CX.
  8. Select the switch model and software version. You can specify any of the following combinations:
    • ALL for both Model and Version—To apply the template to all switch models and all supported switch software versions.
    • ALL for Model and a software version for Version—To apply the template to all switch models running the selected software version.
    • ALL for Version and a switch model for Model—To apply the template to a switch model and all software versions supported by the selected switch model.
    • A switch model and a software version—To apply the template to a specific switch model and the software version. The template created for a switch model and a software version takes precedence over the template that is created for all platforms and versions.
  9. Select the manufacturing part number of the switch in the Part Number drop-down.
    • The Part Number drop-down is displayed only if you select a switch model in the Model drop-down.
    • If you select a specific switch model and part number, you can apply the template to a standalone switch and not to a stack.
    • If you select All in the Model drop-down, or if you select a switch model and All in the Part Number drop-down, you can apply a template to both a standalone switch and stack.
  10. Click Next. The Template tab is displayed.
  11. Build a new template by adding the output of the show running-config from the switch CLI in the Template text box. Ensure that the template text adheres to the guidelines listed in Important Points to Note.
    • You must manually create the template for the AOS-CX switch in a group, along with the password in plaintext format. You can use the output of the show running-config command to create the template. You can also add variables to use the same template for onboarding multiple AOS-CX switches. For more information on variables, see Managing Variable Files.
    • All switch templates must include a password command to set a password for the device. The template cannot be saved without adding a password command. If the configuration that is pushed from Aruba Central to the device does not contain a password command, the configuration push is aborted for the device and a log is added to the audit trail. For example, if you add the password command in a condition block and the condition evaluates to false, the configuration that is pushed will not contain the password command. For more information, see Managing Password in Configuration Templates.
    • For AOS-CX switches, you must configure the password only in plaintext. Also, the format of password must be user admin group administrators password plaintext <string>.
    • For AOS-CX switches, the password configured in the template must match the password configured on the switch. Aruba Central cannot override the password that is configured on the switch.
    • In the AOS-CX template configuration, the pound sign (#) is used for adding comments. When using the banner motd code in the template configuration, use a delimiter such as at (@) symbol or any other special character, than using the pound sign (#). Using the pound sign (#) with the banner motd code will cause the code to be dropped when processing the template.
  12. Click Save. After you apply the configuration template, switches reboot and reconnect to Aruba Central with the new configuration.

Step 4: Verify the Configuration Status

To verify the configuration status:

  1. In the Aruba Central app, set the filter to a template group.

    The dashboard context for the group is displayed.

  2. Under Manage, click Devices > Switches.
  3. Click the Config icon.

    The tabs to configure switches using templates is displayed.

    • To verify the configuration status for the template group, click Configuration Audit. The Configuration Audit dashboard displays the number of devices with template and configuration synchronization errors.
    • To view configuration errors for a specific device, select a switch from the filter bar. The Configuration Audit dashboard displays the number of template and configuration synchronization errors for the device.
  4. To view template errors, click View Template Errors.
  5. To view configuration synchronization errors, click View Details under Configuration Status.
  6. To compare running configuration and pending changes, click View under Config Comparsion Tool.

Workflow 2—Provisioning an AOS-CX Switch On-Demand

To dynamically provision switches on-demand, complete the following steps:

Step 1: Add the AOS-CX Switch to Aruba Central

Add the switch to the Aruba Central device inventory.

For more information, see the Managing Devices section in the HPE GreenLake Edge to Cloud Platform User Guide.

Step 2 Assign a Subscription to the AOS-CX Switch

To allow Aruba Central to manage the switch, ensure that a valid subscription is assigned to the switch.

For more information, see the Managing Devices section in the HPE GreenLake Edge to Cloud Platform User Guide.

Step 3: Provision the AOS-CX Switch to a Group

If the switch has a valid subscription assigned, Aruba Central marks the switch as unprovisioned. To preserve the switch configuration, you can either move it to a new template group or to a UI group. For more information about retaining switch configuration when moving a switch to a UI group, see Moving AOS-CX Switches Between Groups.

To move the device to a UI group

  1. In the Aruba Central app, set the filter to Global.

    The dashboard context for the group is displayed.

  2. Under Maintain, click OrganizationGroups.

    The Groups page is displayed.

  3. Select the device.
  4. Click Import Configuration to New Group. The Import configuration window is displayed.
  5. Enter a name for the group.
  6. Configure a password for the group.
  7. Click Import configuration. Aruba Central imports the switch configuration to the new group.

You can also modify the configuration of switches in a group using the UI menu options under the Aruba Central app > Manage > Devices > Switches. For more information, see Configuring AOS-CX Switches in UI Groups.

To move the device to a template group

  1. Create a template group.
  2. In the Aruba Central app, set the filter to Global.

    The dashboard context for the group is displayed.

  3. Under Maintain, click OrganizationGroups.

    The Groups page is displayed.

  4. Select the AOS-CX switch.
  5. Drag and drop the switch to the new template group that you just created. Aruba Central adds the switch to the new template group.
  6. To build a new configuration template:
    1. In the Aruba Central app, set the filter to a template group.

      The dashboard context for the group is displayed.

    2. Under Manage, click Devices > Switches.
    3. Click the Config icon.

      The tabs to configure switches using templates is displayed.

    4. Click the Templates tab. The Templates page is displayed.
    5. Click + to add a new template. The Add Template window is displayed.
    6. In the Basic Info tab, enter a name for the template in the Template Name field.
    7. In the Device Type drop-down, select Aruba CX.
    8. Select the switch model and the software version to which you want to apply the new template. You can specify any of the following combinations:
      • ALL for both Model and Version—To apply the template to all switch models and all supported switch software versions.
      • ALL for Model and a software version for Version—To apply the template to all switch models running the selected software version.
      • ALL for Version and a switch model for Model—To apply the template to a switch model and all software versions supported by the selected switch model.
      • A switch model and a software version—To apply the template to a specific switch model and the software version. The template created for a switch model and a software version takes precedence over the template that is created for all platforms and versions.
      • A switch model and a software version—To apply the template to a specific switch model and the software version. The template created for a switch model and a software version takes precedence over the template that is created for all platforms and versions.
    9. Select the manufacturing part number of the switch in the Part Number drop-down.
      • The Part Number drop-down is displayed only if you select a switch model in the Model drop-down.
      • If you select a specific switch model and part number, you can apply the template to a standalone switch and not to a stack.
      • If you select All in the Model drop-down, or if you select a switch model and All in the Part Number drop-down, you can apply a template to both a standalone switch and stack.
    10. Click Next. The Template tab is displayed.
    11. Build a new template by adding the output of the show running-config from the switch CLI in the Template text box. Ensure that the template text adheres to the guidelines listed in the Important Points to Note.
      • You must manually create the template for the AOS-CX switch in a group, along with the password in plaintext format. You can use the output of the show running-config command to create the template. You can also add variables to use the same template for onboarding multiple AOS-CX switches. For more information on variables, see Managing Variable Files.
      • All switch templates must include a password command to set a password for the device. The template cannot be saved without adding a password command. If the configuration that is pushed from Aruba Central to the device does not contain a password command, the configuration push is aborted for the device and a log is added to the audit trail. For example, if you add the password command in a condition block and the condition evaluates to false, the configuration that is pushed will not contain the password command. For more information, see Managing Password in Configuration Templates.
      • For AOS-CX switches, you must configure the password only in plaintext. Also, the format of password must be user admin group administrators password plaintext <string>.
      • For AOS-CX switches, the password configured in the template must match the password configured on the switch. Aruba Central cannot override the password that is configured on the switch.
      • In the AOS-CX template configuration, the pound sign (#) is used for adding comments. When using the banner motd code in the template configuration, use a delimiter such as at (@) symbol or any other special character, than using the pound sign (#). Using the pound sign (#) with the banner motd code will cause the code to be dropped when processing the template.
    12. Click Save. After you apply the configuration template, switches reboot and reconnect to Aruba Central with the new configuration.

Step 4: Verify the Configuration Status

To verify the configuration status:

  1. In the Aruba Central app, set the filter to a template group.

    The dashboard context for the group is displayed.

  2. Under Manage, click Devices > Switches.
  3. Click the Config icon.

    The tabs to configure switches using templates is displayed.

    • To verify the configuration status for the template group, click Configuration Audit. The Configuration Audit dashboard displays the number of devices with template and configuration synchronization errors.
    • To view configuration errors for a specific device, select a switch from the filter bar. The Configuration Audit dashboard displays the number of template and configuration synchronization errors for the device.
  4. To view template errors, click View Template Errors.
  5. To view configuration synchronization errors, click View Details under Configuration Status.
  6. To compare running configuration and pending changes, click View under Config Comparsion Tool.