Clément M.
2014-01-10 14:08:00 UTC
Hi,
I'm having some issues using rancid at work.
I want to manage cisco switches and everything works fine except for one :(
In fact, most of them are using telnet and the one that doesn't work uses
ssh.
Here's where I am so far :
clogin -c "show run" 192.168.1.18
spawn ssh -p 22 -c 3des -x -l admin 192.168.1.18
SW>
SW>terminal length 0
SW>terminal width 132
SW>show run
^
% Invalid input detected at '^' marker.
SW>exit
Connection to 192.168.1.18 closed.
Not working !
But when i try a telnet switch, it's all good :
My cloginrc looks like this :
add method 192.168.1.18 {ssh:22}
add user 192.168.1.18 admin
add autonenable 192.168.1.18 0
add method 192.168.1.* {telnet:23}
add password 192.168.1.* {"pass"} {"enable_pass"} --> (Same for all)
I'm using telnet for all my switches except for this one. I'm running
rancid on a RHEL 6 system.
Can you help me ?
Thanks,
K
I'm having some issues using rancid at work.
I want to manage cisco switches and everything works fine except for one :(
In fact, most of them are using telnet and the one that doesn't work uses
ssh.
Here's where I am so far :
clogin -c "show run" 192.168.1.18
spawn ssh -p 22 -c 3des -x -l admin 192.168.1.18
SW>
SW>terminal length 0
SW>terminal width 132
SW>show run
^
% Invalid input detected at '^' marker.
SW>exit
Connection to 192.168.1.18 closed.
Not working !
But when i try a telnet switch, it's all good :
My cloginrc looks like this :
add method 192.168.1.18 {ssh:22}
add user 192.168.1.18 admin
add autonenable 192.168.1.18 0
add method 192.168.1.* {telnet:23}
add password 192.168.1.* {"pass"} {"enable_pass"} --> (Same for all)
I'm using telnet for all my switches except for this one. I'm running
rancid on a RHEL 6 system.
Can you help me ?
Thanks,
K