Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicating characters session_log in a send_command eltex_esr #3558

Open
Viktort-rf opened this issue Jan 19, 2025 · 0 comments
Open

Duplicating characters session_log in a send_command eltex_esr #3558

Viktort-rf opened this issue Jan 19, 2025 · 0 comments

Comments

@Viktort-rf
Copy link

paramiko: 3.5.0
netmiko: 4.5.0
device_type: eltex_esr


Problem Description:

Hello!

I'm encountering an issue where characters are being duplicated in the session_log while using send_command. For example:

rt01# ttetertermtermiterminterminaterminalterminal terminal dterminal daterminal datterminal dataterminal datadterminal dataduterminal datadumterminal datadump
rt01# 
rt01# sshshoshowshow show ishow inshow intshow inteshow intershow interfshow interfashow interfacshow interfaceshow interfacesshow interfaces show interfaces dshow interfaces deshow interfaces desshow interfaces descshow interfaces descrshow interfaces descrishow interfaces descripshow interfaces descriptshow interfaces descriptishow interfaces descriptioshow interfaces description

This behavior makes script diagnostics more difficult, especially when analyzing logs.


Steps to Reproduce

  1. Use the following code:

    from netmiko import ConnectHandler
    
    device_info = {
        'device_type': 'eltex_esr',
        'ip': '192.168.1.1',
        'username': 'python',
        'password': '123',
        'session_log': '192.168.1.1.log',
    }
    
    net_connect = ConnectHandler(**device_info)
    net_connect.send_command('show interfaces description')
    net_connect.disconnect()
  2. Observe the session_log. Characters in the output are duplicated.


Expected Behavior

The session_log should not contain duplicated characters. Example of the expected result:

rt01# show interfaces description
Interface   Description
...

Observed Behavior

Characters in the command and its output are duplicated:

rt01# sshshoshowshow show ishow ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant