Closed LoZio closed 7 months ago
Also some device respond with
User Name:
prompt
I suppose I have to derive specific classes for those types of devices, am I right?
first you need to group devices which require only password then refer below documentation
https://github.com/ytti/oxidized/blob/master/docs/Configuration.md
Also it seems the newer prompt regex (https://github.com/ytti/oxidized/commit/8c9adc8391d85a84881aaef7f7530fef44967936) is to loose and now accepts Username:
or Password:
as valid prompt. which is not handy.
shell:
ProCurve J9280A Switch 2510G-48
Software revision Y.11.12
Copyright (C) 1991-2009 Hewlett-Packard Co. All Rights Reserved.
RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the Government is subject to restrictions
as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and
Computer Software clause at 52.227-7013.
HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303
We'd like to keep you up to date about:
* Software feature updates
* New product announcements
* Special events
Please register your products now at: www.ProCurve.com
Username:
Working (old) prompt: /(^\r|\e\[24;[0-9][hH])?([\w\s.-]+[#>](\s)?)($|(\e\[24;[0-9][0-9]?[hH]){3})/
So that can also cause the issues you are seeing .
Try this:
Adding a file procurve.rb
in /home/oxidized/.config/oxidized/model/
with :
require 'oxidized/model/procurve.rb'
class Procurve
using Refinements
prompt /(^\r|\e\[24;[0-9][hH])?([\w\s.-]+[#>](\s)?)($|(\e\[24;[0-9][0-9]?[hH]){3})/
end
The problem appeared with PR #2498. @sorano - I see no reason why the configuration mode should be used within the procurve model. If this is needed for a customization of model, the prompt can be changed there as stated in this thread.
I will revert the PR, so that the old procurves work again.
@robertcheramy thank you!
I have a mix of Procurve switches. I access them via Telnet (no SSH). Most of them require user/password combo, and they work fine, I get the config and all. Some only require the password, at the telnet prompt I get:
So no username is asked. The backup fails, here is the debug log:
I tried creating an antry in the source databse using :: for the username with no luck. Any Ideas? Thanks