in reply to Net::SSH2::Cisco and Nexus switches

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#

Replies are listed 'Best First'.
Re^2: Net::SSH2::Cisco and Nexus switches
by actarus2003 (Novice) on May 07, 2021 at 14:16 UTC
    After long time i fail in same problem
    using strawberry and Net:SSH2::Cisco to access ios is ok but i fail with nexus 7.0(3)I4(3) (a bit old) box.

    i see i receive all from the swicth but at the end of "show version" after crlf i receive some char in the SSH channel and before the promt i got a CR again and prompt is not recognized, so i got a timeout.

    i try to play with the params with no luck.

    Anyone use it with nexus ?

    thanks in advance