Send netdisco-users mailing list submissions to
netdisco-users@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/netdisco-users
or, via email, send a message with subject or body 'help' to
netdisco-users-requ...@lists.sourceforge.net
You can reach the person managing the list at
netdisco-users-ow...@lists.sourceforge.net
When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:
1. Netgear switches (o...@leferguson.com)
2. Re: Netgear switches (o...@leferguson.com)
--- Begin Message ---
In my on-again, off-again attempts to get these to work I thought I would try
again.
I have one client who has a bunch of netgear managed switches. Years ago and
versions ago of Rancid, I built from source and started modifying the source
code and got them working; at the time also doing some D-Link's and probably
other crappy gear they insisted on using.
Most of that is gone, but still a bunch of managed Netgear's. Recently I
talked them into upgrading Zabbix, Rancid, Netdisco and other software we had,
and built up a new management server from scratch, this time with the strong
mission to use the distribution versions of software and not hack it (one day I
plan to retire fully and leaving them with a bunch of modified code is not a
kindness).
Anyway... this is where I am now. If I do this:
mynetgear;script;rancid -t mynetgear
mynetgear;login;clogin
mynetgear;module;dell
mynetgear;inloop;dell::inloop
mynetgear;command;dell::GetConf;show running-config
I am SO close to it working. The problem is that these switches, when using
the CLI, expect you to leave by first doing an 'exit' then a 'quit'. Or two
'quit'. I can't find any of the standard login scripts that work. Here is an
example of what happens:
(beginning truncated but looks OK)
interface vlan 192
routing
ip address 192.168.1.213 255.255.255.128
exit
ip management vlan 192
exit
(M4100-26G) #exit
(M4100-26G) >exit
^
% Invalid input detected at '^' marker.
(M4100-26G) >exit
^
% Invalid input detected at '^' marker.
This repeats now forever.
I've tried (randomly) a bunch of different configurations. I do not care about
all the other SHOW commands, I only want the running-config, and it appears to
be doing that - just can't get out.
Has anyone crossed this particular bridge and know how to get there without
modifying the source?
Linwood
--- End Message ---
--- Begin Message ---
Understood, but is there a way to do that without changing the code (i.e.
either a setting, a specific set of login/show scripts, or other configuration
change. I’m actually running from the ubuntu distro (that worked quite nicely
by the way) and trying hard not to make the mess I did before. There’s zero
chance of me successfully merging my programming changes and the last 5-6 years
of Rancid updates; trying to learn from my mistake.
Linwood
From: Michael Butash <mich...@butash.net>
Sent: Thursday, February 6, 2025 7:51 PM
To: o...@leferguson.com
Cc: netdisco-users@lists.sourceforge.net
Subject: Re: [Netdisco] Netgear switches
It looks like it is just using "exit" to try to exit the device, but the
netgear doesn't like it, and expect won't let it end without a clean exit of
the device thus repetition.
I've never used a netgear of all odd things I have, but some quick search for
netgear cli reference shows they had to be trixie (or rather annoying) and use
"logout" or "quit" but not friggin "exit" to exit the device.
You'll need to let the script know how to exit the switch cleanly using
"logout" instead of "exit", and it should exit cleanly.
-mb
On Thu, Feb 6, 2025 at 5:05 PM o...@leferguson.com<mailto:o...@leferguson.com>
<o...@leferguson.com<mailto:o...@leferguson.com>> wrote:
In my on-again, off-again attempts to get these to work I thought I would try
again.
I have one client who has a bunch of netgear managed switches. Years ago and
versions ago of Rancid, I built from source and started modifying the source
code and got them working; at the time also doing some D-Link’s and probably
other crappy gear they insisted on using.
Most of that is gone, but still a bunch of managed Netgear’s. Recently I
talked them into upgrading Zabbix, Rancid, Netdisco and other software we had,
and built up a new management server from scratch, this time with the strong
mission to use the distribution versions of software and not hack it (one day I
plan to retire fully and leaving them with a bunch of modified code is not a
kindness).
Anyway… this is where I am now. If I do this:
mynetgear;script;rancid -t mynetgear
mynetgear;login;clogin
mynetgear;module;dell
mynetgear;inloop;dell::inloop
mynetgear;command;dell::GetConf;show running-config
I am SO close to it working. The problem is that these switches, when using
the CLI, expect you to leave by first doing an ‘exit’ then a ‘quit’. Or two
‘quit’. I can’t find any of the standard login scripts that work. Here is an
example of what happens:
(beginning truncated but looks OK)
interface vlan 192
routing
ip address 192.168.1.213 255.255.255.128
exit
ip management vlan 192
exit
(M4100-26G) #exit
(M4100-26G) >exit
^
% Invalid input detected at '^' marker.
(M4100-26G) >exit
^
% Invalid input detected at '^' marker.
This repeats now forever.
I’ve tried (randomly) a bunch of different configurations. I do not care about
all the other SHOW commands, I only want the running-config, and it appears to
be doing that – just can’t get out.
Has anyone crossed this particular bridge and know how to get there without
modifying the source?
Linwood
_______________________________________________
Netdisco mailing list
netdisco-users@lists.sourceforge.net<mailto:netdisco-users@lists.sourceforge.net>
https://sourceforge.net/p/netdisco/mailman/netdisco-users/
--- End Message ---
_______________________________________________
Netdisco mailing list - Digest Mode
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users