Discussion:
[rancid] script itself runs - rancid-run: Couldn't login
Wiethoff, Helge
2015-08-06 10:26:50 UTC
Permalink
Hi all,

I programmed a login script and a "rancid-script" for the previously unsupported device type Microsens G6 based on xilogin+xirancid. My msg6login uses .cloginrc for automated username+password input.

"msg6rancid x-sw1k25.tfhbomgmt.de " works great and writes the correct config file to x-sw1k25.tfhbomgmt.de.new

I declared the new device typ in my rancid.types.conf:
#MicrosensG6
msg6;login;msg6login
msg6;script;msg6rancid

and added a device to my router.db:
x-sw1k25.tfhbomgmt.de;msg6;up

when running rancid-run, i can't login and get the following in the log:
x-sw1k25.tfh-bochum.de: missed cmd(s): all commands
x-sw1k25.tfh-bochum.de msg6login error: Error: Couldn't login: x-sw1k25.tfh-bochum.de
x-sw1k25.tfh-bochum.de: End of run not found

Did i miss something obvious? A env variable or something? Or is the reason in my msg6login as a i get this error inside an expect-block with EOF.


Cheers,
Helge
________________________________
Helge Wiethoff
Medienzentrum

Telefon: +49 (234) 968 8717
Fax: +49 (234) 968 3453
E-Mail: ***@tfh-bochum.de

Technische Fachhochschule Georg Agricola
für Rohstoff, Energie und Umwelt zu Bochum
Staatlich anerkannte Fachhochschule der
DMT-Gesellschaft für Lehre und Bildung mbH
Herner Straße 45
44787 Bochum
http://www.tfh-bochum.de
________________________________
Träger: DMT-Gesellschaft für Lehre und Bildung mbH
Sitz der Gesellschaft: Bochum
Registergericht: Amtsgericht Bochum
Handelsregister: B 4052

Geschäftsführung:
Prof. Dr. Jürgen Kretschmann (Vorsitzender)
Manfred Freitag
Marki
2015-08-08 16:40:13 UTC
Permalink
Post by Wiethoff, Helge
I programmed a login script and a "rancid-script" for the previously
unsupported device type Microsens G6
Post by Wiethoff, Helge
based on xilogin+xirancid. My msg6login uses .cloginrc for automated
username+password input.
Post by Wiethoff, Helge
"msg6rancid x-sw1k25.tfhbomgmt.de " works great and writes the correct
config file to x-sw1k25.tfhbomgmt.de.new
Post by Wiethoff, Helge
x-sw1k25.tfh-bochum.de: missed cmd(s): all commands
x-sw1k25.tfh-bochum.de
Post by Wiethoff, Helge
x-sw1k25.tfh-bochum.de: End of run not found
Hi,

I see x.tfhbomgmt.de and x.tfh-bochum.de in your post. Maybe one works and
the other does not? Are you maybe developing on one machine and running
rancid itself on another? -> firewall issues?

I suppose you are running all commands as the rancid user, even when calling
them manually?

Bye,

Marki
Wiethoff, Helge
2015-08-11 07:36:27 UTC
Permalink
Hi,

the problem was the unset env(TERM) variable. After I added the declaration of the variable in the rancid script (as with zrancid) it works.

Thanks to heasley!

cheers,
helge
________________________________
Helge Wiethoff
Medienzentrum

Telefon: +49 (234) 968 8717
Fax: +49 (234) 968 3453
E-Mail: ***@tfh-bochum.de

Technische Fachhochschule Georg Agricola
für Rohstoff, Energie und Umwelt zu Bochum
Staatlich anerkannte Fachhochschule der
DMT-Gesellschaft für Lehre und Bildung mbH
Herner Straße 45
44787 Bochum
http://www.tfh-bochum.de
________________________________
Träger: DMT-Gesellschaft für Lehre und Bildung mbH
Sitz der Gesellschaft: Bochum
Registergericht: Amtsgericht Bochum
Handelsregister: B 4052

Geschäftsführung:
Prof. Dr. Jürgen Kretschmann (Vorsitzender)
Manfred Freitag

Loading...