Did you figure this out?
Im struggling with the same issue, my prompt is working with IOS and IOS XR.
/(?m:^(?:[\w.\/]+\:)?(?:[\\w.-]+\@)?[\\w.-]+\\s?(?:\(config[^\)]*\))?\\s?(?:\(admin-config[^\)]*\))?\\s?[\$#>]\s?(?:\(enable\))?\\s*$)/
With $session->errmsg; i see that is timing out on $session->cmd('show clock'); on NXOS. on IOS and IOS XR it prints the output of the array. This is dump from Nexus switch
> 0x00000: 73 68 6f 77 20 63 6c 6f 63 6b 0a show cl +ock. < 0x00000: 31 32 3a 35 32 3a 30 33 2e 37 30 32 20 53 56 47 12:52:0 +3.702 SVG < 0x00010: 20 54 68 75 20 4f 63 74 20 31 38 20 32 30 31 38 Thu Oc +t 18 2018 < 0x00020: 0a .
This is dump from IOS switch
< 0x00000: 0d 0a 49 4f 53 53 57 49 54 43 48 23 ..IOSSW +ITCH# > 0x00000: 73 68 6f 77 20 63 6c 6f 63 6b 0a show cl +ock. < 0x00000: 73 68 6f 77 20 63 6c 6f 63 6b 0d 0a show cl +ock.. < 0x00000: 31 32 3a 35 34 3a 35 30 2e 35 30 30 20 53 56 47 12:54:5 +0.500 SVG < 0x00010: 20 54 68 75 20 4f 63 74 20 31 38 20 32 30 31 38 Thu Oc +t 18 2018 < 0x00020: 0d 0a 49 4f 53 53 57 49 54 43 48 23 ..IOSSW +ITCH#

In reply to Re: Net::SSH2::Cisco and Nexus switches by Larry-W
in thread Net::SSH2::Cisco and Nexus switches by cnoyes72

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.