ytti / oxidized

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

Custom SSH Port? #173

Closed jthunt closed 9 years ago

jthunt commented 9 years ago

Looking at this to replace the Rancid we have running. But from the documentation and using the conversion tool, it appears you can't use custom SSH Ports?

Is that correct or am I missing something? I haven't looked through the code yet because I don't know Ruby.

ytti commented 9 years ago

Not currently supported. It wouldn't be too hard to add it, I'm willing to do it.

Do you need it on globally, applicable to every node, or per-node, like column in router.db?

jthunt commented 9 years ago

Its on a per-node basis, so column in router.db would be perfect. Thanks!

ytti commented 9 years ago

Can you check if 9844a72c0487d33c38d4 fixes this issue?

source:
  cvs:
    vars_map:
      ssh_port: 4

I'd love if you could also test telnet_port.

jthunt commented 9 years ago

I will test this soon for you.

ytti commented 9 years ago

It definitely had precedence issue at least, fixed it just now. But no clue still if it actually works. If not, I'll actually test next time.

jthunt commented 9 years ago

I tested with two devices and it appears to be working fine. I will be spinning up VMs for the rancid replacement project soon. Will let you know if it hit any hiccups with a larger number of devices.

ytti commented 9 years ago

Closing as reported working