SlideShare a Scribd company logo
1 of 11
Automated workaround for
CSCvw63161
Jeff Keown – High Touch Engineer
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
CSCvw63161
ZTP failing with error in creating downloaded_script.py
• Affects only 16.12.4
• Prevents ZTP from starting and auto provisioning switches
• Workaround is to console into the switch and create a ‘guest-share’
directory in flash:
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Automated Workaround
• By default, unconfigured Cisco IOS devices attempt to download a config file named router-confg or
router.cfg (Autoinstall feature)
Autoinstall Configuration guide reference:
https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/fundamentals/configuration/15mt/fundamentals-15-mt-
book/cf-autoinstall.html
• In lab testing, we were able to successfully create the guest-share directory, and automatically reboot
unconfigured cat9k switches with the following router-confg file:
Router-confg:
file prompt quiet
do mkdir flash:guest-share
!
kron occurrence reload in 1 oneshot
policy-list reload
kron policy-list reload
cli reload
!
end
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Automated Workaround
• It was observed that if the switch’s DHCP server offered a boot file via
dhcp option 67, autoinstall would not start
• The successful workaround flow involves:
1) Allow the switch to boot and download the router-confg file via
autoinstall. This requires the switch to obtain an address via DHCP
which does not offer DHCP option 67 bootfile
2) Once the guest-share directory has been created, and the switch has
automatically reloaded, the switch needs to obtain another DHCP
address that does offer the option 67 boot file for ztp to start.
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Automated Workaround - Options
The workaround can be accomplished in one of two ways:
1) Initially put the switch on a vlan that uses a DHCP scope that does not
offer option 67. After the switch has the guest-share directory created
and reboots, move the switch’s port to a vlan that uses a DHCP scope
that offers the ztp required option 67 boot file.
2) Initially disable option 67 from the switch’s DHCP scope. Allow time
for autoinstall to create the directory and reboot the switch. Then enable
the DHCP scope option 67, and ztp should run.
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Automated Workaround – TFTP Server Options
• TFTP Server Options
• 1) Put the router-confg file on a TFTP sever on the switch’s Vlan. The switch will send a
broadcast TFTP request, which the TFTP server should respond to.
• 2) Put the router-confg file on a central TFTP server. Configure an ip helper-address on
the switch’s default gateway, pointing to the TFTP server. TFTP is forwarded by default
with the helper-address config, so nothing else needs to be configured.
• 3) Copy the router-confg file to another Cisco router or switch that the switch can reach
(either via broadcast or helper address), and configure it to serve the file via TFTP.
Config t
tftp-server flash:router-confg
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Automated Workaround – Process Log Highlights
Switch#delete /f /r flash:gs-script
Switch#dir | inc guest-share
Switch#dir | inc gs-scr
Switch#wr erase
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
!!!! rebooting now, bootfile option disabled on dhcp server so autoinstall can run and create the guest-
share directory, then reboot
!!!! relevant dhcp scope config (bootfile option remarked out)
#option bootfile-name "http://10.85.134.66/ztp.py";
Switch#reload
System configuration has been modified. Save? [yes/no]: no
Reload command is being issued on Active unit, this will reload the whole stack
Proceed with reload? [confirm]
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Automated Workaround – Process Log Highlights
Would you like to enter the initial configuration dialog? [yes/no]:
%Error opening tftp://10.85.134.66/network-confg (No such file or directory)
%Error opening tftp://10.85.134.66/cisconet.cfg (No such file or directory)
Press RETURN to get started!
Loading router-confg from 10.85.134.66 (via GigabitEthernet0/0): !
[OK - 144 bytes]
*Jan 14 19:30:15.268: %SYS-5-CONFIG_P: Configured programmatically by process DHCP Autoinstall
from console as vty0
*Jan 14 19:30:15.269: %SYS-5-CONFIG_I: Configured from tftp://10.85.134.66/router-confg by console
*Jan 14 19:30:15.269: AUTOINSTALL: Tftp script execution successful for Gi0/0.
*Jan 14 19:30:15.269: %SYS-5-CONFIG_P: Configured programmatically by process DHCP Autoinstall
from console as vty0
*Jan 14 19:31:18.919: %SYS-5-RELOAD: Reload requested by vty0. Reload Reason: Reload Command.
Chassis 1 reloading, reason - Reload command
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Automated Workaround – Process Log Highlights
The switch automatically rebooted. while it was rebooting, we re-enabled the dhcp scope boot file
option, and restarted the dhcp service
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]:
Loading http://10.85.134.66/ztp.py
*Jan 14 19:36:19.302: %IM-2-IOX_ENABLEMENT: Switch 1 R0/0: ioxman: IOX is ready.day0guestshell
installed successfully
Current state is: DEPLOYED
day0guestshell activated successfully
Current state is: ACTIVATED
day0guestshell started successfully
Current state is: RUNNING
Guestshell enabled successfully
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Automated Workaround – Process Log Highlights
Jan 14 19:41:12.022: %SYS-5-CONFIG_P: Configured programmatically by process PnP Agent
Discovery from console as vty0
Jan 14 19:41:12.022: %PNP-6-PNP_SAVING_TECH_SUMMARY: Saving PnP tech summary (pnp-tech-
discovery-summary)... Please wait. Do not interrupt.
Jan 14 19:41:17.615: %SYS-5-CONFIG_P: Configured programmatically by process PnP Agent
Discovery from console as vty0
User Access Verification
Username: admin
Password:
ZTP>
Automated workaround for CSCvw63161.pptx

