[Python] Why Robot Framework's SSHLibrary and Python's Paramiko give different outputs for...

Discussão em 'Python' iniciado por Stack, Agosto 6, 2025.

  1. Stack

    Stack Membro Participativo

    In a network device for a script I am building, Robot Framework's SSHLibrary produced the identical result when typing the command manually in the device.

    [​IMG]

    But when writing the code with paramiko:

    _stdin, _stdout, _stderr = connection.exec_command(f"scm {mac_address}")
    output = _stdout.read()


    It skips the headers for some reason. Shouldn't the output be indentical as apaprently SSHLibrary is built on top of paramiko (if AI can be believed)

    Output with Paramiko: [​IMG]

    Continue reading...

Compartilhe esta Página