ytti / oxidized

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

Cisco MDS switches no back-up possible #1368

Closed v4l3x76 closed 6 years ago

v4l3x76 commented 6 years ago

Hello,

it seems no end of line identified on command output those switches. Any idea?

model]# /usr/local/share/gems/bin/oxs -m nxos -u user -p passwd -v -d device 'show running-config' execution expired

/usr/local/share/gems/gems/oxidized-0.16.1/lib/oxidized/input/ssh.rb:130:in sleep': execution expired (Timeout::Error) from /usr/local/share/gems/gems/oxidized-0.16.1/lib/oxidized/input/ssh.rb:130:inblock (2 levels) in expect' from /usr/local/share/gems/gems/net-ssh-3.0.2/lib/net/ssh/connection/session.rb:221:in preprocess' from /usr/local/share/gems/gems/net-ssh-3.0.2/lib/net/ssh/connection/session.rb:206:inprocess' from /usr/local/share/gems/gems/net-ssh-3.0.2/lib/net/ssh/connection/session.rb:170:in block in loop' from /usr/local/share/gems/gems/net-ssh-3.0.2/lib/net/ssh/connection/session.rb:170:inloop' from /usr/local/share/gems/gems/net-ssh-3.0.2/lib/net/ssh/connection/session.rb:170:in loop' from /usr/local/share/gems/gems/oxidized-0.16.1/lib/oxidized/input/ssh.rb:129:inblock in expect' from /usr/local/share/gems/gems/oxidized-0.16.1/lib/oxidized/input/ssh.rb:128:in expect' from /usr/local/share/gems/gems/oxidized-0.16.1/lib/oxidized/input/ssh.rb:122:incmd_shell' from /usr/local/share/gems/gems/oxidized-0.16.1/lib/oxidized/input/ssh.rb:62:in cmd' from /usr/local/share/gems/gems/oxidized-0.16.1/lib/oxidized/model/model.rb:84:incmd' from /usr/local/share/gems/gems/oxidized-script-0.2.0/lib/oxidized/script/script.rb:22:in cmd' from /usr/local/share/gems/gems/oxidized-script-0.2.0/lib/oxidized/script/cli.rb:16:inrun' from /usr/local/share/gems/gems/oxidized-script-0.2.0/bin/oxs:5:in <top (required)>' from /usr/local/share/gems/bin/oxs:23:inload' from /usr/local/share/gems/bin/oxs:23:in `

'

wk commented 6 years ago

Please follow the debugging instructions and append a log of interaction with the device to this issue.

wk commented 6 years ago

Could you include the ssh log file which contains the exact interaction with the device? Additionally, it would be interesting to know the output of show version on the device, as well as the device name and prompt.

From the log, it indeed seems the prompt can't be detected after the first command executed, but I am unble to reproduce it on an NX-OS device (5.2.1(N1)).

posixx commented 6 years ago

We are looking into oxidezed for backup condigurations of our new Cisco MDS 9132T switches running NX-OS. According to this issue it's not possible to backup these configs. Is this conclusion based on funcionality or because of not enough debuglogs available? In other words; can this be made working when having enough info?