Discussion:
[rancid] Netgear GSM 73xx RANCID scripts available for testing
Ed Ravin
2008-04-29 23:21:44 UTC
Permalink
I've cooked together support for the Netgear GSM 73xx series of
switches. It should work for those switches or any similar Netgear
device.

Attached are two files - "tlogin" and "grancid". "tlogin" also supports
Netopia DSL routers, hence the different letter ID.

You will need to manually add router type "netgear" that calls
"grancid" to your rancid-fe script. Once that's done, and "grancid"
and "tlogin" are installed in the usual place on your system, you
can edit router.db and fire away. Use the usual config in .cloginrc
for username, password, and enable password.

Although the NetGEAR switches have a Cisco-like command line, they
won't work with the current clogin because:

a) they don't support "exit" to log out of the box - "exit" returns
you to non-enabled mode, and then you need to say "logout" to get out.
This causes clogin to go into an endless loop after reading the config
until it times out.

b) the command prompt includes parentheses around the host name, and if
your host name is the right length it provokes a bug in cloginrc when
processing the prompt string.

These differences are minor enough that it should be possible to roll
them back into clogin - I've tried to make sure none of my changes break
anything clogin normally does. Testing all that is another matter, of
course, hence the creation of "tlogin" as a separate script.

-- Ed

Loading...