Thu, Aug 23, 2018 at 12:32:38PM +0100, Howard Jones: > Reaping a thread, but I think I finally got this fixed now. The > bigip.pm overrides TERM with "vt100", always. The prompt is so long > (70 chars on my test box!) that the command scrolls within its line > (although without ^H), so the cmds_regexp never matches. Changing the > TERM line to "screen-w" in bigip.pm resolves it. >
what version are you running? the TERM was changed to vt100-w in rancid 3.3. > > > On 8 May 2018 at 16:20, heasley <h...@shrubbery.net> wrote: > > Tue, May 08, 2018 at 02:39:06PM +0100, Howard Jones: > >> Definitely something funky going on. The .raw file left behind from > >> cron is different from the one if I run the same in a subshell. > >> > >> The front 9 or so characters of commands are chopped off, which would > >> explain why I get "missed all commands". > >> Also, it's trying to send Cisco terminal commands, although those are > >> just ignored, so probably not the immediate issue. > >> > >> I checked with hexdump, and there don't seem to be lots of ^H or > >> anything like that redrawing the prompt. Although, for those terminal > >> commands, there's: > >> > >> terminal ^Hwidth 132^M > >> > >> but not in the non-cron version. Nothing else like that further on. > >> > >> In the output below, ssh-no-pubkey is a one-liner shellscript to avoid > >> Cisco Nexus complaining about too many authentication fails, when > >> pubkeys are loaded: > >> > >> ssh -o PubkeyAuthentication=no $* > > > > exec ssh -o PubkeyAuthentication=no $* > >> > >> I just checked and from a normal command line, the F5 doesn't scroll > >> the command horizontally or anything strange. > >> > >> Any ideas where I can look next? If it was telnet, I'd capture the > >> traffic, but it doesn't look like wireshark will do much with the > >> encrypted part of SSH captures. > >> > >> Howard > > > > probably the most likely cause is that its assuming the client will > > have a terminal (TERM) type and it makes further assumptions when it > > doesnt. But, it looks like bigip IS setting the term to vt100. Can > > you trying setting your interactive TERM to vt100 to see if that > > reproduces it? > > > > Else, it might need other tty intrinsics; so, perhaps try hlogin with > > it, but it will need that 'quit' patch. > > > > is f5 supporting NETCONF? > > > >> executing clogin -t 90 -c"modify cli preference pager disabled > >> display-threshold 0;show sys version;show sys hardware;show sys > >> license;show /net route static;list all-properties recursive" lb01 > >> > >> lb01 > >> spawn /opt/rancid/local/ssh-no-pubkey -c aes192-ctr -x -l rancidconfbackup > >> lb01 > >> Password: > >> Last login: Tue May 8 12:40:30 2018 from 192.168.0.27^M > >> rancidconfbackup@(lb01)(cfg-sync In Sync)(Active)(/Common)(tmos)# > >> rancidconfbackup@(lb01)(cfg-sync In Sync)(Active)(/Common)(tmos)# > >> terminal length 0 > >> Syntax Error: unexpected argument "terminal" > >> rancidconfbackup@(lb01)(cfg-sync In Sync)(Active)(/Common)(tmos)# > >> terminal width 132 > >> Syntax Error: unexpected argument "terminal" > >> rancidconfbackup@(lb01)(cfg-sync In Sync)(Active)(/Common)(tmos)# i > >> preference pager disabled display-threshold 0 > >> rancidconfbackup@(lb01)(cfg-sync In Sync)(Active)(/Common)(tmos)#version _______________________________________________ Rancid-discuss mailing list Rancid-discuss@shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss