Open jvdspeare opened 4 months ago
cmd_verify=False resolves however I feel it's worth raising as it may be a bug. I tried different delays (global and delay_factor) without success. I can only replicate when configuring certain interfaces, which makes the behaviour even stranger.
@jvdspeare It looks like the Juniper device does something odd here from a user-interface perspective with the "?" mark characters.
x@lab_jun_ex2300_0# set interfaces ge-0/0/2 ���unit 0 description provisioning-vlan
You can probably see if you can actually capture the characters that get echoed back (i.e. what Juniper outputs here). You might need to look at them using "repr".
You could also very that the Netmiko command (earlier in the session) that sets the terminal width is being properly accepted ("set cli screen-width 511").
Description of Issue/Question
netmiko.exceptions.ReadTimeout: Pattern not detected, while configuring a Juniper EX2300. From the logs, it would appear netmiko is having an issue reading the terminal, or there's an issue with the logging. Please observe the discrepancy between: Jul 23 16:55:40 lab_jun_ex2300_0 mgd[7099]: UI_CMDLINE_READ_LINE: User 'x', command 'set interfaces ge-0/0/2 unit 0 description provisioning-vlan ' & {master:0}[edit] x@lab_jun_ex2300_0# set interfaces ge-0/0/2 x@lab_jun_ex2300_0# set interfaces ge-0/0/2 unit 0 description provisioning-vlan
Device perspective: Jul 23 16:55:40 lab_jun_ex2300_0 mgd[7099]: UI_CMDLINE_READ_LINE: User 'x', command 'configure exclusive ' Jul 23 16:55:40 lab_jun_ex2300_0 mgd[7099]: UI_DBASE_LOGIN_EVENT: User 'x' entering configuration mode Jul 23 16:55:40 lab_jun_ex2300_0 mgd[7099]: UI_CMDLINE_READ_LINE: User 'x', command 'delete interfaces ge-0/0/2 disable ' Jul 23 16:55:40 lab_jun_ex2300_0 mgd[7099]: UI_CMDLINE_READ_LINE: User 'x', command 'set interfaces ge-0/0/2 unit 0 description provisioning-vlan '
Netmiko session log: {master:0} x@lab_jun_ex2300_0> {master:0} x@lab_jun_ex2300_0> {master:0} x@lab_jun_ex2300_0> configure exclusive warning: uncommitted changes will be discarded on exit Entering configuration mode {master:0}[edit] x@lab_jun_ex2300_0# {master:0}[edit] x@lab_jun_ex2300_0# {master:0}[edit] x@lab_jun_ex2300_0# delete interfaces ge-0/0/2 disable {master:0}[edit] x@lab_jun_ex2300_0# set interfaces ge-0/0/2 x@lab_jun_ex2300_0# set interfaces ge-0/0/2 unit 0 description provisioning-vlan
Exception: netmiko.exceptions.ReadTimeout: Pattern not detected: 'set\ interfaces\ ge\-0/0/2\ unit\ 0\ description\ provisioning\-vlan' in output. Things you might try to fix this:
Netmiko version
Netmiko device_type (if relevant to the issue)
Relevant Python code