Discussion:
[rancid] netscreen back up
Benoit Moeremans
2007-05-16 11:53:19 UTC
Permalink
Hi Guys,

Like a lot of people, i installed rancid to backup my cisco & netscren
devices (in this case this is a juniper ssg 520 - screen os5)
It's perfect for the cisco devices, but i get some errors when i try to
backup the juniper.
I can use the jlogin without any problems:

***@rantanplan-test:~/bin$ ./jlogin -f /usr/local/rancid/.cloginrc
10.150.0.253
10.150.0.253
spawn ssh -c 3des -x -l rancid 10.150.0.253
***@10.150.0.253's password:
Remote Management Console
Charon->
Charon->


rancid 14830 0.0 0.5 3100 1380 pts/0 S+ 13:38 0:00 sh -c
(rancid-fe \10.150.0.253:netscreen)
rancid 14831 0.6 0.7 3808 1892 pts/0 S+ 13:38 0:00
/usr/bin/perl /usr/local/rancid//bin/nrancid 10.150.0.253
rancid 14832 0.1 0.5 3100 1420 pts/0 S+ 13:38 0:00 sh -c
nlogin -t 90 -c "get system;get conf" 10.150.0.253 </dev/null
rancid 15762 0.0 0.5 3100 1420 pts/0 S+ 13:41 0:00 sh -c
nlogin -t 90 -c "get system;get conf" 10.150.0.253 </dev/null
rancid 15763 0.0 0.8 5836 2116 pts/0 S+ 13:41 0:00
/usr/bin/expect -- /usr/local/rancid//bin/nlogin -t 90 -c get system;get
conf 10.150.0.253
rancid 15764 0.0 0.8 5836 2116 pts/0 S+ 13:41 0:00
/usr/bin/expect -- /usr/local/rancid//bin/nlogin -t 90 -c get system;get
conf 10.150.0.253
rancid 15765 0.0 0.8 5836 2116 pts/0 S+ 13:41 0:00
/usr/bin/expect -- /usr/local/rancid//bin/nlogin -t 90 -c get system;get
conf 10.150.0.253
rancid 15766 0.1 0.9 5232 2456 pts/3 Ss+ 13:41 0:00 ssh -c 3des
-x -l rancid 10.150.0.253


***@rantanplan-test:~/var/logs$ cat networking.20070516.133649
starting: Wed May 16 13:36:49 CEST 2007

Trying to get all of the configs.
10.150.0.253: missed cmd(s): get conf
0: found end
10.150.0.253: End of run not found
!
=====================================
Getting missed routers: round 1.

Any idea?

Regards,

Benoit
Benoit Moeremans
2007-05-21 07:27:14 UTC
Permalink
Hi John,

I tried with the nlogin, and it works.

rantanplan-test:/usr/local/rancid/bin# ./nlogin -f
/usr/local/rancid/.cloginrc 10.150.0.253
10.150.0.253
spawn ssh -c 3des -x -l rancid 10.150.0.253
***@10.150.0.253's password:
Remote Management Console
Charon->

Any idea?

Regards,

Ben
Post by Benoit Moeremans
Hi Guys,
Like a lot of people, i installed rancid to backup my cisco & netscren
devices (in this case this is a juniper ssg 520 - screen os5)
It's perfect for the cisco devices, but i get some errors when i try to
backup the juniper.
nrancid uses nlogin, not jlogin. try nlogin -c 'get conf' host
Post by Benoit Moeremans
10.150.0.253
10.150.0.253
spawn ssh -c 3des -x -l rancid 10.150.0.253
Remote Management Console
Charon->
Charon->
rancid 14830 0.0 0.5 3100 1380 pts/0 S+ 13:38 0:00 sh -c
(rancid-fe \10.150.0.253:netscreen)
rancid 14831 0.6 0.7 3808 1892 pts/0 S+ 13:38 0:00
/usr/bin/perl /usr/local/rancid//bin/nrancid 10.150.0.253
rancid 14832 0.1 0.5 3100 1420 pts/0 S+ 13:38 0:00 sh -c
nlogin -t 90 -c "get system;get conf" 10.150.0.253 </dev/null
rancid 15762 0.0 0.5 3100 1420 pts/0 S+ 13:41 0:00 sh -c
nlogin -t 90 -c "get system;get conf" 10.150.0.253 </dev/null
rancid 15763 0.0 0.8 5836 2116 pts/0 S+ 13:41 0:00
/usr/bin/expect -- /usr/local/rancid//bin/nlogin -t 90 -c get system;get
conf 10.150.0.253
rancid 15764 0.0 0.8 5836 2116 pts/0 S+ 13:41 0:00
/usr/bin/expect -- /usr/local/rancid//bin/nlogin -t 90 -c get system;get
conf 10.150.0.253
rancid 15765 0.0 0.8 5836 2116 pts/0 S+ 13:41 0:00
/usr/bin/expect -- /usr/local/rancid//bin/nlogin -t 90 -c get system;get
conf 10.150.0.253
rancid 15766 0.1 0.9 5232 2456 pts/3 Ss+ 13:41 0:00 ssh -c
3des
Post by Benoit Moeremans
-x -l rancid 10.150.0.253
starting: Wed May 16 13:36:49 CEST 2007
Trying to get all of the configs.
10.150.0.253: missed cmd(s): get conf
0: found end
10.150.0.253: End of run not found
!
=====================================
Getting missed routers: round 1.
Any idea?
Regards,
Benoit
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Loading...