More Related Content

Similar to Automated workaround for CSCvw63161.pptx

Provisioning on Libvirt with Foreman
Provisioning on Libvirt with ForemanProvisioning on Libvirt with Foreman
Provisioning on Libvirt with ForemanNikhil Kathole
 
P4+ONOS SRv6 tutorial.pptx
P4+ONOS SRv6 tutorial.pptxP4+ONOS SRv6 tutorial.pptx
P4+ONOS SRv6 tutorial.pptxtampham61268
 
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...OpenStack Korea Community
 
7 hands on
7 hands on7 hands on
7 hands onvideos
 
The origin: Init (compact version)
The origin: Init (compact version)The origin: Init (compact version)
The origin: Init (compact version)Tzung-Bi Shih
 
Setting up your Multi Engine Environment - Apache Railo and ColdFusion
Setting up your Multi Engine Environment - Apache Railo and ColdFusionSetting up your Multi Engine Environment - Apache Railo and ColdFusion
Setting up your Multi Engine Environment - Apache Railo and ColdFusionGavin Pickin
 
Making Spinnaker Go @ Stitch Fix
Making Spinnaker Go @ Stitch FixMaking Spinnaker Go @ Stitch Fix
Making Spinnaker Go @ Stitch FixDiana Tkachenko
 
FreeSWITCH on Docker
FreeSWITCH on DockerFreeSWITCH on Docker
FreeSWITCH on Docker建澄 吳
 
CCNP Data Center Centralized Management Automation
CCNP Data Center Centralized Management AutomationCCNP Data Center Centralized Management Automation
CCNP Data Center Centralized Management AutomationE.S.G. JR. Consulting, Inc.
 
StackiFest16: What's Next in Stacki - Mason Katz
StackiFest16: What's Next in Stacki - Mason Katz StackiFest16: What's Next in Stacki - Mason Katz
StackiFest16: What's Next in Stacki - Mason Katz StackIQ
 
Pluggable Infrastructure with CI/CD and Docker
Pluggable Infrastructure with CI/CD and DockerPluggable Infrastructure with CI/CD and Docker
Pluggable Infrastructure with CI/CD and DockerBob Killen
 
The Switch as a Server - PuppetConf 2014
The Switch as a Server - PuppetConf 2014The Switch as a Server - PuppetConf 2014
The Switch as a Server - PuppetConf 2014Puppet
 
Switch as a Server - PuppetConf 2014 - Leslie Carr
Switch as a Server - PuppetConf 2014 - Leslie CarrSwitch as a Server - PuppetConf 2014 - Leslie Carr
Switch as a Server - PuppetConf 2014 - Leslie CarrCumulus Networks
 
Setting up your multiengine environment Apache Railo ColdFusion
Setting up your multiengine environment Apache Railo ColdFusionSetting up your multiengine environment Apache Railo ColdFusion
Setting up your multiengine environment Apache Railo ColdFusionColdFusionConference
 
Golang 101 for IT-Pros - Cisco Live Orlando 2018 - DEVNET-1808
Golang 101 for IT-Pros - Cisco Live Orlando 2018 - DEVNET-1808Golang 101 for IT-Pros - Cisco Live Orlando 2018 - DEVNET-1808
Golang 101 for IT-Pros - Cisco Live Orlando 2018 - DEVNET-1808Cisco DevNet
 

Similar to Automated workaround for CSCvw63161.pptx (20)

Provisioning on Libvirt with Foreman
Provisioning on Libvirt with ForemanProvisioning on Libvirt with Foreman
Provisioning on Libvirt with Foreman
 
