Enabling iLO DHCP service

Prerequisites
  • Ensure you are logged in as the root user in the NPS toolkit VM.

  • Ensure that the REST interface is enabled in the management switch by running the following command in the management switch:
    Aruba-2540-48G-4SFPP (config)# show rest-interface
    To enable REST for the management switch:
    Aruba-2540-48G-4SFPP (config)# rest-interface
    Aruba-2540-48G-4SFPP (config)# show rest-interface
    This is required if the user has not enabled REST on the switch.
  • Ensure DHCP is enabled on all the HPE DL servers.

  • Ensure that the following environment variables are updated:

    export API_IP=<Customer_IP_assigned _to_NPS_VM>
    export NPSADMIN=<user name of admin mentioned in the nps_secret.yaml file>
    export NPSPASSWD=<password of admin user mentioned in the nps_secret.yaml file>
    export TOPOLOGY_NAME=<the deployment name mentioned in the TICG tool while creating the input.json file>
    export VIM_TYPE=<VIM platform type like RHOSP/RHOCP/VMWARE>
Procedure
  1. Enable the DHCP service using the following command:
    nps deploy -s dhcp -nos <Type of NOS> -l debug

    Where nos is the network operating system and the supported <Type of NOS> is aruba.

  2. Verify the status of the DHCP service using the following command:
    nps show --service dhcp
    Wait until the status is displayed as running, failed, or error.
    • If the status is displayed as running, wait for 3 minutes. To verify whether the iLO IP address is assigned to the server through the DHCP service, run the following command:

      nps show --data servers

      In the result:

      • If the iLO IP address is displayed as NA, analyze the <topology_name>_dhcp_helper_<HH:MM>_<date>.log file in the /var/nps/logs/<topology_name> directory. Based on the log files, perform corrective actions and check the status again.

      • If the iLO IP addresses are displayed, record the iLO IP address of all the servers. For each server, run the following command:

        nps show --data servers --node <iLO IP address of corresponding server>
      • Verify that the DHCP status is displayed as dhcp: success in the state property.

    • If the status is displayed as failed or error, analyze the <topology_name>_dhcp_helper_<HH:MM>_<date>.log file in the /var/nps/logs/<topology_name> directory. Based on the log files, perform corrective actions and check the status again.

  3. After all the servers have the iLO IP address, run the following command to stop the DHCP deployment service:
    nps stop --service dhcp