Closed petertavenier closed 2 years ago
Hello @petertavenier,
Thanks for letting us know about this issue and also my apologies for the delay in response. Thank you for putting together such an informative error report as well, always nice to see 👍
The behavior you've described does makes sense as Unicon connection is expecting to see a prompt pattern ending with a #
, so it matches **********#
and think it's the hostname of the device. You can set up your own Dialog to match the above banner and then ignore it so that it doesn't affect device connection.
Is a banner like this a common thing for you to see? Is it unique to your situation or a common IOSXE behavior? I only ask because I haven't seen this exact issue before
Closing issue, but please reopen and reply if this issue is still giving you trouble. Thanks again for reaching out
Hi, I'm using PyATS, but I was unable to connect to an IOSXE device ASR920 with the 'os: iosxe'. It took me a while to figure out, but this was caused by a banner, ssh and os combination.
I try to retrieve a 'show version', via
genie parse "show version" --testbed-file testbed.yaml --device asr -v
but this happened:This message is the issue; 2022-02-17 17:31:14,590: %UNICON-WARNING: Invalid hostname detected: found ****, expected ASR920**
The testbed file looks like;
Three options gives a workaround for this connection issue;
protocol: telnet
and it works without any problems!os: ios
and it works without any problems even withprotocol: ssh
!#
Old banner, iosxe + ssh not working!
Old banner, iosxe + ssh working fine!