P4+ONOS SRv6 tutorial.pptx
P4+ONOS SRv6 tutorial.pptxP4+ONOS SRv6 tutorial.pptx
P4+ONOS SRv6 tutorial.pptx
 
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...
 
7 hands on
7 hands on7 hands on
7 hands on
 
The origin: Init (compact version)
The origin: Init (compact version)The origin: Init (compact version)
The origin: Init (compact version)
 
Kickstart
KickstartKickstart
Kickstart
 
Chapter5ccna
Chapter5ccnaChapter5ccna
Chapter5ccna
 
ENSA_Module_10.pptx
ENSA_Module_10.pptxENSA_Module_10.pptx
ENSA_Module_10.pptx
 
Setting up your Multi Engine Environment - Apache Railo and ColdFusion
Setting up your Multi Engine Environment - Apache Railo and ColdFusionSetting up your Multi Engine Environment - Apache Railo and ColdFusion
Setting up your Multi Engine Environment - Apache Railo and ColdFusion
 
Making Spinnaker Go @ Stitch Fix
Making Spinnaker Go @ Stitch FixMaking Spinnaker Go @ Stitch Fix
Making Spinnaker Go @ Stitch Fix
 
FreeSWITCH on Docker
FreeSWITCH on DockerFreeSWITCH on Docker
FreeSWITCH on Docker
 
FreeSWITCH on Docker
FreeSWITCH on DockerFreeSWITCH on Docker
FreeSWITCH on Docker
 
UEFI HTTP/HTTPS Boot
UEFI HTTP/HTTPS BootUEFI HTTP/HTTPS Boot
UEFI HTTP/HTTPS Boot
 
CCNP Data Center Centralized Management Automation
CCNP Data Center Centralized Management AutomationCCNP Data Center Centralized Management Automation
CCNP Data Center Centralized Management Automation
 
StackiFest16: What's Next in Stacki - Mason Katz
StackiFest16: What's Next in Stacki - Mason Katz StackiFest16: What's Next in Stacki - Mason Katz
StackiFest16: What's Next in Stacki - Mason Katz
 
Pluggable Infrastructure with CI/CD and Docker
Pluggable Infrastructure with CI/CD and DockerPluggable Infrastructure with CI/CD and Docker
Pluggable Infrastructure with CI/CD and Docker
 
The Switch as a Server - PuppetConf 2014
The Switch as a Server - PuppetConf 2014The Switch as a Server - PuppetConf 2014
The Switch as a Server - PuppetConf 2014
 
Switch as a Server - PuppetConf 2014 - Leslie Carr
Switch as a Server - PuppetConf 2014 - Leslie CarrSwitch as a Server - PuppetConf 2014 - Leslie Carr
Switch as a Server - PuppetConf 2014 - Leslie Carr
 
Setting up your multiengine environment Apache Railo ColdFusion
Setting up your multiengine environment Apache Railo ColdFusionSetting up your multiengine environment Apache Railo ColdFusion
Setting up your multiengine environment Apache Railo ColdFusion
 
Golang 101 for IT-Pros - Cisco Live Orlando 2018 - DEVNET-1808
Golang 101 for IT-Pros - Cisco Live Orlando 2018 - DEVNET-1808Golang 101 for IT-Pros - Cisco Live Orlando 2018 - DEVNET-1808
Golang 101 for IT-Pros - Cisco Live Orlando 2018 - DEVNET-1808
 

Recently uploaded

Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacingjaychoudhary37
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 

Recently uploaded (20)

Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacing
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 

