Hello
I am using Oxidized for backup with LibreNMS.
I am using ALE Omni switch 6900 and 6450 units.
I can backup the 6900 Config with no issue but when i try to backup the 6450 i get an error using the AOS.rb file in the git hub repo.
The error i am facing
raised Oxidized::PromptUndetect with msg “unable to detect prompt: (?-mix:^([\w.@-]+[#>]\s?)$)”
OmniSwitch™ is a trademark of Alcatel-Lucent Enterprise registered
in the United States Patent and Trademark Office.
switch-> not matching configured prompt (?-mix:^([\w.@-]+[#>]\s?)$)"
Here is the code i got from the git hub page.
class AOS < Oxidized::Model
using Refinements
Alcatel-Lucent Operating System
used in OmniSwitch
comment '! ’
cmd :all do |cfg|
cfg.cut_both
end
cmd ‘show system’ do |cfg|
cfg = cfg.each_line.find { |line| line.match ‘Description’ }
comment cfg.to_s.strip
end
cmd ‘show chassis’ do |cfg|
comment cfg
end
cmd ‘show hardware info’ do |cfg|
comment cfg
end
cmd ‘show license info’ do |cfg|
comment cfg
end
cmd ‘show license file’ do |cfg|
comment cfg
end
cmd ‘show configuration snapshot’ do |cfg|
cfg
end
cfg :telnet do
username /^login : /
password /^password : /
end
cfg :telnet, :ssh do
pre_logout ‘exit’
end
end