01-17-2024 05:12 AM
Hi,
I have an intermittent problem where DNA Center seems to error out when provisioning templates to switches, the log says:
Message: Unable to push the invalid CLI to the device 192.0.2.2 using protocol ssh2. Invalid CLI - 'terminal width 0'.
Command Output : failed.
This config is not in the template, i am assuming its run as part of the provisioning service that sends out config. Has anyone see something like this?
DNAC: 2.3.5.4 HF3
Switch: 9200L 17.11.1
Its not every time, and it seems a second provision will fix it, its not easily reproducible at all.
I cant seem to find any bug or information when searching, so i thought i would try here before TAC.
Cheers
Rhys
Solved! Go to Solution.
01-30-2024 01:27 AM
DNA will try to set terminal width and terminal length before issuing any commands related to the template(s)
it will set both to max values, to avoid lines from wrapping and avoid the "more" prompt.
terminal length: • Range = 0 to 511 lines
• Default = 24 lines
• Disable = 0 (scrolls continuously)
for terminal width : • Range = 24 to 511 characters
• Default = 88 characters
So: "terminal width 0" IS invalid , "terminal length 0" is valid
My suggestion is: DNA just sends it's commands to fast, so receive buffer overflows and the two commands merge into one
this can explain why a second provision can be executed normally, ( it's about timing when sending commands)
=> I guess it's a bug,
01-17-2024 09:55 AM
- FYI : https://bst.cloudapps.cisco.com/bugsearch/bug/CSCwh39165
M.
01-18-2024 06:09 AM
Hi,
The linked bug id https://bst.cloudapps.cisco.com/bugsearch/bug/CSCwf37179 indicates that its a problem with variables bound to source.
The template that has failed has no variables at all.
01-30-2024 01:27 AM
DNA will try to set terminal width and terminal length before issuing any commands related to the template(s)
it will set both to max values, to avoid lines from wrapping and avoid the "more" prompt.
terminal length: • Range = 0 to 511 lines
• Default = 24 lines
• Disable = 0 (scrolls continuously)
for terminal width : • Range = 24 to 511 characters
• Default = 88 characters
So: "terminal width 0" IS invalid , "terminal length 0" is valid
My suggestion is: DNA just sends it's commands to fast, so receive buffer overflows and the two commands merge into one
this can explain why a second provision can be executed normally, ( it's about timing when sending commands)
=> I guess it's a bug,
04-28-2024 01:32 AM
I ran into the same issue described here and in the process of investigating it, I found out that terminal width 0 is a valid command. It didn't help me with my issue, but I wanted to share this with you guys.
01-30-2024 11:31 PM
Yeh its part of the process i cant effect. Hopefully TAC can help.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide