ytti / oxidized

Oxidized is a network device configuration backup tool. It's a RANCID replacement!
Apache License 2.0
2.82k stars 933 forks source link

Procurve backup failed - Oxidized 0.28.0 #2665

Closed mozmozmoz closed 2 years ago

mozmozmoz commented 2 years ago

Hi,

I upgraded Oxidized version to 0.28.0 (last commit), and now I can't to backup old HP Procurve switchs (5406zl J8697A).

D, [2022-11-24T10:38:55.552727 #63473] DEBUG -- socket[3ffd802c4bd4]: read 52 bytes D, [2022-11-24T10:38:55.552891 #63473] DEBUG -- socket[3ffd802c4bd4]: received packet nr 5 type 51 len 28 D, [2022-11-24T10:38:55.553020 #63473] DEBUG -- net.ssh.authentication.session[3ffd802ceb70]: allowed methods: password D, [2022-11-24T10:38:55.553138 #63473] DEBUG -- net.ssh.authentication.methods.none[3ffd802d10dc]: none failed D, [2022-11-24T10:38:55.553249 #63473] DEBUG -- net.ssh.authentication.session[3ffd802ceb70]: trying password D, [2022-11-24T10:38:55.553462 #63473] DEBUG -- socket[3ffd802c4bd4]: queueing packet nr 5 type 50 len 60 D, [2022-11-24T10:38:55.553575 #63473] DEBUG -- socket[3ffd802c4bd4]: sent 84 bytes D, [2022-11-24T10:38:55.563354 #63473] DEBUG -- socket[3ffd802c4bd4]: read 36 bytes D, [2022-11-24T10:38:55.563489 #63473] DEBUG -- socket[3ffd802c4bd4]: received packet nr 6 type 52 len 12 D, [2022-11-24T10:38:55.563615 #63473] DEBUG -- net.ssh.authentication.methods.password[3ffd802d3198]: password succeeded D, [2022-11-24T10:38:55.563820 #63473] DEBUG -- socket[3ffd802c4bd4]: queueing packet nr 6 type 90 len 44 D, [2022-11-24T10:38:55.563930 #63473] DEBUG -- : lib/oxidized/input/ssh.rb: expecting [/(^\r|\e[24;[0-9][hH])?([\w\s.-]+[#>] )($|(\e[24;[0-9][0-9]?[hH]){3})/] at my_procurve_switch D, [2022-11-24T10:38:55.751459 #63473] DEBUG -- : lib/oxidized/worker.rb: Jobs running: 1 of 2 - ended: 5 of 439 D, [2022-11-24T10:38:55.751627 #63473] DEBUG -- : lib/oxidized/worker.rb: 1 jobs running in parallel D, [2022-11-24T10:38:55.764548 #63473] DEBUG -- socket[3ffd802c4bd4]: sent 68 bytes D, [2022-11-24T10:38:55.864916 #63473] DEBUG -- socket[3ffd802c4bd4]: read 52 bytes D, [2022-11-24T10:38:55.865218 #63473] DEBUG -- socket[3ffd802c4bd4]: received packet nr 7 type 91 len 28 I, [2022-11-24T10:38:55.865392 #63473] INFO -- net.ssh.connection.session[3ffd802d5b3c]: channel_open_confirmation: 0 85460946 32768 32768 I, [2022-11-24T10:38:55.865566 #63473] INFO -- net.ssh.connection.channel[3ffd802d5a24]: sending channel request "env" D, [2022-11-24T10:38:55.865775 #63473] DEBUG -- socket[3ffd802c4bd4]: queueing packet nr 7 type 98 len 44 I, [2022-11-24T10:38:55.865930 #63473] INFO -- net.ssh.connection.channel[3ffd802d5a24]: sending channel request "pty-req" D, [2022-11-24T10:38:55.866114 #63473] DEBUG -- socket[3ffd802c4bd4]: queueing packet nr 8 type 98 len 60 D, [2022-11-24T10:38:55.966482 #63473] DEBUG -- socket[3ffd802c4bd4]: sent 152 bytes D, [2022-11-24T10:38:56.066893 #63473] DEBUG -- socket[3ffd802c4bd4]: read 36 bytes D, [2022-11-24T10:38:56.067234 #63473] DEBUG -- socket[3ffd802c4bd4]: received packet nr 8 type 99 len 12 I, [2022-11-24T10:38:56.067370 #63473] INFO -- net.ssh.connection.session[3ffd802d5b3c]: channel_success: 0 I, [2022-11-24T10:38:56.067467 #63473] INFO -- net.ssh.connection.channel[3ffd802d5a24]: sending channel request "shell" D, [2022-11-24T10:38:56.067659 #63473] DEBUG -- socket[3ffd802c4bd4]: queueing packet nr 9 type 98 len 28 D, [2022-11-24T10:38:56.168084 #63473] DEBUG -- socket[3ffd802c4bd4]: sent 52 bytes D, [2022-11-24T10:38:56.268531 #63473] DEBUG -- socket[3ffd802c4bd4]: read 36 bytes D, [2022-11-24T10:38:56.268820 #63473] DEBUG -- socket[3ffd802c4bd4]: received packet nr 9 type 99 len 12 I, [2022-11-24T10:38:56.268941 #63473] INFO -- net.ssh.connection.session[3ffd802d5b3c]: channel_success: 0 I, [2022-11-24T10:38:56.469522 #63473] INFO -- net.ssh.connection.keepalive[3ffd802d5a88]: sending keepalive 0 I, [2022-11-24T10:38:56.469741 #63473] INFO -- net.ssh.connection.session[3ffd802d5b3c]: sending global request keepalive@openssh.com D, [2022-11-24T10:38:56.470025 #63473] DEBUG -- socket[3ffd802c4bd4]: queueing packet nr 10 type 80 len 44 D, [2022-11-24T10:38:56.670470 #63473] DEBUG -- socket[3ffd802c4bd4]: read 692 bytes D, [2022-11-24T10:38:56.670615 #63473] DEBUG -- socket[3ffd802c4bd4]: sent 68 bytes D, [2022-11-24T10:38:56.752798 #63473] DEBUG -- : lib/oxidized/worker.rb: Jobs running: 1 of 2 - ended: 5 of 439 D, [2022-11-24T10:38:56.752888 #63473] DEBUG -- : lib/oxidized/worker.rb: 1 jobs running in parallel D, [2022-11-24T10:38:56.770968 #63473] DEBUG -- socket[3ffd802c4bd4]: received packet nr 10 type 94 len 668 I, [2022-11-24T10:38:56.771134 #63473] INFO -- net.ssh.connection.session[3ffd802d5b3c]: channel_data: 0 645b D, [2022-11-24T10:38:57.172330 #63473] DEBUG -- socket[3ffd802c4bd4]: read 140 bytes D, [2022-11-24T10:38:57.272849 #63473] DEBUG -- socket[3ffd802c4bd4]: received packet nr 11 type 96 len 12 I, [2022-11-24T10:38:57.273054 #63473] INFO -- net.ssh.connection.session[3ffd802d5b3c]: channel_eof: 0 D, [2022-11-24T10:38:57.273192 #63473] DEBUG -- socket[3ffd802c4bd4]: received packet nr 12 type 98 len 44 I, [2022-11-24T10:38:57.273308 #63473] INFO -- net.ssh.connection.session[3ffd802d5b3c]: channel_request: 0 exit-status false D, [2022-11-24T10:38:57.273539 #63473] DEBUG -- socket[3ffd802c4bd4]: received packet nr 13 type 97 len 12 I, [2022-11-24T10:38:57.273643 #63473] INFO -- net.ssh.connection.session[3ffd802d5b3c]: channel_close: 0 D, [2022-11-24T10:38:57.273785 #63473] DEBUG -- socket[3ffd802c4bd4]: read 0 bytes D, [2022-11-24T10:38:57.273989 #63473] DEBUG -- socket[3ffd802c4bd4]: queueing packet nr 11 type 97 len 28 I, [2022-11-24T10:38:57.274082 #63473] INFO -- net.ssh.connection.session[3ffd802d5b3c]: X.X.X.X delete channel 0 which closed locally and remotely D, [2022-11-24T10:38:57.374320 #63473] DEBUG -- socket[3ffd802c4bd4]: read 0 bytes W, [2022-11-24T10:38:57.374665 #63473] WARN -- : X.X.X.X raised IOError with msg "closed stream" D, [2022-11-24T10:38:57.374758 #63473] DEBUG -- : lib/oxidized/node.rb: Oxidized::SSH failed for my_procurve_switch D, [2022-11-24T10:38:57.374871 #63473] DEBUG -- : lib/oxidized/job.rb: Config fetched for my_procurve_switch at 2022-11-24 09:38:57 UTC W, [2022-11-24T10:38:57.754227 #63473] WARN -- : Switch/my_procurve_switch status no_connection, retries exhausted, giving up


- _**Oxidized switch logs:**_
````HP J8697A Switch 5406zl

Software revision K.15.16.0005

Copyright (C) 1991-2014 Hewlett-Packard Development Company, L.P.

                   RESTRICTED RIGHTS LEGEND
 Confidential computer software.  Valid license from HP required for possession,
 use or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer
 Software, Computer Software Documentation, and Technical Data for Commercial
 Items are licensed to the U.S. Government under vendor's standard commercial
 license.
                   HEWLETT-PACKARD DEVELOPMENT COMPANY, L.P.
                   20555 State Highway 249, Houston, TX 77070

^[[1;15r^[[1;1H

admin@my_procurve_switch's password: HP J8697A Switch 5406zl Software revision K.15.16.0005

Copyright (C) 1991-2014 Hewlett-Packard Development Company, L.P.

               RESTRICTED RIGHTS LEGEND

Confidential computer software. Valid license from HP required for possession, use or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under vendor's standard commercial license. HEWLETT-PACKARD DEVELOPMENT COMPANY, L.P. 20555 State Highway 249, Houston, TX 77070

Press any key to continue



Any idea?
Thanks for your help.

Best regards
mozmozmoz commented 2 years ago

I tried this and it works.

In oxidized config:

vars:
  ssh_no_keepalive: true

Originally posted by @deajan in https://github.com/ytti/oxidized/issues/1422#issuecomment-516422450