ZTP - Cisco IE-4000 switch config

 

Once your profile is created log onto the CLI of your device and enter configuration mode (run conf t).

You will have to create a bootstrap file to execute the ZTP process, here is a sample;

For an IPv4 RuBAN address:

event manager environment ruban_ip <RuBAN IP>

or for an IPv6 RuBAN address:
event manager environment ruban_ip [2001:1::2] 
 

logging host 127.0.0.1
logging host <RuBAN IP> transport udp port 50514

event manager environment ruban_hport 58000
event manager environment flash_dir flash:/RuBAN
event manager environment protocol http
event manager environment profile_name <The_profile_name>
event manager environment call_home_freq 3600

event manager applet ZTP_BOOTSTRAP
event syslog pattern "run_ZTP_BOOTSTRAP"
action 1.0 cli command "en"
action 2.0 cli command "conf t"
action 3.0 cli command "file prompt quiet"
action 4.0 cli command "do mkdir $flash_dir"
action 5.0 cli command "do copy $protocol://$ruban_ip:$ruban_hport/eem/tcl/public/ZTP_executor_IE4000.tcl $flash_dir/ZTP_executor.tcl"
action 6.0 cli command "event manager directory user policy $flash_dir"
action 7.1 cli command "no ev m p ZTP_executor.tcl"
action 7.1 cli command "ev m p ZTP_executor.tcl"
action 7.2 cli command "do send log run_ZTP_executor.tcl"
action 9.0 cli command "exit"
end



(to run it do the command, send log run_ZTP_BOOTSTRAP)

 

Just a few pointers on the bootstrap;

  • The first line 1.1.1.1 is the RuBAN server IP Address
  • The second line 58000 is the RuBAN server port number
  • The third line "flash:/RuBAN" is the RuBAN directory on the CLI

When the Bootstrap file is added, run it. 

Your device will then be added to RuBAN.

Also the heartbeat agent for IE4000 is RuBAN_heartbeat_agent_IE4000.tcl.