I am sending a command to a Juniper router using Netmiko (Python 3.8), like so:
result = self._connect_handler.send_command(command, delay_factor=delay_factor, **kwargs).strip()
The command is a basic show interfaces command. When I perform the command on the router itself, I get the expected output (just an example):
MYDEVICE# show interfaces
Interface: blahblah
MYDEVICE#
However, when I print the result in my code, it has picked up the command prompt MYDEVICE# as the result, instead of Interface: blahblah, which is what I need:
result = self._connect_handler.send_command(command, delay_factor=delay_factor, **kwargs).strip()
>> print("result:", result)
>> result: MYDEVICE#
I am using the send_command function for many other commands & devices and it's been working as expected. Has anyone seen this before? Wondering if it is a device problem or a netmiko bug.