Configuration Guide
Overview
This guide explains how to configure network devices and clients to use the NVIDIA Config Manager ZTP Server for Zero Touch Provisioning.
Prerequisites
Before configuring devices for ZTP, ensure:
- Devices are registered in the device management system
- Device IP addresses are correctly configured in the device management system
- Firmware images are available for your device platform and version
- Configuration files are prepared and stored in the configuration store
Device Configuration
DHCP Configuration
How the DHCP server tells a device where to fetch ZTP artifacts depends on the NOS:
Cumulus Linux — cumulus-provision-url (and often boot-file-name) pointing at the boot script:
NV-OS — boot-file-name pointing at ztp.json:
Juniper Junos — DHCP option 43 (vendor-encapsulated) with HTTP transfer-mode. The bundled platform context sets:
transfer-mode:httpimage-file-name:http://ztp.example.com/v1/device/{device_uuid}/firmwareconfig-file-name:http://ztp.example.com/v1/device/{device_uuid}/config/full-config
full-config is the intended Junos configuration rendered by operator or plugin templates. The ZTP API does not synthesize a placeholder file.
Arista EOS — standard DHCP option 67 (boot-file-name) pointing at the rendered boot script. The bundled platform context sets it on Management1 and Management0:
EOS enters ZeroTouch when it boots without a startup-config, downloads the script and runs it. The bundled arista-eos boot script:
- Validates the serial number against the DCIM.
- Downloads and verifies the firmware image and makes it the boot image, when the running release differs from the intended one.
- Fetches
full-configfrom the source-IP-authorized SFTP service and writes it as the startup-config.
EOS then reloads with that configuration, and the switch reports itself provisioned once eAPI is up after the reload.
Config Manager bundles the EOS boot script but no EOS role templates. Before you provision or reprovision an EOS device:
- Provide the intended EOS
full-configthrough your template plugin or configuration source. - Provide a matching
boot-scriptentrypoint for the device’s role and intended release. Entrypoints are matched on platform, role, and intended firmware, and the bundled tree only hasarista-eos/spx-leaf/4.34.3M. - Check that both
boot-scriptandfull-configexist for the device in Config Store. - Make sure the intended configuration enables HTTPS eAPI and keeps the ZTP server reachable from the VRF that eAPI runs in. The switch reports itself provisioned from that VRF after the reload.
Reprovisioning an EOS device renames its startup-config and any zerotouch-config aside on flash and schedules a reload five minutes ahead, which starts ZeroTouch. If EOS does not confirm the scheduled reload, Config Manager renames the files back and cancels the reload.
Cisco IOS XR — DHCP option 67 (boot-file-name) pointing at the rendered configuration. The bundled Cisco IOS XR ZTP DHCP Options context sets, on MgmtEth0/RP0/CPU0/0:
boot-file-name:http://ztp.example.com/v1/device/{device_uuid}/config/full-config
full-config is the intended IOS XR configuration rendered by operator or plugin templates. The first line of the rendered file must start with !! IOS XR: IOS XR ZTP treats a downloaded file as configuration only with that header (a file starting with #! is run as a script), and Config Manager serves the stored file unchanged. The router applies it as its ZTP configuration; image installation needs a ZTP script, which is not bundled.
Replace ztp.example.com with your ZTP server URL and {device_uuid} with the device UUID from the device management system.
ONIE Configuration
For ONIE-based devices, the boot file URL can point to either:
- Boot script:
http://ztp.example.com/v1/device/{device_uuid}/boot-script - Firmware image:
http://ztp.example.com/v1/device/{device_uuid}/onie
The ONIE installer will automatically append .ztp to the URL if it points to a firmware image.
Network Requirements
Ensure devices can reach the ZTP server:
- DHCP traffic: Devices must be able to exchange DHCP packets with the Config Manager DHCP service on UDP 67/68.
- ZTP service traffic: Devices must be able to access the configured HTTP or HTTPS bootstrap listener and TCP 2222 for the Cumulus rendered-configuration and Arista EOS
full-configdownloads. - DNS resolution: Devices must be able to resolve the ZTP server hostname, which requires UDP/TCP 53 if hostnames are used.
- IP address registration: Device IP addresses must be registered in the device management system.
API Usage
Authentication
Device endpoints accept either a registered device request or an authenticated user request:
- Device-originated requests must come from IP addresses registered for the device
- Device-originated requests do not require additional authentication headers
- User-originated requests must come through the Envoy gateway as authenticated users when SSO is enabled for the deployment
- Admin endpoints require authenticated user access
Request Headers
Standard HTTP headers are used:
Content-Type: application/jsonfor JSON request bodiesAccept: application/jsonfor JSON responses (where applicable)
Error Handling
Handle common error responses:
- 403 Forbidden: Check that the device IP address is registered correctly
- 404 Not Found: Verify the device UUID and resource path are correct
- 500 Internal Server Error: Contact system administrator
Firmware Verification
Always verify firmware images using the checksum endpoint:
Configuration Files
Configuration files are retrieved using:
The default Cumulus boot script instead retrieves startup.yaml through the
source-IP-authorized SFTP service:
The HTTP endpoint remains available for compatibility and troubleshooting.
Common configuration file names:
boot-script: Cumulus Linux or Arista EOS initial boot scriptztp.json: NV-OS ZTP sequencefull-config: Junos hierarchical configuration, Arista EOS configuration or IOS XR configuration (operator- or plugin-rendered)startup.yaml: Cumulus / NV-OS intended configurationsystem.cfg: System configurationinterfaces.cfg: Interface configuration
Contact your system administrator for the specific configuration file names for your environment.
Troubleshooting
Device Cannot Access ZTP Server
Symptoms:
- Device cannot download boot script or firmware
- Connection timeouts or DNS resolution failures
Solutions:
- Verify network connectivity from device to ZTP server
- Check DNS resolution:
nslookup ztp.example.com - Verify firewall rules allow the configured HTTP/HTTPS bootstrap traffic and SFTP on TCP 2222
- Check that device IP is registered in device management system
Authorization Failures
Symptoms:
- 403 Forbidden responses
- “Unauthorized” error messages
Solutions:
- Verify device IP address is registered in device management system
- Check that requests are coming from the registered IP address
- Ensure device is using the correct device UUID
- Contact system administrator if IP address has changed
Missing Resources
Symptoms:
- 404 Not Found responses
- “Device not found” or “File not found” errors
Solutions:
- Verify device UUID is correct
- Check that device is registered in device management system
- Verify firmware version is available for the device platform
- Ensure configuration files exist in the configuration store
Firmware Download Issues
Symptoms:
- Incomplete firmware downloads
- Checksum verification failures
Solutions:
- Use
curlwith-Oflag for reliable downloads - Verify checksum after download
- Check network stability during large file transfers
- Retry download if checksum verification fails
Best Practices
Security
- Protect rendered configuration: Use the default SFTP transport for Cumulus
startup.yamland Arista EOSfull-config; restrict bootstrap HTTP to the private provisioning network - Verify Checksums: Always verify firmware checksums before installation
- Validate Serial Numbers: Use the serial validation endpoint before provisioning
- Monitor Provisioning: Correlate the ZTP
http-lbandsftpcontainer logs during provisioning
Reliability
- Retry Logic: Implement retry logic for transient failures
- Timeout Handling: Set appropriate timeouts for large file downloads
- Error Logging: Log all API errors for troubleshooting
- Status Monitoring: Monitor device provisioning status
Performance
- Parallel Downloads: Download firmware and configurations in parallel when possible
- Connection Reuse: Reuse HTTP connections for multiple requests
- Caching: Cache boot scripts and configuration metadata locally
- Streaming: Use streaming for large firmware files
Support
For additional support:
- Check the API Documentation for endpoint details
- Review the Architecture Documentation for system overview
- Contact your system administrator for environment-specific configuration