Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
In Cisco document Programmability Configuration Guide, Cisco IOS XE Everest 16.6.x, it stated the following:
SpoilerIn Zero-Touch Provisioning, a DHCP server must be running on the same network as the new device that is being provisioned. Zero-Touch ...
Hello, I can see there is API /dna/intent/api/v1/client-detail to retrieve client detail. However this API call only accept macAddress as its filter, but not IP address. I couldn't find any other API that can translate client IP address to mac addres...
Hello,
I am developing a Python script to be executed by Catalyst 3850 ZTP during boot up. I am seeing different error when I am connecting the config server to (1) Management port Gi0/0 and (2) Data port Gi1/0/1. I run the same Python script on Ci...
Hello,
I am developing ZTP script for ISR4431. I found that certain commands are generating the error message of 'NoneType' object has no attribute 'attrib' and it's not caught by
CLIConfigurationError exception in GuestShell Python.
>>> configu...
Hello, how can we configure a multi-line banner in ZTP Python script running in IOS-XE Guestshell? I am using Python cli module and configuring a single line banner has no problem.
Example of multi-line banner configuration that doesn't work:
fr...
Hi Sergey, in Cisco IOS-XE Programmability Guide, it did state that "a DHCP server must be running on the same network as the new device that is being provisioned."
Thanks Joe for providing the solution. The codes work perfectly in IOS-XE but it will give error in GuestShell Python environment due to the line feed character.
>>> cli.configurep(conf)
ConfigError: There was a problem with 2 commands while configur...
I have tried to follow the EEM applet example given but doesn't work. It seems that the applet is timed out, probably due to to incorrect pattern matching? Configuring the single line banner using the same applet has no problem.
Router#show event m...
Thanks for sharing the solution using EEM applet.
I have tried using \r to separate the lines but that doesn't work.
From Guestshell Python
>>> banner = '''
... banner motd ,Authorized Access only\rThis system is the property of So-and-So-Enterpr...