Automated workaround for CSCvw63161.pptx

  • 1. Automated workaround for CSCvw63161 Jeff Keown – High Touch Engineer
  • 2. © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential CSCvw63161 ZTP failing with error in creating downloaded_script.py • Affects only 16.12.4 • Prevents ZTP from starting and auto provisioning switches • Workaround is to console into the switch and create a ‘guest-share’ directory in flash:
  • 3. © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Automated Workaround • By default, unconfigured Cisco IOS devices attempt to download a config file named router-confg or router.cfg (Autoinstall feature) Autoinstall Configuration guide reference: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/fundamentals/configuration/15mt/fundamentals-15-mt- book/cf-autoinstall.html • In lab testing, we were able to successfully create the guest-share directory, and automatically reboot unconfigured cat9k switches with the following router-confg file: Router-confg: file prompt quiet do mkdir flash:guest-share ! kron occurrence reload in 1 oneshot policy-list reload kron policy-list reload cli reload ! end
  • 4. © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Automated Workaround • It was observed that if the switch’s DHCP server offered a boot file via dhcp option 67, autoinstall would not start • The successful workaround flow involves: 1) Allow the switch to boot and download the router-confg file via autoinstall. This requires the switch to obtain an address via DHCP which does not offer DHCP option 67 bootfile 2) Once the guest-share directory has been created, and the switch has automatically reloaded, the switch needs to obtain another DHCP address that does offer the option 67 boot file for ztp to start.
  • 5. © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Automated Workaround - Options The workaround can be accomplished in one of two ways: 1) Initially put the switch on a vlan that uses a DHCP scope that does not offer option 67. After the switch has the guest-share directory created and reboots, move the switch’s port to a vlan that uses a DHCP scope that offers the ztp required option 67 boot file. 2) Initially disable option 67 from the switch’s DHCP scope. Allow time for autoinstall to create the directory and reboot the switch. Then enable the DHCP scope option 67, and ztp should run.
  • 6. © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Automated Workaround – TFTP Server Options • TFTP Server Options • 1) Put the router-confg file on a TFTP sever on the switch’s Vlan. The switch will send a broadcast TFTP request, which the TFTP server should respond to. • 2) Put the router-confg file on a central TFTP server. Configure an ip helper-address on the switch’s default gateway, pointing to the TFTP server. TFTP is forwarded by default with the helper-address config, so nothing else needs to be configured. • 3) Copy the router-confg file to another Cisco router or switch that the switch can reach (either via broadcast or helper address), and configure it to serve the file via TFTP. Config t tftp-server flash:router-confg
  • 7. © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Automated Workaround – Process Log Highlights Switch#delete /f /r flash:gs-script Switch#dir | inc guest-share Switch#dir | inc gs-scr Switch#wr erase Erasing the nvram filesystem will remove all configuration files! Continue? [confirm] [OK] !!!! rebooting now, bootfile option disabled on dhcp server so autoinstall can run and create the guest- share directory, then reboot !!!! relevant dhcp scope config (bootfile option remarked out) #option bootfile-name "http://10.85.134.66/ztp.py"; Switch#reload System configuration has been modified. Save? [yes/no]: no Reload command is being issued on Active unit, this will reload the whole stack Proceed with reload? [confirm]
  • 8. © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Automated Workaround – Process Log Highlights Would you like to enter the initial configuration dialog? [yes/no]: %Error opening tftp://10.85.134.66/network-confg (No such file or directory) %Error opening tftp://10.85.134.66/cisconet.cfg (No such file or directory) Press RETURN to get started! Loading router-confg from 10.85.134.66 (via GigabitEthernet0/0): ! [OK - 144 bytes] *Jan 14 19:30:15.268: %SYS-5-CONFIG_P: Configured programmatically by process DHCP Autoinstall from console as vty0 *Jan 14 19:30:15.269: %SYS-5-CONFIG_I: Configured from tftp://10.85.134.66/router-confg by console *Jan 14 19:30:15.269: AUTOINSTALL: Tftp script execution successful for Gi0/0. *Jan 14 19:30:15.269: %SYS-5-CONFIG_P: Configured programmatically by process DHCP Autoinstall from console as vty0 *Jan 14 19:31:18.919: %SYS-5-RELOAD: Reload requested by vty0. Reload Reason: Reload Command. Chassis 1 reloading, reason - Reload command
  • 9. © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Automated Workaround – Process Log Highlights The switch automatically rebooted. while it was rebooting, we re-enabled the dhcp scope boot file option, and restarted the dhcp service --- System Configuration Dialog --- Would you like to enter the initial configuration dialog? [yes/no]: Loading http://10.85.134.66/ztp.py *Jan 14 19:36:19.302: %IM-2-IOX_ENABLEMENT: Switch 1 R0/0: ioxman: IOX is ready.day0guestshell installed successfully Current state is: DEPLOYED day0guestshell activated successfully Current state is: ACTIVATED day0guestshell started successfully Current state is: RUNNING Guestshell enabled successfully
  • 10. © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Automated Workaround – Process Log Highlights Jan 14 19:41:12.022: %SYS-5-CONFIG_P: Configured programmatically by process PnP Agent Discovery from console as vty0 Jan 14 19:41:12.022: %PNP-6-PNP_SAVING_TECH_SUMMARY: Saving PnP tech summary (pnp-tech- discovery-summary)... Please wait. Do not interrupt. Jan 14 19:41:17.615: %SYS-5-CONFIG_P: Configured programmatically by process PnP Agent Discovery from console as vty0 User Access Verification Username: admin Password: ZTP>