New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go mangles transient, full-screen output when connected via ssh #45

Closed
jathanism opened this Issue Sep 20, 2012 · 3 comments

Comments

Projects
None yet
1 participant
@jathanism
Member

jathanism commented Sep 20, 2012

Since upgrade to Trigger 1.2.1, "go" mangles transient command output such as "monitor interface" when connected to a Juniper router via ssh. Examples will be included below.

@ghost ghost assigned jathanism Sep 20, 2012

@jathanism

This comment has been minimized.

Member

jathanism commented Sep 20, 2012

Bad. No newlines. All pretty much one line.

jathan@foo2-xyz> monitor interface xe-0/0/0 
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Next='n', Quit='q' or ESC, Freeze='f', Thaw='t', Clear='c', Interface='i'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Next='n', Quit='q' or ESC, Freeze='f', Thaw='t', Clear='c', Interface='i'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Next='n', Quit='q' or ESC, Freeze='f', Thaw='t', Clear='c', Interface=                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               edge2-mtcInterface: xe-0/0/0, Enabled, Link is UpEncapsulation: Ethernet, Speed: 10000mbpsTraffic statistics:Input bytes:             9040155260426 (2094057728 bps)Output bytes:            7720739812662 (1449622296 bps)Input packets:             20804064893 (559345 pps)Output packets:            21150698673 (518551 pps)Error statistics:Input errors:                        0Input drops:                         0Input framing errors:                0Policed discards:                    0L3 incompletes:                      0L2 channel errors:                   0L2 mismatch timeouts:                0  Carrier transitiNext='n', Quit='q' or ESC, Freeze='f', Thaw='t', Clear='c', Interface='i'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               edge2-mtcDelay: 0/0/0Interface: xe-0/0/0, Enabled, Link is UpEncapsulation: Ethernet, Speed: 10000mbpsTraffic statistics:Input bytes:             9040155260426 (2094057728 bps)Output bytes:            7720739812662 (1449622296 bps)Input packets:             20804064893 (559345 pps)Output packets:            21150698673 (518551 pps)Error statistics:Input errors:                        0Input drops:                         0Input framing errors:                0Policed discards:                    0L3 incompletes:                      0L2 channel errors:                   0L2 mismatch timeouts:                0  Carrier transitiNext='n', Quit='q' or ESC, Freeze='f', Thaw='t', Clear='c', Interface='i'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               edge2-mtcDelay: 0/0/0Interface: xe-0/0/0, Enabled, Link is UpEncapsulation: Ethernet, Speed: 10000mbpsTraffic statistics:                                           Current deltaInput bytes:             9040155260426 (2094057728 bps)               [0]Output bytes:            7720739812662 (1449622296 bps)               [0]Input packets:             20804064893 (559345 pps)                   [0]Output packets:            21150698673 (518551 pps)                   [0]Error statistics:Input errors:                        0                                [0]Input drops:                         0                                [0]Input framing errors:                0                                [0]Policed discards:                    0                                [0]L3 incompletes:                      0                                [0]L2 channel errors:                   0                                [0]L2 mismatch timeouts:                0  Carrier transiti              [0]Next='n', Quit='q' or ESC, Freeze='f', Thaw='t', Clear='c', Interface='i'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               edge2-mtcDelay: 0/0/0Interface: xe-0/0/0, Enabled, Link is UpEncapsulation: Ethernet, Speed: 10000mbpsTraffic statistics:                                           Current deltaInput bytes:             9040155260426 (2094057728 bps)               [0]Output bytes:            7720739812662 (1449622296 bps)               [0]Input packets:             20804064893 (559345 pps)                   [0]Output packets:            21150698673 (518551 pps)                   [0]Error statistics:Input errors:                        0                                [0]Input drops:                         0                                [0]Input framing errors:                0                                [0]Policed discards:                    0                                [0]L3 incompletes:                      0                                [0]L2 channel errors:                   0                                [0]L2 mismatch timeouts:                0  Carrier transiti              [0]Next='n', Quit='q' or ESC, Freeze='f', Thaw='t', Clear='c', Interface='i'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               edge2-mtc                         Seconds: 0Delay: 0/0/0Interface: xe-0/0/0, Enabled, Link is UpEncapsulation: Ethernet, Speed: 10000mbpsTraffic statistics:                                           Current deltaInput bytes:             9040155260426 (2094057728 bps)               [0]Output bytes:            7720739812662 (1449622296 bps)               [0]Input packets:             20804064893 (559345 pps)                   [0]Output packets:            21150698673 (518551 pps)                   [0]Error statistics:Input errors:                        0                                [0]Input drops:                         0                                [0]Input framing errors:                0                                [0]Policed discards:                    0                                [0]L3 incompletes:                      0                                [0]L2 channel errors:                   0                                [0]L2 mismatch timeouts:                0  Carrier transiti              [0]Next='n', Quit='q' or ESC, Freeze='f', Thaw='t', Clear='c', Interface='i'Time: 18:43:3718623836715 (1885231001146862793 (1636909215163788 (5526501753965 (5306564/0/4[468576289[407050131[1098895[10552922903401102327313 (1925181384596971250 (18117726806269375 (5560332887438 (570126/0/69470668878571585882204482218876541052
@jathanism

This comment has been minimized.

Member

jathanism commented Sep 20, 2012

Good. Newlines galore.

foo2-xyz                          Seconds: 20                  Time: 19:01:55
                                                           Delay: 0/0/5
Interface: xe-0/0/0, Enabled, Link is Up
Encapsulation: Ethernet, Speed: 10000mbps
Traffic statistics:                                           Current delta
  Input bytes:             9318609323338 (1952161952 bps)      [5153559792]
  Output bytes:            7950325533715 (1687069352 bps)      [4219316061]
  Input packets:             21415433722 (573089 pps)            [11555919]
  Output packets:            21749499268 (570028 pps)            [11564802]
Error statistics:
  Input errors:                        0                                [0]
  Input drops:                         0                                [0]
  Input framing errors:                0                                [0]
  Policed discards:                    0                                [0]
  L3 incompletes:                      0                                [0]
  L2 channel errors:                   0                                [0]
  L2 mismatch timeouts:                0                                [0]
  Carrier transitions:                 0                                [0]
  Output errors:                       0                                [0]
  Output drops:                        0                                [0]
  Aged packets:                        0                                [0]
Active alarms : None
Active defects: None
PCS statistics:                     Seconds
  Bit Errors                           0                                [0]
  Errored blocks                       0                                [0]
Input MAC/Filter statistics:
  Unicast packets            21415140594                         [11615250]
  Broadcast packets                    0                                [0]
  Multicast packets                43128                               [20]
  Oversized frames                     0                                [0]
  Packet reject count                  0                                [0]
  DA rejects                           0                                [0]
  SA rejects                           0                                [0]
Output MAC/Filter Statistics:
  Unicast packets            21749193555                         [11622087]
  Broadcast packets                    0                                [0]
  Multicast packets                70566                               [33]
  Packet pad count                     0                                [0]
  Packet error count                   0                                [0]










Next='n', Quit='q' or ESC, Freeze='f', Thaw='t', Clear='c', Interface='i'
@jathanism

This comment has been minimized.

Member

jathanism commented Sep 20, 2012

Seeing this in the log:

2012-09-20 12:35:44-0700 [-] SSH connection test FAILED, falling back to telnet

So I try telnet to port 22:

Escape character is '^]'.
SSH-1.99-OpenSSH_4.4

So this is clearly related to the SSH banner detection. But there is another problem with the display refreshing w/ telnet connections.

@jathanism jathanism closed this in fa0b22a Sep 20, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment