You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building Oxidized from master and trying to connect to a Netgear host (in my case, Netgear M4300-24X) fails. All the credentials are correct and it can connect to the host over SSH, and is even able to get the config, but still reports a failure.
I believe this is due to not including any pre_logout in netgear.rb. I looked in there and found this:
# quit / logout will sometimes prompt the user:
#
# The system has unsaved changes.
# Would you like to save them now? (y/n)
#
# So it is safer simply to disconnect and not issue a pre_logout command
This is correct in a way, as every time I (or Oxidized) connects to the host via SSH this prompt does appear, even if no changes were made. As Oxidized is not here to make changes though, only record them, I don't believe ignoring this is correct. At the moment, the system doesn't logout as no pre_logout is issued, so it hangs onto the connection and times out because of it.
I added the below to my local copy of netgear.rb, after the post_login commands:
pre_logout 'quit'
pre_logout 'n'
It now saves the config correctly.
Is there a reason for having the current version behave how it does?
The text was updated successfully, but these errors were encountered:
domrcrel
changed the title
Netgear won't connect
Netgear won't save correctly
May 4, 2022
Building Oxidized from
master
and trying to connect to a Netgear host (in my case, Netgear M4300-24X) fails. All the credentials are correct and it can connect to the host over SSH, and is even able to get the config, but still reports a failure.I believe this is due to not including any
pre_logout
innetgear.rb
. I looked in there and found this:This is correct in a way, as every time I (or Oxidized) connects to the host via SSH this prompt does appear, even if no changes were made. As Oxidized is not here to make changes though, only record them, I don't believe ignoring this is correct. At the moment, the system doesn't logout as no
pre_logout
is issued, so it hangs onto the connection and times out because of it.I added the below to my local copy of
netgear.rb
, after thepost_login
commands:It now saves the config correctly.
Is there a reason for having the current version behave how it does?
The text was updated successfully, but these errors were encountered: