System Setup and Software Installation Guide for Cisco NCS 1004

PDF

System Setup and Software Installation Guide for Cisco NCS 1004

Zero Touch Provisioning (ZTP) boot

Want to summarize with AI?

Log in

This topic explains ZTP, an automated deployment method that installs IOS XR software and applies startup configurations on NCS 1004 without requiring manual intervention at each chassis.


Zero Touch Provisioning (ZTP) allows you to deploy minimal configurations on several chassis. You can use ZTP to boot, set up, and configure the system. You can automate the configuration of the management Ethernet interface, the installation of SMUs, applications, and optional packages using ZTP. ZTP does not execute if a username is already configured in the system.

ZTP auto provisioning allows you to perform these actions:

  • Configuration: Downloads and runs the configuration files. The first line of the file must include the words "IOS XR" so ZTP can process the file as a configuration.

  • Script: Downloads and runs the script files. These scripts use a programmatic approach to complete a task. For example, scripts created using IOS XR commands to perform patch upgrades. The first line of the file must contain #! /bin/bash or #! /bin/sh for ZTP to process the file as a script.

You can use either the ZTP bash script or the ZTP configuration file.

host ncs1004 {
  #hardware ethernet 00:a0:c9:00:00:00;
  option dhcp-client-identifier "<chassis-serial-number>";
     filename "http://<IP-address>/<folder>/ncs1004-ztp.script";
     #filename "http://<IP-address>/<folder>/ncs1004-ztp.cfg";
  }

ZTP bash script sample

This is the sample content of the ZTP bash script:

#! /bin/bash
#
# NCS1004 Demo Sample
# ZTP installation of config and day-0 SMU's
#
source ztp_helper

wget http://downloads.sourceforge.net/project/yourcode/application.tgz
#install the downloaded application.tgz

#Run XR CLI's from the script
`xrcmd "show version"`

ZTP configuration file sample

This is the sample content of the ZTP configuration file. You can automate all the configurations.

!! IOS XR Configuration version = 7.0.1
!
telnet vrf default ipv4 server max-servers 20
!
vty-pool default 0 20 line-template default
!
interface MgmtEth0/RP0/CPU0/0
 ipv4 address dhcp
 no shutdown
!
router static
 address-family ipv4 unicast
  0.0.0.0/0 10.77.132.1
!
end