ytti / oxidized

Oxidized is a network device configuration backup tool. It's a RANCID replacement!
Apache License 2.0
2.79k stars 922 forks source link

HPE 5130 EI doesn't match regex #1886

Closed NatashiaMaxins closed 5 years ago

NatashiaMaxins commented 5 years ago

Device: HPE 5130 EI Switch use Comware 7 login prompt string change from /^Username:$/ to /^login:$/ in cfg.

  cfg :telnet do
    username /^Username:$/
    password /^Password:$/
  end

I'd tried using username /^Username:$/|/^login:$/ But it didn't work. Please give me some guide to fix it. Thanks a lot.

raunz commented 5 years ago

Try cfg :telnet do username /^(Username|login):/ password /^Password:/ end

Some newer HPE's (for example MSR954) have a space after login: string.

NatashiaMaxins commented 5 years ago

Try cfg :telnet do username /^(Username|login):/ password /^Password:/ end

Some newer HPE's (for example MSR954) have a space after login: string.

Thanks for help! It works:heart: